[Top][All Lists]

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

Re: [AUCTeX-devel] ChangeLog - recover previous behaviour.

From: Arash Esbati
Subject: Re: [AUCTeX-devel] ChangeLog - recover previous behaviour.
Date: Wed, 24 Apr 2019 20:59:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50

Colin Baxter <address@hidden> writes:

> Apart from perhaps locally reverting 2a642a458, how do I recover the old
> ChangeLog behaviour of not inserting a section heading when I `C-x 4 a'?
> I have tried (setq add-log-current-defun-function nil) with no effect.

Hi Colin,

it doesn't work if you set a buffer-local variable on global level.  Put
something like this in your .emacs:

--8<---------------cut here---------------start------------->8---
(defun reset-add-log-current-defun-function ()
  (setq add-log-current-defun-function nil))

(add-hook 'LaTeX-mode-hook #'reset-add-log-current-defun-function)
--8<---------------cut here---------------end--------------->8---

Best, Arash

reply via email to

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