[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 e4cde42 2/4: Disable extra display of in nx
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] emacs-26 e4cde42 2/4: Disable extra display of in nxml-mode (Bug#32897) |
Date: |
Thu, 9 May 2019 07:41:09 -0400 (EDT) |
branch: emacs-26
commit e4cde42657f8f91f795e6b7041dc50b896dc468d
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
Disable extra display of in nxml-mode (Bug#32897)
* 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 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el
index f17f584..ab035b9 100644
--- a/lisp/nxml/nxml-mode.el
+++ b/lisp/nxml/nxml-mode.el
@@ -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