unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-28 b4f47d2: Use @pxref when necessary
Date: Thu, 25 Nov 2021 11:18:03 +0100	[thread overview]
Message-ID: <875ysgh738.fsf@gmail.com> (raw)
In-Reply-To: <87a6hsh9t1.fsf@gmail.com> (Robert Pluim's message of "Thu, 25 Nov 2021 10:19:22 +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)))
 			       "")



  parent reply	other threads:[~2021-11-25 10:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 19:39 emacs-28 b4f47d2: Use @pxref when necessary Eli Zaretskii
2021-11-25  8:20 ` Robert Pluim
2021-11-25  8:44   ` Eli Zaretskii
2021-11-25  8:47     ` Robert Pluim
2021-11-25  9:03       ` Eli Zaretskii
2021-11-25  9:19         ` Robert Pluim
2021-11-25  9:52           ` Eli Zaretskii
2021-11-25 10:18           ` Robert Pluim [this message]
2021-11-25 10:53             ` Eli Zaretskii
2021-11-25 14:38               ` Robert Pluim
2021-11-25 16:54                 ` Eli Zaretskii
2021-11-25 17:15                   ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875ysgh738.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).