emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-28 b4f47d2: Use @pxref when necessary


From: Robert Pluim
Subject: Re: emacs-28 b4f47d2: Use @pxref when necessary
Date: Thu, 25 Nov 2021 11:18:03 +0100

>>>>> On Thu, 25 Nov 2021 10:19:22 +0100, Robert Pluim <rpluim@gmail.com> said:
    Robert> This is "(see @ref", not "see @ref". The latter works correctly. 
Maybe
    Robert> this can be fixed in info.el as you say (it would certainly clean up
    Robert> the display of org.info).

Something like this, with 'Also *note'/'See also *note' as a bonus,
although that might be going a bit far.

diff --git a/lisp/info.el b/lisp/info.el
index 8c08eaec3c..40995d0ba1 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -4858,9 +4858,17 @@ Info-fontify-node
                    ;; an end of sentence
                    (skip-syntax-backward " ("))
                   (setq other-tag
-                       (cond ((save-match-data (looking-back "\\(^\\| \\)see"
+                       (cond ((save-match-data (looking-back "\\(^\\|[ 
(]\\)see"
                                                               (- (point) 4)))
                               "")
+                              ((save-match-data (let ((case-fold-search nil))
+                                                  (looking-back "\\(^\\| 
\\)also"
+                                                              (- (point) 5))))
+                              "")
+                              ((save-match-data (let ((case-fold-search nil))
+                                                  (looking-back "\\(^\\| 
\\)Also"
+                                                              (- (point) 5))))
+                              "see ")
                              ((save-match-data (looking-back "\\(^\\| \\)in"
                                                               (- (point) 3)))
                               "")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]