From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: Exporting form emacs texinfo-mode to dvi, pdf, and html Date: Sat, 26 Jun 2021 21:37:30 +0200 Message-ID: <60d77fb4.1c69fb81.c79b6.7dc5@mx.google.com> References: 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="17753"; mail-complaints-to="usenet@ciao.gmane.io" To: lisa-asket@perso.be, moasenwood@zoho.eu, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 26 21:28:32 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 1lxDyh-0004Pn-Nf for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 26 Jun 2021 21:28:31 +0200 Original-Received: from localhost ([::1]:39850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxDyf-0003yV-LA for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 26 Jun 2021 15:28:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxDy5-0003yK-23 for help-gnu-emacs@gnu.org; Sat, 26 Jun 2021 15:27:53 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:47000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxDy3-0001yd-2Z for help-gnu-emacs@gnu.org; Sat, 26 Jun 2021 15:27:52 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id v20-20020a05600c2154b02901dcefb16af0so8060702wml.5 for ; Sat, 26 Jun 2021 12:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:from:to:subject:in-reply-to:references:date:mime-version :content-transfer-encoding; bh=jACSuc0acdrLrtmxCqRwLQFCCNnyTQWzSv2MXfxSCiw=; b=KyPBuo7Lik07tDIqMtbRegnCJfFZBNE5z034J/Y0uT6rLXnHnWLNTzXx6LQNcq8IWS bDn+zsPNK1fQ5V4LCR7Mj2lfhe+LQ30qIFkXAd0hPirn8ILPM16dG+6aV7CS/LxLGHqy v0ZtupXSUUAHlLI+91vFbMBsM/eW1vS8vZjVxeh4GXl7zEceu0Zh/0PDOrLjvwBA4ULK SvEZHqR0/rqfvZicGkJS7iDxaaC7O/8C+U5d3hZ0UopCGkX/eD9eMA+OTO0VAOHpZ+Wh ko3mtiQqLoQDrYwDddqEXKfrIz1ntKjAHPWmqUM6DciWnDwyyRfaWciGGwLDpgYzpEzN GXlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:subject:in-reply-to :references:date:mime-version:content-transfer-encoding; bh=jACSuc0acdrLrtmxCqRwLQFCCNnyTQWzSv2MXfxSCiw=; b=ivU60fSAh3y/p/+VvtVNc+ECRyDVs8hQmMGG+Uq7kZhkRLNLq+DIVBzrgNDc9DiqIc ECi2NcoWXmkAVNKntOFbK8tjc/4xOeF0LfXm5tQySTQ8eqR/RgIGm4aMU6afnYRLLZHW iYLJJDjQYbyPw+SHuE4z6iw+rIYcTG/NOptup9B43FPQ/FOSwY9Q618M9dd1wD9PLq74 uboSK6BQw5NUZWyZOSXILrL9vlMcsS/ItI4RZuvNsJqY56itMVCY6TUwjzhHZKnmy/n9 RQHVUF4qqx2Lmo0xPElz/7dsAzMwKPK1rNYKzNPteKOzCYVo27vxF7lwAis+0feOVOfY J4kQ== X-Gm-Message-State: AOAM533WuKiHkJveXJvmoh9FIxo0OXi5rAmjChYtA3F8aSIM5AnlOnBN c3BbwU30LYYhT4alHymbUvE= X-Google-Smtp-Source: ABdhPJxVFO+adEaaXSU3AN6Vzf3OXSG9WtWDWHO2kFoJ6hm9MWDfdj5vOzGGoZP35ZR6k5/nO8qJIQ== X-Received: by 2002:a05:600c:4ecd:: with SMTP id g13mr18264841wmq.174.1624735668520; Sat, 26 Jun 2021 12:27:48 -0700 (PDT) Original-Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id c12sm16046576wmr.27.2021.06.26.12.27.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Jun 2021 12:27:48 -0700 (PDT) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Sat, 26 Jun 2021 21:37:30 +0200 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x32b.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, MSGID_FROM_MTA_HEADER=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:131269 Archived-At: lisa-asket@perso.be writes: > If you want mo to perform as well as others, you are looking for a disapp= ointment. > > Don't know anything about make. > > > > If I do M-x compile and enter "make -j 4 -s -k" emacs complains with=C2= =A0=20 > > > > make -j 4 -s -k=20 > make: *** No targets specified and no makefile found.=C2=A0 Stop. > You don't need 'make'. The 'compile' function accepts any shell command. Just type: M-x compile then, when prompted, enter: texi2pdf myfile.texi If that works for you, you could follow Eli advice, and put the following line, at the top of you file, to define the variable 'compile-command': -*- compile-command: texi2pdf myfile.texi -*- =20=20=20 at the top of your file, so that you don't have to enter it manually each time. If you want to do this for every texinfo file, then, you may teach Emacs to configure it for you, using a texinfo mode hook. Bruno > > > > > > From: Emanuel Berg via Users list for the GNU Emacs text editor > To: help-gnu-emacs@gnu.org > Subject: Re: Exporting form emacs texinfo-mode to dvi, pdf, and html > Date: 26/06/2021 20:03:00 Europe/Paris > > lisa-asket wrote: > >> Ok, let's do it. It also says one can use mode hooks to >> specify it in certain modes, like this: >> >> (add-hook 'c-mode-hook >> (lambda () >> (unless (or (file-exists-p "makefile") >> (file-exists-p "Makefile")) >> (setq-local compile-command >> (concat "make -k " >> (if buffer-file-name >> (shell-quote-argument >> (file-name-sans-extension buffer-file-name)))))))) > > You don't need any of that because the `compile-command', e.g. > "make -j 4 -s -k " that can be the same for every mode or > programming language or formatting you do. > > Also there's no need to look for a Makefile because it looks > in the same directory as the buffer for one and if there is > one, that's where it happens. > > Time to step up your game :( > > --=20 > underground experts united > https://dataswamp.org/~incal