Ikumi Keita <[email protected]> writes:

> branch: master
> commit da07a5dcb258d6bbb8745df5ae72096f64a65ca3
> Author: Ikumi Keita <[email protected]>
> Commit: Ikumi Keita <[email protected]>
>
>     Fix Texinfo mode with respect to interaction with RefTeX
>     
>     * tex-info.el (Texinfo-reftex-section-info): Don't reset marker
>     because the marker stays in the return value.
>     [...]
> ---
>  tex-info.el | 30 +++++++++++-------------------
>  1 file changed, 11 insertions(+), 19 deletions(-)
>
> diff --git a/tex-info.el b/tex-info.el
> index f1e97746..485bc072 100644
> --- a/tex-info.el
> +++ b/tex-info.el
> @@ -479,26 +479,18 @@ is assumed by default."
>             (if (nth 1 reftex-label-menu-flags) ; section number flag
>                 (concat section-number " "))
>             text))
> -    (prog1
> -        (list 'toc "toc" text file marker level section-number
> -              literal (marker-position marker))
> -      (set-marker marker nil))))
> +    (list 'toc "toc" text file marker level section-number
> +          literal (marker-position marker))
> +      (set-marker marker nil)))

Hi Keita,

is this change correct?  `Texinfo-reftex-section-info' is supposed to
"Return a section entry for the current match.".  Now it returns
"marker" due to removal of that `prog1'.  Or am I missing something?

Best, Arash

Reply via email to