all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* strange font information in local abbrev table
@ 2014-10-26 14:06 Uwe Brauer
  2014-10-26 16:54 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Brauer @ 2014-10-26 14:06 UTC (permalink / raw)
  To: emacs-devel


Hello 

I use the following simple functions


(defun ediff-copy-to-register-A ()
  (interactive)
  (copy-to-register ?A (region-beginning) (region-end) nil)
  (message "diff is copied to register A"))

(defun ediff-copy-to-register-B ()
  (interactive)
  (copy-to-register ?B (region-beginning) (region-end) nil)
  (message "diff is copied to register B"))

(defun ediff-define-abbrev ()
  (interactive)
  (let ((name (get-register ?A)))
	(let ((expansion (get-register ?B)))
	  (define-abbrev local-abbrev-table  name (downcase expansion))))
  (message "abbrev is added using register A and B."))

Which come in handy for example to define abbrevs when ediff was called,
but could be used in other circumstances. Now while this works in Xemacs
and GNU emacs, I just recently discovered that in GNU emacs there is
some additional font information, whose origin and purpose I don't
understand:
example:

I have the defined the following minor mode with a corresponding 
abbrev table:

(deutsch-minor-mode-abbrev-table)
however when I defined 

hallllo to be expanded has hallo 

It works but relevant entry in the local-abbrev-table is:

#("hallllo" 0 7 (fontified t)) 0 "hallo"

The doc of define-abbrev seems not to make reference to this.

Can anybody enlighten me please?

Thanks 

Uwe Brauer 




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-26 18:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-26 14:06 strange font information in local abbrev table Uwe Brauer
2014-10-26 16:54 ` Stefan Monnier
2014-10-26 18:25   ` Uwe Brauer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.