From unknown Tue Jun 17 22:23:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65462: 13.2; preview clears overlays when killing an indirect buffer Resent-From: Paul Nelson Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Tue, 22 Aug 2023 23:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65462 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 65462@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169274625523879 (code B ref -1); Tue, 22 Aug 2023 23:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Aug 2023 23:17:35 +0000 Received: from localhost ([127.0.0.1]:60601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYacw-0006D2-MB for submit@debbugs.gnu.org; Tue, 22 Aug 2023 19:17:35 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYacu-0006Cl-U3 for submit@debbugs.gnu.org; Tue, 22 Aug 2023 19:17:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYacl-0003r4-Qd for bug-auctex@gnu.org; Tue, 22 Aug 2023 19:17:23 -0400 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYaci-00042p-Vm for bug-auctex@gnu.org; Tue, 22 Aug 2023 19:17:23 -0400 Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-34cafafa50eso7718555ab.3 for ; Tue, 22 Aug 2023 16:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692746239; x=1693351039; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=DL7SwlP0fzy+8RbKOfMRZ8hSKwdZgeg5HhrOBjoT9/8=; b=f4LuIFfftSwRNuX568PAqNP+TMYbkHBUrbLaFHEQQEathw2a25BCHb9/5hOREsYfw2 9aJmkeNErO6/0Fept54ShLBNxb7B0h1PHLWAiELxbKgWSQ9pWYx8ZuLPQVT8gfb3axjs 0ILUpTM39C55FZF1QjRFHnjMk6yT9hHMkfk3R/c/TXKDeD1V/zrjoCkOsqyoDOaA6xfq VCo2AO6/oNFErZ0TIVR0dhKz70tIbvZQSSWu5cWmIRtrZcBXPT3VmhL0qYfiUjji8DU6 JpYqL2NAfEoHWrj1TlsAFSMtVYsYbtm8G66RMJ8JB/7xyvfI9sGKjhsKwf+gqQF4GnDY Ggeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692746239; x=1693351039; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DL7SwlP0fzy+8RbKOfMRZ8hSKwdZgeg5HhrOBjoT9/8=; b=LlPYUb+pquLqHqX/cR6AdKVlveeWCJvxTTyt+ANztgnNXKaQKlu+RA1uUBIFEyYLk2 NE1E5zsPEL0hJB4yK5FLv2W5VxcwEqorMrwAyXdCrJ/xmZRiGluQU/Tglq8BPM3BUg3n VNKU692Aiu6l53LxAyB/9wmqTaFww9JhXk3NsB5IMVHONXvU0NEuX6/fGNJZVjoUlSqA RzSSRAtZrVU2loxz5u2PLG6pcpZ/rfgTGi4bywiAy/c5DxdZj61AIxCv7V0Py9n/4YLc /QH5gG7Hy4D/jK3emskIITwhR3Lb15Z7Y7r+XyG68WXyV9eJ1+PLsooTyZCqtKzhodWt jd1Q== X-Gm-Message-State: AOJu0Yz9IdKkT+uItd84lZRT/N+N/PYEUjIxfMLM+YvVtj8+YgNy0tDK Pm5loa/4PwgusPCz9u9Cbx3L4h6tucXFz2RQ9k/OsM/j09Jiuw== X-Google-Smtp-Source: AGHT+IHfgPeTnz7jWFV5YctRp1WxZKt/A1Ggp+57NyXkbWndA0P82moAPdGS3R1fiPMHPXC45Ql4eF8L7eGEeS80hNY= X-Received: by 2002:a05:6e02:1147:b0:347:7421:9d85 with SMTP id o7-20020a056e02114700b0034774219d85mr993409ill.29.1692746238494; Tue, 22 Aug 2023 16:17:18 -0700 (PDT) MIME-Version: 1.0 From: Paul Nelson Date: Wed, 23 Aug 2023 01:17:07 +0200 Message-ID: Content-Type: multipart/alternative; boundary="0000000000003d8dff06038b326d" Received-SPF: pass client-ip=2607:f8b0:4864:20::134; envelope-from=ultrono@gmail.com; helo=mail-il1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --0000000000003d8dff06038b326d Content-Type: text/plain; charset="UTF-8" Take any latex document with sufficiently many equations. After cloning an indirect buffer ("C-x 4 c") and killing that indirect buffer (e.g., "C-x 4 0"), many of the overlays in the original buffer become invisible. Indeed, one can check that the relevant subfolder of =_region_.prv= is rendered empty, so the overlays that remain visible are just those that have been cached. This is undesirable: if one attempts to simultaneously use preview and indirect buffers, one eventually has to regenerate all previews after killing any indirect buffer. The issue is that killing the indirect buffer calls ~preview-kill-buffer-cleanup~, which in turn calls ~preview-clearout~. In my local version, I wrapped ~preview-kill-buffer-cleanup~ with ~(unless (buffer-base-buffer) ...)~, as follows, so that it doesn't clearout indirect buffers. This has resolved the issue for me, but I imagine it could be useful for others who use both AUCTeX and indirect buffers. #+begin_src elisp (defun preview-kill-buffer-cleanup (&optional buf) "This is a cleanup function just for use in hooks. Cleans BUF or current buffer. The difference to `preview-clearout-buffer' is that previews associated with the last buffer modification time are kept." (with-current-buffer (or buf (current-buffer)) (unless (buffer-base-buffer) ; do not clearout indirect buffers (save-restriction (widen) (preview-clearout (point-min) (point-max) (visited-file-modtime)))))) #+end_src Emacs : GNU Emacs 30.0.50 (build 2, x86_64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6 (Build 21G115)) of 2023-08-11 Package: 13.2 current state: ============== (setq AUCTeX-date "2023-08-18" window-system 'ns LaTeX-version "2e" TeX-style-path '("/usr/local/var/auctex" "/Users/paulnelson/.emacs.d/elpaca/builds/auctex/auctex/style" "/Users/paulnelson/.emacs.d/auctex/auto" "/Users/paulnelson/.emacs.d/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master "~/doit/preview-master.tex" TeX-command-list '(("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")) ) --0000000000003d8dff06038b326d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Take any latex document with sufficiently many equations.= =C2=A0 After cloning an indirect buffer ("C-x 4 c") and killing t= hat indirect buffer (e.g., "C-x 4 0"), many of the overlays in th= e original buffer become invisible.=C2=A0 Indeed, one can check that the re= levant subfolder of =3D_region_.prv=3D is rendered empty, so the overlays t= hat remain visible are just those that have been cached.

This is und= esirable: if one attempts to simultaneously use preview and indirect buffer= s, one eventually has to regenerate all previews after killing any indirect= buffer.

The issue is that killing the indirect buffer calls ~previe= w-kill-buffer-cleanup~, which in turn calls ~preview-clearout~.

In m= y local version, I wrapped ~preview-kill-buffer-cleanup~ with ~(unless (buf= fer-base-buffer) ...)~, as follows, so that it doesn't clearout indirec= t buffers.=C2=A0 This has resolved the issue for me, but I imagine it could= be useful for others who use both AUCTeX and indirect buffers.

#+be= gin_src elisp
(defun preview-kill-buffer-cleanup (&optional buf)
= =C2=A0 "This is a cleanup function just for use in hooks.
Cleans BU= F or current buffer.=C2=A0 The difference to
`preview-clearout-buffer= 9; is that previews
associated with the last buffer modification time ar= e
kept."
=C2=A0 (with-current-buffer (or buf (current-buffer))=C2=A0 =C2=A0 (unless (buffer-base-buffer) =C2=A0 =C2=A0; do not clearout= indirect buffers
=C2=A0 =C2=A0 =C2=A0 (save-restriction
(widen)
= (preview-clearout (point-min) (point-max) (visited-file-modtime))))))
#= +end_src



Emacs =C2=A0: GNU Emacs 30.0.50 (build 2, x86_64-ap= ple-darwin21.6.0, NS appkit-2113.60 Version 12.6 (Build 21G115))
=C2=A0o= f 2023-08-11
Package: 13.2

current state:
=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0AUCTeX-date "2023-08-18&quo= t;
=C2=A0window-system 'ns
=C2=A0LaTeX-version "2e"
= =C2=A0TeX-style-path '("/usr/local/var/auctex" "/Users/p= aulnelson/.emacs.d/elpaca/builds/auctex/auctex/style"
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "/Users/paulnelson/.= emacs.d/auctex/auto" "/Users/paulnelson/.emacs.d/auctex/style&quo= t; "auto" "style")
=C2=A0TeX-auto-save t
=C2=A0Te= X-parse-self t
=C2=A0TeX-master "~/doit/preview-master.tex"=C2=A0TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-li= ne-error) %`%(extraopts) %S%(PDFout)%(mode)%' %(output-dir) %t"=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "R= un plain TeX")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ("LaTeX" "%`%l%(mode)%' %T" TeX-r= un-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("Makei= nfo" "makeinfo %(extraopts) %(o-dir) %t" TeX-run-compile nil= (texinfo-mode) :help
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0"Run Makeinfo with Info output")
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (&quo= t;Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t" = TeX-run-compile nil (texinfo-mode) :help
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"Run Makeinfo with HTML o= utput")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mo= de)%' %(output-dir) %t" TeX-run-TeX nil (ams-tex-mode)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:help = "Run AMSTeX")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 ("ConTeXt" "%(cntxcom) --once --texuti= l %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode)
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:help= "Run ConTeXt once")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("ConTeXt Full" "%(cntxcom) %(e= xtraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&q= uot;Run ConTeXt until completion")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("BibTeX" "bibtex %(O= ?aux)" TeX-run-BibTeX nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(plain-tex-mode latex-mode doctex-mode a= ms-tex-mode texinfo-mode context-mode) :help "Run BibTeX")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("B= iber" "biber %(output-dir) %s" TeX-run-Biber nil
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(plain= -tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run= Biber")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 ("Texindex" "texindex %s.??" TeX-run-comm= and nil (texinfo-mode) :help "Run Texindex")
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("Texi2dvi" = "%(PDF)texi2dvi %t" TeX-run-command nil (texinfo-mode) :help &quo= t;Run Texi2dvi or Texi2pdf")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("View" "%V" TeX-run-di= scard-or-function t t :help "Run Viewer")
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("Print" "= %p" TeX-run-command t t :help "Print the file")
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("Queue= " "%q" TeX-run-background nil t :help "View the printer= queue" :visible TeX-queue-command)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("File" "%(o?)dvips %= d -o %f " TeX-run-dvips t
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(plain-tex-mode latex-mode doctex-mode a= ms-tex-mode texinfo-mode) :help "Generate PostScript file")
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (&quo= t;Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(plain= -tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"= ;Convert DVI file to PostScript")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("Dvipdfmx" "dvipdfmx= -o %(O?pdf) %d" TeX-run-dvipdfmx nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(plain-tex-mode latex-mode = doctex-mode ams-tex-mode texinfo-mode) :help
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"Convert DVI file to = PDF with dvipdfmx")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 ("Ps2pdf" "ps2pdf %f %(O?pdf)"= TeX-run-ps2pdf nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(plain-tex-mode latex-mode doctex-mode ams-tex-mode= texinfo-mode) :help
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0"Convert PostScript file to PDF")
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (&quo= t;Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command n= il
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :h= elp
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0"Run makeglossaries to create glossary file")
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("Inde= x" "makeindex %(O?idx)" TeX-run-index nil
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(plain-tex-mo= de latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"Run ma= keindex to create index file")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("upMendex" "upmendex %(O= ?idx)" TeX-run-index t
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(plain-tex-mode latex-mode doctex-mode am= s-tex-mode texinfo-mode) :help
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"Run upmendex to create index file&= quot;)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ("Xindy" "texindy %s" TeX-run-command nil
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(p= lain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0"Run xindy to create index file")
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("Check" "lach= eck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file = for correctness")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 ("ChkTeX" "chktex -v6 %s" TeX-run-= compile nil (latex-mode) :help "Check LaTeX file for common mistakes&q= uot;)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ("Spell" "(TeX-ispell-document \"\")" TeX= -run-function nil t :help "Spell-check the document")
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("Clean= " "TeX-clean" TeX-run-function nil t :help "Delete gene= rated intermediate files")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("Clean All" "(TeX-clean t)&= quot; TeX-run-function nil t :help
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"Delete generated intermediat= e and output files")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 ("Other" "" TeX-run-command t = t :help "Run an arbitrary command"))
=C2=A0)
--0000000000003d8dff06038b326d-- From unknown Tue Jun 17 22:23:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65462: 13.2; preview clears overlays when killing an indirect buffer Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 28 Aug 2023 04:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65462 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Paul Nelson Cc: 65462@debbugs.gnu.org Received: via spool by 65462-submit@debbugs.gnu.org id=B65462.169319775710209 (code B ref 65462); Mon, 28 Aug 2023 04:43:01 +0000 Received: (at 65462) by debbugs.gnu.org; 28 Aug 2023 04:42:37 +0000 Received: from localhost ([127.0.0.1]:46640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaU5E-0002eb-RQ for submit@debbugs.gnu.org; Mon, 28 Aug 2023 00:42:37 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:60288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaU58-0002eK-HJ for 65462@debbugs.gnu.org; Mon, 28 Aug 2023 00:42:35 -0400 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 61D966A; Mon, 28 Aug 2023 13:42:22 +0900 (JST) From: Ikumi Keita In-reply-to: References: Comments: In-reply-to Paul Nelson message dated "Wed, 23 Aug 2023 01:17:07 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5835.1693197737.1@localhost> Date: Mon, 28 Aug 2023 13:42:18 +0900 Message-ID: <5836.1693197738@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Paul, >>>>> Paul Nelson writes: > In my local version, I wrapped ~preview-kill-buffer-cleanup~ with ~(unless > (buffer-base-buffer) ...)~, as follows, so that it doesn't clearout > indirect buffers. This has resolved the issue for me, but I imagine it > could be useful for others who use both AUCTeX and indirect buffers. Thank you, I incorporated your suggestion. I'll close this bug. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 28 00:43:18 2023 Received: (at control) by debbugs.gnu.org; 28 Aug 2023 04:43:18 +0000 Received: from localhost ([127.0.0.1]:46644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaU5u-0002fw-6Y for submit@debbugs.gnu.org; Mon, 28 Aug 2023 00:43:18 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:60292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaU5s-0002fn-Il for control@debbugs.gnu.org; Mon, 28 Aug 2023 00:43:16 -0400 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 928526A for ; Mon, 28 Aug 2023 13:43:09 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #65462 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5891.1693197787.1@localhost> Date: Mon, 28 Aug 2023 13:43:08 +0900 Message-ID: <5894.1693197788@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 65462 quit