From unknown Sat Aug 16 20:56:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34645 <34645@debbugs.gnu.org> To: bug#34645 <34645@debbugs.gnu.org> Subject: Status: Make TeX-process-check prompt optional? Reply-To: bug#34645 <34645@debbugs.gnu.org> Date: Sun, 17 Aug 2025 03:56:49 +0000 retitle 34645 Make TeX-process-check prompt optional? reassign 34645 auctex submitter 34645 Reuben Thomas severity 34645 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 25 07:14:16 2019 Received: (at submit) by debbugs.gnu.org; 25 Feb 2019 12:14:17 +0000 Received: from localhost ([127.0.0.1]:50887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyF9E-0006ha-IZ for submit@debbugs.gnu.org; Mon, 25 Feb 2019 07:14:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyF99-0006hK-UD for submit@debbugs.gnu.org; Mon, 25 Feb 2019 07:14:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:53064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyF94-0007jf-OU for submit@debbugs.gnu.org; Mon, 25 Feb 2019 07:14:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyF93-0007Iy-N4 for bug-auctex@gnu.org; Mon, 25 Feb 2019 07:14:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyF92-0007hw-QE for bug-auctex@gnu.org; Mon, 25 Feb 2019 07:14:05 -0500 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]:33488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyF92-0007gX-Hy for bug-auctex@gnu.org; Mon, 25 Feb 2019 07:14:04 -0500 Received: by mail-ot1-x32e.google.com with SMTP id q24so7641909otk.0 for ; Mon, 25 Feb 2019 04:14:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=Z5MLDzkWydS2UH1qSWHJrZ2DqyOmnviMQkNHV+Mkb7w=; b=hGv2Yumh96zYRwF4BquVeXb4bRRJ8pjAg6yBsOX0ZnT09ZKXjP5rQf01xI7ouCCHaw qn9qfU80ObOlFvSPzLOrR/R76NT00PChH6H3iXFkqwXDZuv5kwUMuicgZwBdkeWBdvj5 k92Y+zYFb/quRbwHJ3anDmusYLGEuBoWGkNNI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Z5MLDzkWydS2UH1qSWHJrZ2DqyOmnviMQkNHV+Mkb7w=; b=gdFGvBIMUieAD7QSYLuA61B15Kzs0ub18kqn6CPoP9A5UUi1e7v89LM+Vg9nA6LHFc x6e8TQ/PjVaJAIrRQSpMfV8lGYc1HYTzc11Wsht+c3qTMcHDaV6+mul4LFB1bl+oCq0r MfRUbotoHCNBLFSXyZ2Fm7TWQw1Ad0ssqtytbmUneRygbJPQWN9jBevN5TWG37Yy80r1 7Xe8gbb0Ey+ESWqGYfnFg9h6Xgkp2uO3T3w/qL/WTR6G4rDY1d6K0qF7XUN7kbk+K1OA klWn8KP17W6qHoZt+fH5nrcjWVm38XAuT9jdTeo8bum/U52yBF530SOvJmOH+/ZLXysH aC6g== X-Gm-Message-State: AHQUAubEpTudp4u2xtaA9OaefZ3ln3nvHoeeo3/bPyJzM4lpBtpE8Pwi yMMheEgX+42VAKPIK/zUZ1LicSqIfxJxXKkJ9cVOFSrw X-Google-Smtp-Source: AHgI3Ia/fNDgFf5s/o8E6XzS0raRLYQ0ecxUh25HkiPhJ7QnhVWBcYndz42Ca8o9PHYV9BGGP4cycoFBk1Eh+I4sGRU= X-Received: by 2002:a05:6830:2096:: with SMTP id y22mr11679524otq.266.1551096842612; Mon, 25 Feb 2019 04:14:02 -0800 (PST) MIME-Version: 1.0 From: Reuben Thomas Date: Mon, 25 Feb 2019 12:13:51 +0000 Message-ID: Subject: Make TeX-process-check prompt optional? To: bug-auctex Content-Type: multipart/alternative; boundary="000000000000510e190582b6e003" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32e X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit 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.1 (/) --000000000000510e190582b6e003 Content-Type: text/plain; charset="UTF-8" I find myself frequently being prompted by TeX-process-check while editing a document that takes a long time to process. I always want to kill the process and start a new one. Would it be possible to add an option to disable the prompt, or is there some reason why the prompt should always be offered? I guess that in situations like mine an even better behaviour might be to always let a run continue until it is done, but to queue up another run when some change is outstanding. That way, one does not risk the output document not updating for a long time if frequent edits are being made and no LaTeX run ever completes, because it is always being interrupted. Finally, I noticed one typo (version 12.1.2 of AUCTeX): the docstring of TeX-process-check says "exist", and should say "exists". For now, I just redefined TeX-process-check in my init sequence to omit the prompt. -- https://rrt.sc3d.org --000000000000510e190582b6e003 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I find myself frequently being prompted= by TeX-process-check while editing a document that takes a long time to pr= ocess. I always want to kill the process and start a new one.

Would it be possible to add an opti= on to disable the prompt, or is there some reason why the prompt should alw= ays be offered?

I gues= s that in situations like mine an even better behaviour might be to always = let a run continue until it is done, but to queue up another run when some = change is outstanding. That way, one does not risk the output document not = updating for a long time if frequent edits are being made and no LaTeX run = ever completes, because it is always being interrupted.

Finally, I noticed one typo (version 12.1= .2 of AUCTeX): the docstring of TeX-process-check says "exist", a= nd should say "exists".

For now, I just redefined TeX-process-check in my init sequen= ce to omit the prompt.

--
--000000000000510e190582b6e003-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 12 14:02:23 2024 Received: (at 34645) by debbugs.gnu.org; 12 Mar 2024 18:02:23 +0000 Received: from localhost ([127.0.0.1]:43771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk6SF-0005Sb-6w for submit@debbugs.gnu.org; Tue, 12 Mar 2024 14:02:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk6SC-0005SO-B9 for 34645@debbugs.gnu.org; Tue, 12 Mar 2024 14:02:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk6PR-0002it-Lk; Tue, 12 Mar 2024 13:59:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=2TH1gFUeiP715Kl9NLp5iSbhR1l046vkDdU44WsMqWw=; b=e7LbDPoDcCr8EQd+rn/l nJ5K3h1Q9YJOGE4sTTbQhFvMKfCnOdRvygr2Py293mJj2nXzynLa8ixTEjgu85N3cSDJyIcgGnbld /xjJDQmpzWX72gUOksRA6dhebNSUPxlgWmtTU+HSw2iZQ7U8+Cvi8VDtvgPZQQtm3J3LPGCfautVi RstXYKkFVNMvoMclLAbVNVwA6wmO88QZ+3i2Pj1aG38z0cDVfRP4zvP9mioup59iD/fr+m1R34YxT FaNIKd5EJ9aUTX1vHqybHoFWd7aykPYdaX0IbT58M7N/AIAVOx+Fyghh9nH9Mf22k1L6YJo98Syld +UGK4aJSz6eUOw==; From: Arash Esbati To: Reuben Thomas Subject: Re: bug#34645: Make TeX-process-check prompt optional? In-Reply-To: (Reuben Thomas's message of "Mon, 25 Feb 2019 12:13:51 +0000") References: Date: Tue, 12 Mar 2024 18:59:18 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34645 Cc: 34645@debbugs.gnu.org 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: -3.3 (---) Reuben Thomas writes: > I find myself frequently being prompted by TeX-process-check while > editing a document that takes a long time to process. I always want to > kill the process and start a new one. > > Would it be possible to add an option to disable the prompt, or is > there some reason why the prompt should always be offered? (I'm going through old bug reports that unfortunately weren't resolved at the time.) Hi Reuben, are you thinking about something like this: --8<---------------cut here---------------start------------->8--- (defun TeX-process-check (name) "Check if a process for the TeX document NAME already exists. If so, give the user the choice of aborting the process or the current command." (let (process) (while (and (setq process (TeX-process name)) (eq (process-status process) 'run)) (cond ((or TeX-kill-process-no-query ; (t or nil) (yes-or-no-p (concat "Process `" (process-name process) "' for document `" name "' running, kill it? "))) (delete-process process)) ((eq (process-status process) 'run) (error "Cannot have two processes for the same document")))))) --8<---------------cut here---------------end--------------->8--- > I guess that in situations like mine an even better behaviour might be > to always let a run continue until it is done, but to queue up another > run when some change is outstanding. That way, one does not risk the > output document not updating for a long time if frequent edits are > being made and no LaTeX run ever completes, because it is always being > interrupted. Hmm, not sure about this idea. This sounds like running LaTeX continuously. What do others think? > Finally, I noticed one typo (version 12.1.2 of AUCTeX): the docstring > of TeX-process-check says "exist", and should say "exists". Thanks, I fixed this. Again, sorry for being late. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 12 14:25:31 2024 Received: (at 34645) by debbugs.gnu.org; 12 Mar 2024 18:25:31 +0000 Received: from localhost ([127.0.0.1]:43783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk6od-0005zs-31 for submit@debbugs.gnu.org; Tue, 12 Mar 2024 14:25:31 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:58834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk6oX-0005zY-Lm for 34645@debbugs.gnu.org; Tue, 12 Mar 2024 14:25:29 -0400 Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a4645485da6so137584366b.1 for <34645@debbugs.gnu.org>; Tue, 12 Mar 2024 11:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1710267825; x=1710872625; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=eJH25ocHhdiZpYSqcEbExwDK0uVw1oYpOBdE49SjXl8=; b=R60OUleGueLo+yIDP1/Sd1PCZTSTjAhNX31sCl2PH75OJx5u+iwZs8q94ZVsMUNuIo /cU/dPKxSYHjd0chFnVjm7Q3KnFmO6o+Vk2NY4C5FSxjXP3/TnTb7BjNjFyWwG0hb5F4 L9ykeKRR076yTdd4eJAZsAOlGKmw2uxSOXw7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710267825; x=1710872625; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eJH25ocHhdiZpYSqcEbExwDK0uVw1oYpOBdE49SjXl8=; b=fuJ+jKEABtO17YdqyItWBKIAYo5euXfPFBSbKm9uvMkvAkoVm4uuuTfO+I8jYqQdLc QBmm0tvrJImEaW8wTVl9SWxqySlt3XO626iGkYRKhRfXrU8bRYaFkIqqtPtmaPVwJ9eT EPh0VeIk+v1L94CEB0U4KQVvLR07bueobyjsaonoPxt6tXKZeHyJNKa6TacYCSWcwfC3 c8+rs+4yHMkn3ooP9BU/lARCXKFyft5KUvtc1ojcPfEV2VFCeSA1B9q/CNIXmSbtSlNE KaYgrx17lbmtK3DqoYb3uj9sGq7tpYgifmVeItBX5dCuakYz+DAtvE34jORGfSl1oT+e 7vTw== X-Gm-Message-State: AOJu0YwtGCmD+HzJhgurP7YHh0y5EYhoHquZobaujfAyoM3rSruUIPvI 7pxRTUZPd/ZL9H1fjfh3UQS3BE38RfOC1sgLvx5vB51L8YdL/cOXf7htwSmcfIZhj8ayqRxrDhG tTAkTLVQF4ul+nCC7QSba9G96nEA5Dlmg3lr1AmMn4KVgZ1Dwn+Y= X-Google-Smtp-Source: AGHT+IHg+OlA7wkgouOKm/e3Y+vLtMZ7Z2nasG/XltyPSKS+6NHJZTVQ9a5sJzrc5Usi3R48kNNqqchxhVCaSMApWWo= X-Received: by 2002:a17:907:d501:b0:a44:f4a9:ea3e with SMTP id wb1-20020a170907d50100b00a44f4a9ea3emr7845312ejc.12.1710267824687; Tue, 12 Mar 2024 11:23:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Reuben Thomas Date: Tue, 12 Mar 2024 19:23:31 +0100 Message-ID: Subject: Re: bug#34645: Make TeX-process-check prompt optional? To: Arash Esbati Content-Type: multipart/alternative; boundary="00000000000029670b06137ac2f4" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34645 Cc: 34645@debbugs.gnu.org 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 (-) --00000000000029670b06137ac2f4 Content-Type: text/plain; charset="UTF-8" On Tue, 12 Mar 2024 at 18:59, Arash Esbati wrote: > > are you thinking about something like this: > > --8<---------------cut here---------------start------------->8--- > (defun TeX-process-check (name) > "Check if a process for the TeX document NAME already exists. > If so, give the user the choice of aborting the process or the current > command." > (let (process) > (while (and (setq process (TeX-process name)) > (eq (process-status process) 'run)) > (cond > ((or TeX-kill-process-no-query ; (t or nil) > (yes-or-no-p (concat "Process `" > (process-name process) > "' for document `" > name > "' running, kill it? "))) > (delete-process process)) > ((eq (process-status process) 'run) > (error "Cannot have two processes for the same document")))))) > --8<---------------cut here---------------end--------------->8--- > Yes, that looks good! Thanks for looking at this old bug report. -- https://rrt.sc3d.org --00000000000029670b06137ac2f4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

are you thinking about something like this:

--8<---------------cut here---------------start------------->8---
(defun TeX-process-check (name)
=C2=A0 "Check if a process for the TeX document NAME already exists. If so, give the user the choice of aborting the process or the current
command."
=C2=A0 (let (process)
=C2=A0 =C2=A0 (while (and (setq process (TeX-process name))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (eq (process-status= process) 'run))
=C2=A0 =C2=A0 =C2=A0 (cond
=C2=A0 =C2=A0 =C2=A0 =C2=A0((or TeX-kill-process-no-query ; (t or nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (yes-or-no-p (concat "Proces= s `"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(process-name process)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"' for document `&quo= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0name
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"' running, kill it? = ")))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (delete-process process))
=C2=A0 =C2=A0 =C2=A0 =C2=A0((eq (process-status process) 'run)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (error "Cannot have two processes for the = same document"))))))
--8<---------------cut here---------------end--------------->8---
=

Yes, that looks good!

Thanks for looking at = this old bug report.
=C2=A0
--
--00000000000029670b06137ac2f4-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 12 16:17:01 2024 Received: (at 34645) by debbugs.gnu.org; 12 Mar 2024 20:17:01 +0000 Received: from localhost ([127.0.0.1]:43909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk8YW-0000T1-N2 for submit@debbugs.gnu.org; Tue, 12 Mar 2024 16:17:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk8YS-0000Sk-PW for 34645@debbugs.gnu.org; Tue, 12 Mar 2024 16:16:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk8Xn-0001WB-5h; Tue, 12 Mar 2024 16:16:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=yx5uQcLAf1zk6WVThhYV154nAuytFKuE1bHt2Zus9CI=; b=W3xLMjDIjSbhRq6wAcpp A199ngmqpqNappzx7iSeoNZqc+CPjRwSONKGVHQ/xkVavPl5ZgUW2I83WAE9/wThzre7THJrriIXP 0y+SXOwmXMbj1XtvnbqrPRz4fO+tu6SFemqCqmerd0+sVCUC/i8SLZhP1jvW7+plGNdTL6HIuDXqp g/oRlHpGuUynlkMVTXN6A2/c8w+1wfCrO62he+JUDgQ26b8qIGCoa2b1Nmtni93g3Cog55sAnuP0j 2JXN2xLQ6nkMDAd8z+TXFUj28ME1g+gEPfRnWh1qjOU8nNhBKo5mNVWJP5XIMOu69j+mduqiWqf1n xuvzA0TLZWwtpg==; From: Arash Esbati To: Reuben Thomas Subject: Re: bug#34645: Make TeX-process-check prompt optional? In-Reply-To: (Reuben Thomas's message of "Tue, 12 Mar 2024 19:23:31 +0100") References: Date: Tue, 12 Mar 2024 21:15:23 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34645 Cc: 34645@debbugs.gnu.org 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: -3.3 (---) Reuben Thomas writes: > Yes, that looks good! Thanks for your swift response. My plan is to install the following change (incl. addition to manual etc.). Does it make sense to have the custom variable settable on a per file basis or is it overkill? --8<---------------cut here---------------start------------->8--- diff --git a/tex.el b/tex.el index d53ef39b..f69c85ae 100644 --- a/tex.el +++ b/tex.el @@ -8769,22 +8769,31 @@ Return nil only if no process buffer exists." t) nil))) +(defcustom TeX-kill-process-without-query nil + "If non-nil, abort a running document process without user query." + :group 'TeX-command + :type 'boolean + :local t + :safe #'booleanp) + (defun TeX-process-check (name) "Check if a process for the TeX document NAME already exists. If so, give the user the choice of aborting the process or the current -command." +command. If the value of `TeX-kill-process-without-query' is non-nil, +user query is skipped and the process is aborted right away." (let (process) (while (and (setq process (TeX-process name)) (eq (process-status process) 'run)) (cond - ((yes-or-no-p (concat "Process `" - (process-name process) - "' for document `" - name - "' running, kill it? ")) + ((or TeX-kill-process-without-query + (yes-or-no-p (concat "Process `" + (process-name process) + "' for document `" + name + "' running, kill it? "))) (delete-process process)) ((eq (process-status process) 'run) - (error "Cannot have two processes for the same document")))))) + (error "Cannot have two processes for the same document")))))) (defun TeX-process-buffer-name (name) "Return name of AUCTeX buffer associated with the document NAME." --8<---------------cut here---------------end--------------->8--- > Thanks for looking at this old bug report. You're welcome, and again sorry it took so long. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 12 18:08:50 2024 Received: (at 34645) by debbugs.gnu.org; 12 Mar 2024 22:08:50 +0000 Received: from localhost ([127.0.0.1]:43987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkAIj-00068r-Nl for submit@debbugs.gnu.org; Tue, 12 Mar 2024 18:08:50 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:44213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkAIf-00068a-8W for 34645@debbugs.gnu.org; Tue, 12 Mar 2024 18:08:48 -0400 Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-56838e00367so521081a12.0 for <34645@debbugs.gnu.org>; Tue, 12 Mar 2024 15:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1710281224; x=1710886024; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YMOebP325wQxGWQnuHTIz265SXJQAPxhGIAUjXU0h6U=; b=nSXUgbyyihql8K4gjO6iNkH97Hf5fPgiQG97ifjZdrE7Gov0t4SrYX43ZcHKwM4R5+ CHTCyjuRSYcOhxfwJCIIUTyaRZYi6uQsXbHsmqL+SE5Y5eIH3RyJC3vjy8XbNoOoPzOx kLhKob2tZLiFJ9Bmrim3kWCQgZlZf3IV5ox/s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710281224; x=1710886024; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YMOebP325wQxGWQnuHTIz265SXJQAPxhGIAUjXU0h6U=; b=YbyOXCK8bceQ9y4l6ukF8fli37VLySa1l3uOhBM+SnTLWhdtZ47fbpSQhF6rceL6P8 8CLQuOLyhDPyYe4W7LMbMJQ2EFWPDKNgE87HtOSq7FWNMcNyZSbLBZVrNkpuUTnwCJeC lysl+MB4AWxYtq6e0LoZWC2o8tzvBfZbfG/SoacjSXC+3p+wNnfcCK+IkcTDkn7FbiMT /HKEaAK9J/ll35sGn5BMRr19y6jX1qlHmyvFv1p7JGHuiO2hMGY/EnArCtsY3wlNU8kv g06NdNz2wQA1VKh8zmcfliMcs7MWTc2ywMICASAf+cmOoYGN0Pvl7uJiBByUmWifQzMm gcsA== X-Gm-Message-State: AOJu0YxD5wGv4uGXfsceMzc6THAykSKEdbC9WYtSjXnBZZrQP9cms1YK 5AX0+z8ncRvSLhb2swZoqsM9XgGCAV8ruz+kpkAOL7e9yKyKx3ducsa577awNpnM9TYFr6pOV6L FC6gZs7kng4XIxkQgIv4oVmlp06ywq9ii9P1K+1TWbt7Kt4egYzo= X-Google-Smtp-Source: AGHT+IE0GzO6m0fvf2ojmM7tR0ZATQob9zqamEJ87UkcBoLFrGbQNJRFvaK/cfeZU2RpSmw2tXE48yQYANhCkeBZ1Jw= X-Received: by 2002:a17:907:cb82:b0:a46:4a1f:3cd5 with SMTP id un2-20020a170907cb8200b00a464a1f3cd5mr2087421ejc.4.1710281223755; Tue, 12 Mar 2024 15:07:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Reuben Thomas Date: Tue, 12 Mar 2024 23:06:51 +0100 Message-ID: Subject: Re: bug#34645: Make TeX-process-check prompt optional? To: Arash Esbati Content-Type: multipart/alternative; boundary="000000000000cef9f506137de0fb" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34645 Cc: 34645@debbugs.gnu.org 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 (-) --000000000000cef9f506137de0fb Content-Type: text/plain; charset="UTF-8" On Tue, 12 Mar 2024 at 21:16, Arash Esbati wrote: > Reuben Thomas writes: > > > Yes, that looks good! > > Thanks for your swift response. My plan is to install the following > change (incl. addition to manual etc.). Does it make sense to have the > custom variable settable on a per file basis or is it overkill? > I think it does make sense to make it file-local, as one could be engaged in quite different workflows and want different behaviours. -- https://rrt.sc3d.org --000000000000cef9f506137de0fb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 12 Mar 2024 at 21:16, Arash Esbati <arash@gnu.org> wrote:
Reuben Thomas <rrt@sc3d.org> writes:

> Yes, that looks good!

Thanks for your swift response.=C2=A0 My plan is to install the following change (incl. addition to manual etc.).=C2=A0 Does it make sense to have th= e
custom variable settable on a per file basis or is it overkill?

I think it does make sense to m= ake it file-local, as one could be engaged in quite different workflows and= want different behaviours.

--
<= div dir=3D"ltr">
--000000000000cef9f506137de0fb-- From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 13 08:41:00 2024 Received: (at 34645-done) by debbugs.gnu.org; 13 Mar 2024 12:41:00 +0000 Received: from localhost ([127.0.0.1]:44979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkNum-00059D-E7 for submit@debbugs.gnu.org; Wed, 13 Mar 2024 08:41:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkNuj-00058x-KI for 34645-done@debbugs.gnu.org; Wed, 13 Mar 2024 08:40:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkNu4-0007il-QR; Wed, 13 Mar 2024 08:40:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=N7OA7zDCh8CoCJKwWkDnBNYO8pePXUk4DV14Rk8246k=; b=gLCB8wk/aiVUQB7fTUGJ OebTa8XQCEmpG6ZoaLB3mLBWwaBplPGHWhDfO8tcFXI83t0f/1OKy+k6VruE+gew12Fjx85O21vWj g8Fo5ED9qTsyGHGUP8yY+8DNlFyV7Lhi7Zl0BpH38RNw5LPS8we4tJj7PdnTy/8Rppqr4dZAeV+k5 SpB1E7mupiBUNiMb+GJnCVEd37KtYyil66tIptKGo6z9RzFmyT8VU23blg2EP7tSwpLm8HBehg1jj Uk0nJDt9IxF1MwJhMRXDFu+YXRQdiAJdRRmmxisEEAQlLqZMbORBeDi8+4i4GxkVx8ZhXOTSPkWpA 9wJMFHaXWs2iYA==; From: Arash Esbati To: Reuben Thomas Subject: Re: bug#34645: Make TeX-process-check prompt optional? In-Reply-To: (Reuben Thomas's message of "Tue, 12 Mar 2024 23:06:51 +0100") References: Date: Wed, 13 Mar 2024 13:40:13 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34645-done Cc: 34645-done@debbugs.gnu.org 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: -3.3 (---) Reuben Thomas writes: > I think it does make sense to make it file-local, as one could be > engaged in quite different workflows and want different behaviours. Thanks. I pushed that change now (406eb61fc1), so I'm closing this report. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 13 08:50:17 2024 Received: (at 34645-done) by debbugs.gnu.org; 13 Mar 2024 12:50:18 +0000 Received: from localhost ([127.0.0.1]:44993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkO3l-0008Et-KA for submit@debbugs.gnu.org; Wed, 13 Mar 2024 08:50:17 -0400 Received: from mail-ej1-f43.google.com ([209.85.218.43]:44257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkO3j-0008Ee-4R for 34645-done@debbugs.gnu.org; Wed, 13 Mar 2024 08:50:16 -0400 Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a45bb2a9c20so119177066b.0 for <34645-done@debbugs.gnu.org>; Wed, 13 Mar 2024 05:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1710334114; x=1710938914; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=o/4uso97I6JkOINSERN61lIvHJD1mazqS//zd4YsgP4=; b=FphXqe8+MVxIGzf6L/DEyZQxZW6Vkf4cdqt0mHXeUUtUTDFxpFJ8Wk8v25DHFthfKj MR3qEpIKqN0RYB+6lBkixgbchasntybK9aNoO9eLHBxAmyDe8nspBlRK0ADoCqSJWHnm i95UJRg1uhkwDIQhYjUH4EEX27Fd+RaKy9Axg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710334114; x=1710938914; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=o/4uso97I6JkOINSERN61lIvHJD1mazqS//zd4YsgP4=; b=xFAxIrVhNzEMGCLdNJ7drS9XLN2PKW/5E4pf2HKDgd6s6q4U1dcNsKMxuDZe5ZLB/b 1uU6pZT+f4hNbLwtWMvebRoApaEHGm/3K5yiACutuWN4q9uGboGQTHADmNF5eaADAiqo NblxJbIFL30ShyjWCPbkwexew22yhAhntE3mymNH37IHV4Vur7P52zIN0C1k2hJska6T rTItb6UjYc+FgOyt1WKQp/0yw1ZWctd1hACw0ZVSIHo39MUu3k0wCikYK/6khzjmCyLj quckwmfvqbj7xVJeQdX16KS/xVJixWt0da3K73oDE5w/tMXy+wUhgxKk3Uo379tCp5rz w9MQ== X-Gm-Message-State: AOJu0Yxj+pTrG7wM0kXvUe9Zz0HZ/AtH0IJmvr9k/sJlpe7wZVVciu3M T7BNiiADlhzMvk/Alrmfgb1F81HRB+nVwZGefQtmd94N5oqNTXJUtshwYzz89jIuGVC5rJVrib/ EhfWib42L2Apv33x8P68EqiHpdK1wrhpWxLNO1g== X-Google-Smtp-Source: AGHT+IHMwyNt8pM+861DlM9gsF+zn3q6TlS8dZuUmuEgj466qzG23BiIDLHp5WniWYFNrDarDjJJ1AlH273nefAKgOg= X-Received: by 2002:a17:906:d8c9:b0:a46:2623:7530 with SMTP id re9-20020a170906d8c900b00a4626237530mr4562834ejb.30.1710334113765; Wed, 13 Mar 2024 05:48:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Reuben Thomas Date: Wed, 13 Mar 2024 13:48:21 +0100 Message-ID: Subject: Re: bug#34645: Make TeX-process-check prompt optional? To: Arash Esbati Content-Type: multipart/alternative; boundary="0000000000004c7bf906138a316b" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34645-done Cc: 34645-done@debbugs.gnu.org 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 (-) --0000000000004c7bf906138a316b Content-Type: text/plain; charset="UTF-8" On Wed, 13 Mar 2024 at 13:40, Arash Esbati wrote: > Reuben Thomas writes: > > > I think it does make sense to make it file-local, as one could be > > engaged in quite different workflows and want different behaviours. > Many thanks for addressing this report and adding the functionality requested! -- https://rrt.sc3d.org --0000000000004c7bf906138a316b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, 13 Mar 2024 at 13:40, Arash Esbati <arash@gnu.org> wrote:
Reuben Thomas <rrt@sc3d.org> writes:

> I think it does make sense to make it file-local, as one could be
> engaged in quite different workflows and want different behaviours.

Many thanks for addres= sing this report and adding the functionality requested!
=C2=A0
--
--0000000000004c7bf906138a316b-- From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 13 08:57:58 2024 Received: (at 34645-done) by debbugs.gnu.org; 13 Mar 2024 12:57:58 +0000 Received: from localhost ([127.0.0.1]:45011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkOBC-0008S2-0W for submit@debbugs.gnu.org; Wed, 13 Mar 2024 08:57:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkOB9-0008Rm-LG for 34645-done@debbugs.gnu.org; Wed, 13 Mar 2024 08:57:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkOAU-0004Tp-Np; Wed, 13 Mar 2024 08:57:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=iNpikrn/U2RVV0r4GiqhZUCMqpCrsVw7+OMY/A22aS4=; b=bkoNgFUJEU7WVh2ZmJ0d 0qmbBwPmuCQ50IhwUvpbX6N7mmo5ubeGt7lLydBnrjtnaJaalf7lHx8wZ0b8A7h1XSKoD9cjb7ASe wLJa5b1BpmRGmPGi2rc6Fjq5sR35wHQLT6MSy1aBYkOTe2MSdmsCohVVc6aR5DM+XNiDEFdNNmARL nnYIyPgKm4cWL+oWYTlFyUh7KX5Su2Hup4d6tPZFv0URgsY/AdAkktzXPgW95UyPICpREhd1C4NZK ScKwgn7ySNK+rCO74v1dw0elnsqxjiZZ0DKFzTWBmLFn6jZDspb79TFlx7mnsMRqYNbQvkvSrcCgt veM77t2wrX0Yqw==; From: Arash Esbati To: Reuben Thomas Subject: Re: bug#34645: Make TeX-process-check prompt optional? In-Reply-To: (Reuben Thomas's message of "Wed, 13 Mar 2024 13:48:21 +0100") References: Date: Wed, 13 Mar 2024 13:57:10 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34645-done Cc: 34645-done@debbugs.gnu.org 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: -3.3 (---) Reuben Thomas writes: > Many thanks for addressing this report and adding the functionality > requested! Sure, welcome. Thanks for your patience, and again my apologies it took so ridiculously long. Best, Arash From unknown Sat Aug 16 20:56:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 11 Apr 2024 11:24:22 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator