[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35052: [PATCH] `tex-current-defun-name' matches the wrong title
From: |
Arash Esbati |
Subject: |
bug#35052: [PATCH] `tex-current-defun-name' matches the wrong title |
Date: |
Sat, 30 Mar 2019 21:30:02 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 |
Hi all,
please consider this LaTeX file with the latex-mode provided by Emacs
(not AUCTeX).
--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 will add
something like this also to AUCTeX since it currently doesn't set
`add-log-current-defun-function' at all.
Any comments welcome.
Best, Arash
0001-Match-the-correct-sectioning-command.patch
Description: Text Data
- bug#35052: [PATCH] `tex-current-defun-name' matches the wrong title,
Arash Esbati <=