From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs-28 b4f47d2: Use @pxref when necessary Date: Thu, 25 Nov 2021 11:52:27 +0200 Message-ID: <837dcw7eas.fsf@gnu.org> References: <831r358hrr.fsf@gnu.org> <87o868hcjd.fsf@gmail.com> <83bl287hfr.fsf@gnu.org> <87k0gwhba1.fsf@gmail.com> <83a6hs7gk5.fsf@gnu.org> <87a6hsh9t1.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32871"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 25 10:53:26 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqBRW-0008Jv-7C for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Nov 2021 10:53:26 +0100 Original-Received: from localhost ([::1]:51008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqBRV-0006bJ-47 for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Nov 2021 04:53:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqBQZ-0005an-7O for emacs-devel@gnu.org; Thu, 25 Nov 2021 04:52:27 -0500 Original-Received: from [2001:470:142:3::e] (port=35016 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqBQY-0003XH-Uf; Thu, 25 Nov 2021 04:52:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uXPSmkJlW3LVgQQA2hRwbQT49rHzUVkdxJpW29h4kQE=; b=reUqHNzmpMqt 2Kf9tE3J1gAr7OLZhwMz5LuVacycrWieicyjn9knA/dkCoh1bkH7Nvr3tQrnR9R/+ktukQRaDF2WT EhK2RkGYPpyku65dHDl4X8qKPqC6iHsx0lP91CwY+Oa310o/ySKqlXSYINt0J1sD81AzPV5NaTVDr lq+Mh91btANHany2BJ14C67oMsoQAAPyLh6hIhprDEMANAc/3Li0x+isC6kEaXS+a0lcQ0P19rcNn 8cNFR5mwY0m2xmXcQfvQ5VtsE+3Zi+5Nst6N2lLZdlDqgWTe3ZdiwQFjpIXgZQsoLHbEMYihDgLx2 1uEW+AQbQg9zJKrc7/VLJQ==; Original-Received: from [87.69.77.57] (port=1208 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqBQY-0002hm-JQ; Thu, 25 Nov 2021 04:52:26 -0500 In-Reply-To: <87a6hsh9t1.fsf@gmail.com> (message from Robert Pluim on Thu, 25 Nov 2021 10:19:22 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280089 Archived-At: > From: Robert Pluim > Date: Thu, 25 Nov 2021 10:19:22 +0100 > Cc: emacs-devel@gnu.org > > Eli> This problem should be fixed in info.el, not in the Texinfo sources. > Eli> (It should have been mentioned in the log message as well, btw.) > Eli> There's nothing wrong with "see @ref" from the Texinfo usage > Eli> POV. > > This is "(see @ref", not "see @ref". The latter works correctly. Maybe > this can be fixed in info.el as you say (it would certainly clean up > the display of org.info). So I guess it's this part of info.el that needs to become smarter: (when Info-hide-note-references (when (and (not (eq Info-hide-note-references 'hide)) (> (line-number-at-pos) 4)) ; Skip breadcrumbs ;; *Note is often used where *note should have been (goto-char start) (skip-syntax-backward " ") (when (memq (char-before) '(?\( ?\[ ?\{)) ;; Check whether the paren is preceded by ;; an end of sentence (skip-syntax-backward " (")) (setq other-tag (cond ((save-match-data (looking-back "\\(^\\| \\)see" (- (point) 4))) "") ((save-match-data (looking-back "\\(^\\| \\)in" (- (point) 3))) "") ((memq (char-before) '(nil ?\. ?! ??)) "See ") ((save-match-data (save-excursion (search-forward "\n\n" start t))) "See ") (t "see "))))