[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual
From: |
Eli Zaretskii |
Subject: |
Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual |
Date: |
Tue, 05 Jun 2018 18:07:42 +0300 |
> From: Robert Pluim <address@hidden>
> Cc: address@hidden
> Date: Mon, 04 Jun 2018 19:17:16 +0200
>
> >> + ;; beginning of sentence
> >> + ((looking-back " ")
> >> + "@xref{")
> >
> > This misses the beginning of a sentence after a newline, right?
>
> Hmm. (looking-back (sentence-end)) perhaps? Or if thatʼs overkill
> "\\(?: \\|\\.\n\\)"
sentence-end sounds fine to me.
> >> + ;; bol or eol
> >> + ((looking-at "^\\|$")
> >> + "@ref{")
> >> + ;; inside word
> >> + ((not (eq (char-syntax (char-after)) ? ))
> >> + (skip-syntax-backward "^ ")
> >> + "@ref{")
> >> + ;; everything else
> >> + (t
> >> + "@ref{"))
> >> + _ "}")
> >
> > Why did you need the first 2 cases that yield @ref?
>
> If I have text like this:
Sorry, I missed the skip-syntax-backward call.
> > This will need a NEWS entry.
>
> Of course. Something like this, which will also go in the doc string.
>
> ** Texinfo
> *** New function for inserting @pxref, @xref, or @ref commands
This should end with a period.
> The function 'address@hidden', bound to 'C-c C-c r' by
> default, inserts one of the three types of references based on the text
> surrounding point, namely @pxref after a parenthesis, @xref at the
> start of a sentence, else @ref.
OK.
Thanks.
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Robert Pluim, 2018/06/01
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Robert Pluim, 2018/06/04
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Eli Zaretskii, 2018/06/04
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Robert Pluim, 2018/06/04
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual,
Eli Zaretskii <=
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Robert Pluim, 2018/06/05
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Noam Postavsky, 2018/06/05
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Robert Pluim, 2018/06/06
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Noam Postavsky, 2018/06/06
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Robert Pluim, 2018/06/06
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Noam Postavsky, 2018/06/06
- Re: bug#31636: 27.0.50; lockfile syntax searchable from info manual, Robert Pluim, 2018/06/06