emacs-devel
[Top][All Lists]
Advanced

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

Re: pxref


From: Richard M. Stallman
Subject: Re: pxref
Date: Sat, 29 Oct 2005 16:34:14 -0400

    The Texinfo source produces this in the Info output format.  (This
    output is not indented four spaces; I did that for this message.)

        Here is an @xref as a sentence.  *Note Musings on fossil fuels::.

        Here is an @ref in a sentence, see *Note Musings on fossil fuels::.

        Here is an @pxref parenthetically (*Note Musings on fossil fuels::)
         in a sentence.

    Note the `see' from the source for the @ref and the one space
    indentation of the `in' for the @pxref.

That last seems to be a bug in Texinfo.  Why does it indent that space?

      (Perhaps the source should
    not be written with `see'.  I have left it because many make this
    mistake although the Texinfo manual counsels against it.)

It is correct to write "see" before @ref; that is necessary to get
the right output in DVI.

This change in Emacs should prevent Emacs from displaying a second "see".
Does it work right for you?

*** info.el     26 Oct 2005 12:35:51 -0400      1.454
--- info.el     29 Oct 2005 16:05:29 -0400      
***************
*** 3741,3747 ****
                    ;; an end of sentence
                    (skip-syntax-backward " ("))
                    (setq other-tag
!                         (cond ((memq (char-before) '(nil ?\. ?! ??))
                                 "See ")
                              ((save-match-data
                                 (save-excursion
--- 3741,3749 ----
                    ;; an end of sentence
                    (skip-syntax-backward " ("))
                    (setq other-tag
!                       (cond ((save-match-data (looking-back "see "))
!                              "")
!                             ((memq (char-before) '(nil ?\. ?! ??))
                                 "See ")
                              ((save-match-data
                                 (save-excursion




reply via email to

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