GNU bug report logs -
#35052
[PATCH] `tex-current-defun-name' matches the wrong title
Previous Next
Reported by: Arash Esbati <arash <at> gnu.org>
Date: Sat, 30 Mar 2019 20:32:02 UTC
Severity: normal
Tags: patch
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 35052 <at> debbugs.gnu.org (full text, mbox):
> From: Arash Esbati <arash <at> gnu.org>
> Date: Sat, 30 Mar 2019 21:30:02 +0100
>
> --8<---------------cut here---------------start------------->8---
> \documentclass{article}
>
> \begin{document}
>
> \section{Emacs}
>
> \subsection*[Emacs is the extensible, customizable, self-documenting
> real-time display editor]{Emacs is the extensible, customizable,
> self-documenting real-time display editor}
>
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> In that buffer, eval (goto-char 68) and hit `C-x 4 a'. Emacs enters the
> first section (section{Emacs}) into the ChangeLog buffer. I think
> `tex-current-defun-name' could be more cautious like
> `lisp-current-defun-name' is. A possible patch is attached.
I don't use TeX mode, so I don't really mind, but please note that the
current behavior is consistent with Texinfo mode's equivalent: it also
detects only the @node in which point is located.
This bug report was last modified 6 years and 110 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.