diff options
| author | Lars Ingebrigtsen | 2019-06-28 15:05:59 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-28 15:05:59 +0200 |
| commit | 86b28cbbf04280e11245f04f2964f0dc352949f0 (patch) | |
| tree | 0f634f7d33086f9005867463cc96200d191171b2 | |
| parent | cfabacae02499f28f2cf9ec41d41df7567fd0124 (diff) | |
| download | emacs-86b28cbbf04280e11245f04f2964f0dc352949f0.tar.gz emacs-86b28cbbf04280e11245f04f2964f0dc352949f0.zip | |
Revert "Fontify _emphasis_ in info nodes"
This reverts commit 72963b4e82eef5767e3172f28bd9bd97f487c98a.
The change incorrectly fontified whole sentences as emphasis.
| -rw-r--r-- | lisp/info.el | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lisp/info.el b/lisp/info.el index 8e8c3371f42..3203c5f171e 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -136,12 +136,6 @@ The Lisp code is executed when the node is selected.") | |||
| 136 | :version "22.1" | 136 | :version "22.1" |
| 137 | :group 'info) | 137 | :group 'info) |
| 138 | 138 | ||
| 139 | (defface info-emphasis | ||
| 140 | '((t (:inherit italic))) | ||
| 141 | "Face for emphasized text (enclosed with underscores)." | ||
| 142 | :version "27.1" | ||
| 143 | :group 'info) | ||
| 144 | |||
| 145 | (defcustom Info-fontify-visited-nodes t | 139 | (defcustom Info-fontify-visited-nodes t |
| 146 | "Non-nil to fontify references to visited nodes in `info-xref-visited' face." | 140 | "Non-nil to fontify references to visited nodes in `info-xref-visited' face." |
| 147 | :version "22.1" | 141 | :version "22.1" |
| @@ -4696,17 +4690,6 @@ first line or header line, and for breadcrumb links.") | |||
| 4696 | (put-text-property (match-beginning 1) (match-end 1) | 4690 | (put-text-property (match-beginning 1) (match-end 1) |
| 4697 | 'invisible t))))))) | 4691 | 'invisible t))))))) |
| 4698 | 4692 | ||
| 4699 | ;; Fontify emphasis: _..._ | ||
| 4700 | (goto-char (point-min)) | ||
| 4701 | (when (and font-lock-mode not-fontified-p) | ||
| 4702 | (while (re-search-forward "_\\(\\sw+\\)_" nil t) | ||
| 4703 | (add-text-properties (match-beginning 0) (1+ (match-beginning 0)) | ||
| 4704 | '(invisible t front-sticky nil rear-nonsticky t)) | ||
| 4705 | (add-text-properties (1- (match-end 0)) (match-end 0) | ||
| 4706 | '(invisible t front-sticky nil rear-nonsticky t)) | ||
| 4707 | (put-text-property (match-beginning 1) (match-end 1) | ||
| 4708 | 'font-lock-face 'info-emphasis))) | ||
| 4709 | |||
| 4710 | ;; Fontify titles | 4693 | ;; Fontify titles |
| 4711 | (goto-char (point-min)) | 4694 | (goto-char (point-min)) |
| 4712 | (when (and font-lock-mode not-fontified-p) | 4695 | (when (and font-lock-mode not-fontified-p) |