unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).