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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: auctex; Reported by: "Philipp G. Haselwarter" <philipp@HIDDEN>; dated Thu, 22 Sep 2022 14:40:02 UTC; Maintainer for auctex is bug-auctex@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Sep 2022 14:39:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 22 10:39:44 2022
Received: from localhost ([127.0.0.1]:38213 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1obNMc-0006UX-HT
	for submit <at> debbugs.gnu.org; Thu, 22 Sep 2022 10:39:44 -0400
Received: from lists.gnu.org ([209.51.188.17]:46526)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philipp@HIDDEN>) id 1obLIB-0002i2-TH
 for submit <at> debbugs.gnu.org; Thu, 22 Sep 2022 08:27:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42730)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <philipp@HIDDEN>)
 id 1obLIB-00057G-H4
 for bug-auctex@HIDDEN; Thu, 22 Sep 2022 08:26:59 -0400
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:60553)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <philipp@HIDDEN>)
 id 1obLI9-0001Yk-39
 for bug-auctex@HIDDEN; Thu, 22 Sep 2022 08:26:58 -0400
Received: (Authenticated sender: philipp@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id EF07F24000F
 for <bug-auctex@HIDDEN>; Thu, 22 Sep 2022 12:26:41 +0000 (UTC)
Received: by mail-ed1-f47.google.com with SMTP id z13so13272650edb.13
 for <bug-auctex@HIDDEN>; Thu, 22 Sep 2022 05:26:41 -0700 (PDT)
X-Gm-Message-State: ACrzQf2JGUzjE4sqsm+GsbbEmiXbH6cKp8u/xeM+LJGVk0KoUoa3uS/S
 pGz6PWUvTnQ0S9adrcozFTIccyuIbbcAEsC5qHU=
X-Google-Smtp-Source: AMsMyM7LMLXcGKl8EpqY6s+gI40EmHTlk79I/9wneO16gMCndj+o90AdhihLXoYbybfYhFbDVppIKOseFn9kV/USZsY=
X-Received: by 2002:a05:6402:206d:b0:454:c472:f9b5 with SMTP id
 bd13-20020a056402206d00b00454c472f9b5mr3112903edb.388.1663849601246; Thu, 22
 Sep 2022 05:26:41 -0700 (PDT)
MIME-Version: 1.0
From: "Philipp G. Haselwarter" <philipp@HIDDEN>
Date: Thu, 22 Sep 2022 14:26:04 +0200
X-Gmail-Original-Message-ID: <CALNu-QWSj4+FDERUxTsUmiU067S9FJu-EDK-ivxjff-PqNOb-Q@HIDDEN>
Message-ID: <CALNu-QWSj4+FDERUxTsUmiU067S9FJu-EDK-ivxjff-PqNOb-Q@HIDDEN>
Subject: 13.1.4; Can't work with indirect buffers
To: bug-auctex@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: none client-ip=217.70.183.193;
 envelope-from=philipp@HIDDEN; helo=relay1-d.mail.gandi.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 22 Sep 2022 10:39:40 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

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.

Best regards,
Philipp

Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.34, cairo version 1.17.6)
 of 2022-09-14
Package: 13.1.4

current state:
==============
(setq
 AUCTeX-date "2022-08-26"
 window-system 'pgtk
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex"
                  "/home/philipp/.emacs.d/elpa/auctex-13.1.4/style"
                  "/home/philipp/.emacs.d/auctex/auto"
                  "/home/philipp/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save nil
 TeX-parse-self nil
 TeX-master t
 TeX-command-list '(("LatexMk"
                     "latexmk %(-PDF)%S%(mode) %(file-line-error)
%(extraopts) %t"
                     TeX-run-latexmk nil
                     (plain-tex-mode latex-mode doctex-mode) :help
                     "Run LatexMk")
                    ("LatexMk"
                     "latexmk %(-PDF)%S%(mode) %(file-line-error)
%(extraopts) %t"
                     TeX-run-latexmk nil
                     (plain-tex-mode latex-mode doctex-mode) :help
                     "Run LatexMk")
                    ("Skip" "skip" my-tex-skip nil t :help "Do nothing")
                    ("TeX"
                     "%(PDF)%(tex) %(file-line-error) %`%(extraopts)
%S%(PDFout)%(mode)%' %(output-dir) %t"
                     TeX-run-TeX nil
                     (plain-tex-mode ams-tex-mode texinfo-mode) :help
                     "Run plain TeX")
                    ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil
                     (latex-mode doctex-mode) :help "Run LaTeX")
                    ("Makeinfo" "makeinfo %(extraopts) %(o-dir) %t"
                     TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with Info output")
                    ("Makeinfo HTML"
                     "makeinfo %(extraopts) %(o-dir) --html %t"
                     TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with HTML output")
                    ("AmSTeX"
                     "amstex %(PDFout) %`%(extraopts) %S%(mode)%'
%(output-dir) %t"
                     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
                    ("ConTeXt"
                     "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
                     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
                    ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
                     TeX-run-TeX nil (context-mode) :help
                     "Run ConTeXt until completion")
                    ("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode context-mode)
                     :help "Run BibTeX")
                    ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode)
                     :help "Run Biber")
                    ("Texindex" "texindex %s.??" TeX-run-command nil
                     (texinfo-mode) :help "Run Texindex")
                    ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil
                     (texinfo-mode) :help "Run Texi2dvi or Texi2pdf")
                    ("View" "%V" TeX-run-discard-or-function t t :help
                     "Run Viewer")
                    ("Print" "%p" TeX-run-command t t :help "Print the file")
                    ("Queue" "%q" TeX-run-background nil t :help
                     "View the printer queue" :visible TeX-queue-command)
                    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode)
                     :help "Generate PostScript file")
                    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode)
                     :help "Convert DVI file to PostScript")
                    ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx
                     nil
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode)
                     :help "Convert DVI file to PDF with dvipdfmx")
                    ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode)
                     :help "Convert PostScript file to PDF")
                    ("Glossaries" "makeglossaries %(d-dir) %s"
                     TeX-run-command nil
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode)
                     :help "Run makeglossaries to create glossary file")
                    ("Index" "makeindex %(O?idx)" TeX-run-index nil
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode)
                     :help "Run makeindex to create index file")
                    ("upMendex" "upmendex %(O?idx)" TeX-run-index t
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode)
                     :help "Run upmendex to create index file")
                    ("Xindy" "texindy %s" TeX-run-command nil
                     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
                      texinfo-mode)
                     :help "Run xindy to create index file")
                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
                     :help "Check LaTeX file for correctness")
                    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil
                     (latex-mode) :help
                     "Check LaTeX file for common mistakes")
                    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function
                     nil t :help "Spell-check the document")
                    ("Clean" "TeX-clean" TeX-run-function nil t :help
                     "Delete generated intermediate files")
                    ("Clean All" "(TeX-clean t)" TeX-run-function nil t
                     :help "Delete generated intermediate and output files")
                    ("Other" "" TeX-run-command t t :help
                     "Run an arbitrary command")
                    )
 )
-- 
Philipp G. Haselwarter




Acknowledgement sent to "Philipp G. Haselwarter" <philipp@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#58005; Package auctex. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 22 Sep 2022 14:45:01 UTC

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