]> git.eshelyaron.com Git - emacs.git/commitdiff
Disable extra display of 
 in nxml-mode (Bug#32897)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 19 Apr 2019 17:28:00 +0000 (13:28 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 9 May 2019 10:42:40 +0000 (06:42 -0400)
* lisp/nxml/nxml-mode.el (nxml-char-ref-display-extra): Don't put
display for the newline, it makes the indentation look wrong.

lisp/nxml/nxml-mode.el

index f17f5843b80d81aa427f7994681c42ca887aff12..ab035b927ee5e4145c344ed287eadaa16e038ccd 100644 (file)
@@ -2378,7 +2378,9 @@ With a prefix argument, inserts the character directly."
 (put 'nxml-char-ref 'evaporate t)
 
 (defun nxml-char-ref-display-extra (start end n)
-  (when nxml-char-ref-extra-display
+  (when (and ;; Displaying literal newline is unhelpful.
+         (not (eql n ?\n))
+         nxml-char-ref-extra-display)
     (let ((name (or (get-char-code-property n 'name)
                     (get-char-code-property n 'old-name)))
          (glyph-string (and nxml-char-ref-display-glyph-flag