all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* text properties not applied (almost a bug report, but...)
@ 2005-05-25 17:22 Joe Corneli
  0 siblings, 0 replies; 4+ messages in thread
From: Joe Corneli @ 2005-05-25 17:22 UTC (permalink / raw)


In some modes (elisp and mail are two I've tested) this form simply
returns `t', there's no change to the display, and apparently no
change to the buffer.

(set-text-properties (line-beginning-position)
                     (line-end-position)
                     '(face font-lock-keyword-face)
                     (current-buffer))               
                            ^                        ^

                            2                        1
                                                  C-x C-e
                          (get-text-property       
                             (point) 'face)
                          ;=> nil

Is there a way to assert that I really want to set the face,
regardless of the mode the buffer happens to be in (though it seems to
be a bit of a long-shot)?  Or must I switch to fundamental mode to set
the face?  (Note: in CVS emacs of 2005-05-10, switching *back* to
fundamental mode didn't work, but with today's version emacs, that at
least works.)

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

end of thread, other threads:[~2005-05-25 20:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1780.1117043290.25862.help-gnu-emacs@gnu.org>
2005-05-25 18:51 ` text properties not applied (almost a bug report, but...) Johan Bockgård
2005-05-25 19:31   ` Joe Corneli
     [not found]   ` <mailman.1805.1117049864.25862.help-gnu-emacs@gnu.org>
2005-05-25 20:12     ` rgb
2005-05-25 17:22 Joe Corneli

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.