From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Detect latexmk is running on currently buffer. Date: Tue, 12 Oct 2021 20:15:52 +0800 Message-ID: References: <87fst6y4ez.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13788"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 12 14:17:49 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maGj6-0003K1-FK for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 14:17:48 +0200 Original-Received: from localhost ([::1]:47844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maGj5-00030P-DR for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 08:17:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maGhc-0002U4-AU for help-gnu-emacs@gnu.org; Tue, 12 Oct 2021 08:16:16 -0400 Original-Received: from mail-ua1-x933.google.com ([2607:f8b0:4864:20::933]:34458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maGhS-0003Ul-BG for help-gnu-emacs@gnu.org; Tue, 12 Oct 2021 08:16:11 -0400 Original-Received: by mail-ua1-x933.google.com with SMTP id h4so18177252uaw.1 for ; Tue, 12 Oct 2021 05:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=hqqwcfvp+T6lyciMX0YaF59m0Gpeb72KU1WVRshswKI=; b=iI6x4XX90JlLXG5s5gHI/xsip48Qx9RUomTeA1AleB1QNcnrisof65dBMjzsV0xNdU exMiA+P+lJQImxJOTUrbqALpN4bST46tBQMcMoSuLbIV8CwoxL3RjhCtnSSLBo3Zk3xd ljGomMNqdr4dIbA1uu0q5LbrHIgdooGSXnJcki+NXtUgSC24sihFpzEpndZ8u12ctb9q 16um1LxR984yKKZTs2g64sfB0zyttcsjMXWQv+VD/+ewcLEDbMdem42BeNlfjyzOtXQl sshKiNErwZ0RLJTvLSO+Jd7jIk/bZutxVkB35k2MCtHeMVA3xAiqOhpPULCpU96lCsvI W7hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=hqqwcfvp+T6lyciMX0YaF59m0Gpeb72KU1WVRshswKI=; b=xMz7dMa4UTZcAkSxLdKRz93f9Z/63XnH+uNT/aTQj3VQVrLEJj1EX+rNHFoG9SHt2X QP9kFi4LN+s1ALebTPfZE4GTSzry6pb0mGqQC52sjnwiXwZslrODx6ARZmjo9urakHKe kyjvGQRVQGLGqHik0Da44tPGkaIKmX+4hzjxIlM1WLqsio2OStXuSf9Rfy75IbLZfAAF 0v9q488xe6KtqOA/8MMJQbv50rWhd06+ZBak7wre4FLVUSUT/K4iudaJKv0yi6b3Q8bK Wz3UyMquosyWIyl4okgN5d/3+xYEYn0B0Cow/pDa7wl3StW5K5KZCOa8cAOjrzAtxRSp Wd9w== X-Gm-Message-State: AOAM531wcO5vKZwg9MhQ/8LUpGLbqAiAcHy9bDYtp+zzU7MX52V7itrP pQgr6fkdgcavLzj1/iUOLVfFiYPyVidM7CgBoJ4= X-Google-Smtp-Source: ABdhPJwfXy7SitqOm4Py+3xn2bYvuUoLhwzjCfDpotWBxNJaHfg5kxDS9q92j3e7mdULNE3Vy8UqOuOvBTJb+DsNxt8= X-Received: by 2002:a67:a60c:: with SMTP id p12mr7882067vse.25.1634040963492; Tue, 12 Oct 2021 05:16:03 -0700 (PDT) In-Reply-To: <87fst6y4ez.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::933; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x933.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, 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-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133756 Archived-At: On Tue, Oct 12, 2021 at 5:53 PM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao wrote: > > > Though the above method works, I meet a problem when the > > project LaTeX files are large to some extent. To be more > > specific, when the project is large to a certain extent, the > > compilation time of latexmk will be relatively long, which > > may lead to the following race condition: When the previous > > latexmk process has not ended, the subsequent latexmk > > process is launched again. > > > > Any hints for fixing this problem? > > I use the "LaTeX mode defined in =E2=80=98tex-mode.el=E2=80=99" and there= is > an important difference compared to yours, which is in line > with our respective styles, ha. It's called `latex-mode', as shown by `C-h o latex-mode RET': latex-mode is an interactive native compiled Lisp function in =E2=80=98tex-mode.el=E2=80=99. (latex-mode) > > Anyway with LaTeX have a Makefile and just hammer it ... to > avoid getting institutionalized, don't ONLY do that, do > something else, light work (shell programming, even reading) > on the side, literally, and if/when you forget about LaTeX, do > force yourself to be reminded :) > > I've seen calm guys punch into fences and stuff because that > constant recompilation can become a form of > self-torture, almost, soo frustrating. ha > > Makefile example: > https://dataswamp.org/~incal/borta/Makefile > > Some helpers: > https://dataswamp.org/~incal/emacs-init/latex.el > > Bibtex: > https://dataswamp.org/~incal/emacs-init/bibtex-incal.el > https://dataswamp.org/~incal/emacs-init/bibtex/bibtex-next-volume.el > > Very creative TeX, some would say :) > https://dataswamp.org/~incal/borta/borta.pdf > https://dataswamp.org/~incal/borta/ > https://dataswamp.org/~incal/hs-linux/docs/report/report.pdf > https://dataswamp.org/~incal/hs-linux/docs/report/ > > -- > underground experts united > https://dataswamp.org/~incal