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:08:28 +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="11607"; 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:09:38 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 1maGbC-0002mg-8p for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 14:09:38 +0200 Original-Received: from localhost ([::1]:60344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maGbA-0008LM-Dg for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 08:09:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maGaW-0008Ha-Ga for help-gnu-emacs@gnu.org; Tue, 12 Oct 2021 08:08:56 -0400 Original-Received: from mail-ua1-x92c.google.com ([2607:f8b0:4864:20::92c]:37469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maGaI-00007U-E6 for help-gnu-emacs@gnu.org; Tue, 12 Oct 2021 08:08:56 -0400 Original-Received: by mail-ua1-x92c.google.com with SMTP id f4so12332060uad.4 for ; Tue, 12 Oct 2021 05:08:40 -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=1hcAS51ZUCH1npOdmp6MAWyW7Y3Z8NurMHq/0aKW2Ik=; b=DP66sghQQA3oO7201DUPSDFpZhxMk+YFLoam4FMfIvy+ZPh5pGy43dZmr5k539gJgX Z16pLeUpLsrQO23OYLpeAf/Ipt6m2ZMO3rjcs7A6HtkyAX+v6B4zoJe1nFVdL6ojHQXh 9aNWX0/XagdIZK4yjCAxqKtLr0snMEvhX/FBuRNQoUuaiFNrcz7keChcO6eJ3Umqvh0h XwoSEOjzrXbF+Irjep1R1D8mdHYQ3XkKgUMqKsQkbXQeVADBiMYqegUgWw0Bu9a7bdrf p3WX4UI+TpPMJA/HIGAcGjcLBNLHCtwqIL6XxNWgol/7+sQ3dBk+O+TCbLQFB8kej3Bu AZuQ== 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=1hcAS51ZUCH1npOdmp6MAWyW7Y3Z8NurMHq/0aKW2Ik=; b=sr8TJ0FP6PhmFhNT3SOuhE2eflHtJL6aNPh0jaDjwNucv2yM1/CSJOv737dNI0Fkoa tGWWL8JkDSbg6Ee45oQh1y0BOj4NLY/yl72IyL8Fmn4zxdIuSW378q6DKrFJLFAUGRjJ NOhigOJ8wXN9uxKSzap4U8WEDGA+D8Dex5UM7Bog4ulr63RiNovc9tE32WhHOZR1oHpd 3wNDOHQXsy8l2WfKjfhOnXn2w6HVdu1fixRoamR4ja299xrur/AHJhxLt0CtrZbxkhCB +qIW3nPrZznf8pOfP3Sxxh+eo3tv+gCjmlSiCtVrwwXyFa2NQb1+SnWadKPN5vXOYKUa MjKg== X-Gm-Message-State: AOAM532bb5Hs0PEzPQ3zdJcmw9Yykn4QsNUjm65Mbe4Mbrv9YTVFeKfO 5zwcwad0XGRf6KR509bpHXLnhELe/m7xlreM9/A= X-Google-Smtp-Source: ABdhPJy+W/3quDKgXmiQMQGZWNMql/h416J3sByDoAkhn7795xJ6X5hJAmugBPl5yNo0r9dBLQB8zaa4USjsVNblF2I= X-Received: by 2002:a67:d91b:: with SMTP id t27mr30870964vsj.55.1634040519446; Tue, 12 Oct 2021 05:08:39 -0700 (PDT) In-Reply-To: <87fst6y4ez.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::92c; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x92c.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, 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:133755 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. > > 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/ OMG, wonderful man with wonderful ideas and ELISP treasures! HZ