summaryrefslogtreecommitdiff
path: root/lisp/info.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-06-28 15:05:59 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-28 15:05:59 +0200
commit86b28cbbf04280e11245f04f2964f0dc352949f0 (patch)
tree0f634f7d33086f9005867463cc96200d191171b2 /lisp/info.el
parentcfabacae02499f28f2cf9ec41d41df7567fd0124 (diff)
downloademacs-86b28cbbf04280e11245f04f2964f0dc352949f0.tar.gz
Revert "Fontify _emphasis_ in info nodes"
This reverts commit 72963b4e82eef5767e3172f28bd9bd97f487c98a. The change incorrectly fontified whole sentences as emphasis.
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el17
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.")
:version "22.1"
:group 'info)
-(defface info-emphasis
- '((t (:inherit italic)))
- "Face for emphasized text (enclosed with underscores)."
- :version "27.1"
- :group 'info)
-
(defcustom Info-fontify-visited-nodes t
"Non-nil to fontify references to visited nodes in `info-xref-visited' face."
:version "22.1"
@@ -4696,17 +4690,6 @@ first line or header line, and for breadcrumb links.")
(put-text-property (match-beginning 1) (match-end 1)
'invisible t)))))))
- ;; Fontify emphasis: _..._
- (goto-char (point-min))
- (when (and font-lock-mode not-fontified-p)
- (while (re-search-forward "_\\(\\sw+\\)_" nil t)
- (add-text-properties (match-beginning 0) (1+ (match-beginning 0))
- '(invisible t front-sticky nil rear-nonsticky t))
- (add-text-properties (1- (match-end 0)) (match-end 0)
- '(invisible t front-sticky nil rear-nonsticky t))
- (put-text-property (match-beginning 1) (match-end 1)
- 'font-lock-face 'info-emphasis)))
-
;; Fontify titles
(goto-char (point-min))
(when (and font-lock-mode not-fontified-p)