GNU bug report logs - #58005
13.1.4; Can't work with indirect buffers

Previous Next

Package: auctex;

Reported by: "Philipp G. Haselwarter" <philipp <at> haselwarter.org>

Date: Thu, 22 Sep 2022 14:40:02 UTC

Severity: normal

Tags: wontfix

Found in version 13.1.4

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 58005 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: "Philipp G. Haselwarter" <philipp <at> haselwarter.org>
Cc: 58005 <at> debbugs.gnu.org
Subject: Re: bug#58005: 13.1.4; Can't work with indirect buffers
Date: Thu, 08 Dec 2022 19:47:56 +0900
Hi Philipp, very sorry for such a long delay to reply.

>>>>> "Philipp G. Haselwarter" <philipp <at> haselwarter.org> writes:
> Hi,
> I often find myself jumping from latex to the current position in the
> pdf via `pdf-sync-forward-search' from pdf-tools. This does not work
> when the buffer I am editing is an indirect buffer, like what you get
> from `C-x 4 c', i.e. `clone-indirect-buffer-other-window'.

> In particular, `TeX-master-file' and `TeX-strip-extension' in `tex.el'
> use `buffer-file-name', which reports `nil' in indirect buffers. One
> solution would be to use `ff-buffer-file-name' from `find-file.el'
> instead, which behaves correctly by returning the file name associated
> to the `buffer-base-buffer' of an indirect buffer.  Or maybe simply
> calling `(buffer-file-name (buffer-base-buffer))' would do.

I don't use indirect buffer, so please bear with me if I'm missing
points. So far AUCTeX didn't pay attention to indirect buffers, so I'm
afraid that numerous potential inconsistencies remain there even if your
suggestion is incorporated. For that reason, I'm reluctant to go in a
direction to tame AUCTeX to work properly with indirect buffers. Why do
you edit in an indirect buffer? (Even if there is good reason to do so,
I feel that it's enough to make C-c C-c (and similar commands) ask
whether to switch to base buffer when you are in indirect buffer.)

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine




This bug report was last modified 1 year and 76 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.