all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Highlighting a missing final newline?
@ 2016-03-22 11:30 egarrulo
  2016-03-22 11:50 ` Yuri Khan
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: egarrulo @ 2016-03-22 11:30 UTC (permalink / raw)
  To: help-gnu-emacs

How would you highlight a missing final newline?  I mean: if a buffer 
lacks a final newline, then you would see a (customizable) character at 
the end of the buffer; otherwise, you would see nothing.

AFAIK, `font-lock-add-keywords' can't help here because there is no 
character to highlight.  I have looked into `whitespace-mode' for 
inspiration, but the code is too complex for me.

Thank you.


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

end of thread, other threads:[~2016-03-22 16:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 11:30 Highlighting a missing final newline? egarrulo
2016-03-22 11:50 ` Yuri Khan
2016-03-22 13:37   ` egarrulo
2016-03-22 13:49 ` Drew Adams
     [not found] ` <mailman.8110.1458654604.843.help-gnu-emacs@gnu.org>
2016-03-22 13:54   ` egarrulo
2016-03-22 13:57 ` Óscar Fuentes
2016-03-22 16:21 ` Eli Zaretskii
     [not found] ` <mailman.8133.1458663736.843.help-gnu-emacs@gnu.org>
2016-03-22 16:42   ` egarrulo

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.