From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#7133: Please check return value from shell-command in org-latex.el Date: Wed, 29 Sep 2010 17:57:18 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=00c09f899467efc4e104916805fe X-Trace: dough.gmane.org 1285776857 21978 80.91.229.12 (29 Sep 2010 16:14:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Sep 2010 16:14:17 +0000 (UTC) To: 7133@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 29 18:14:16 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P0zIM-0005Al-NC for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Sep 2010 18:14:15 +0200 Original-Received: from localhost ([127.0.0.1]:37325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0zIL-000058-MI for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Sep 2010 12:14:13 -0400 Original-Received: from [140.186.70.92] (port=48651 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0zFw-0006jM-NB for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 12:11:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0zFv-0004LV-DE for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 12:11:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45411) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0zFv-0004LR-BN for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 12:11:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P0z0k-0005p8-0x; Wed, 29 Sep 2010 11:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Sep 2010 15:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7133 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Emacs Bugs Original-Received: via spool by submit@debbugs.gnu.org id=B.128577570422373 (code B ref -1); Wed, 29 Sep 2010 15:56:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Sep 2010 15:55:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0yzn-0005oo-3t for submit@debbugs.gnu.org; Wed, 29 Sep 2010 11:55:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0yzl-0005oR-AJ for submit@debbugs.gnu.org; Wed, 29 Sep 2010 11:55:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0z2X-0001gs-It for submit@debbugs.gnu.org; Wed, 29 Sep 2010 11:57:54 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:43465) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0z2X-0001go-Gw for submit@debbugs.gnu.org; Wed, 29 Sep 2010 11:57:53 -0400 Original-Received: from [140.186.70.92] (port=34669 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0z2W-0008SU-7P for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 11:57:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0z2V-0001gK-4A for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 11:57:52 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:48331) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0z2U-0001g7-WA for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 11:57:51 -0400 Original-Received: by qyk36 with SMTP id 36so1525153qyk.0 for ; Wed, 29 Sep 2010 08:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=dwVyhrAoxseHQslRjFTZxwYWQ2wYV85MaxXjWod1A44=; b=bDxqR7Z6Bz35HdpgbAb/8kMoGXuA5xZSmlcrBdpbcyn4TP323LYa8SE/JgDkFVi9Nd 2ZeRW6Q154dtmckiDx6P6Oh1gfeYpfta4ZG2ttufY5+dDfwaUEBhUQS3lpWj2B2piLUh OqdxlUrVwlijD9oTXEju2Jh05KmfZzJRrJgl8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=BH/NX+8avvHTQ2oVHsPsssqpqjxM0eh3tC4wdWdDsHhJDJ/+tW6Lwp4h3axDO6sl7q /6jgBK4xUElGeT4XdHSNnjFltze/yEUyw8C2irixMFyQd2KF4SOYgIEk2WVz2Jlq70o+ O1VoajL+xn+Sz1nSoXQGiGpRlHSw3kc5Asej0= Original-Received: by 10.224.66.27 with SMTP id l27mr1381896qai.41.1285775869066; Wed, 29 Sep 2010 08:57:49 -0700 (PDT) Original-Received: by 10.229.220.195 with HTTP; Wed, 29 Sep 2010 08:57:18 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 29 Sep 2010 11:56:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40545 Archived-At: --00c09f899467efc4e104916805fe Content-Type: text/plain; charset=UTF-8 When output goes to a specified buffer (instead of current buffer) it is possible to check the return value from shell-command. I suggest doing that in org-latex.diff, see attached file. I think the doc string of shell-command should be updated too since it does not mention that you can test the return value in this case. --00c09f899467efc4e104916805fe Content-Type: application/octet-stream; name="org-latex-shell-command-check.diff" Content-Disposition: attachment; filename="org-latex-shell-command-check.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_geodn4bm0 PT09IG1vZGlmaWVkIGZpbGUgJ2xpc3Avb3JnL29yZy1sYXRleC5lbCcNCi0tLSB0cnVuay9saXNw L29yZy9vcmctbGF0ZXguZWwJMjAxMC0wNy0xOSAwOTo0NzoyNyArMDAwMA0KKysrIHBhdGNoZWQv bGlzcC9vcmcvb3JnLWxhdGV4LmVsCTIwMTAtMDktMjkgMTU6NTI6NDggKzAwMDANCkBAIC04NDks NyArODQ5LDkgQEANCiAJCSAgICAgKHNhdmUtbWF0Y2gtZGF0YQ0KIAkJICAgICAgIChzaGVsbC1x dW90ZS1hcmd1bWVudCBmaWxlKSkNCiAJCSAgICAgdCB0IGNtZCkpKQ0KLQkoc2hlbGwtY29tbWFu ZCBjbWQgb3V0YnVmIG91dGJ1ZikpKQ0KKwkodW5sZXNzICg9IDAgKHNoZWxsLWNvbW1hbmQgY21k IG91dGJ1ZiBvdXRidWYpKQ0KKyAgICAgICAgICAoZGlzcGxheS1idWZmZXIgb3V0YnVmKQ0KKyAg ICAgICAgICAoZXJyb3IgIkVycm9yIGluIHN1YnByb2Nlc3MsIHNlZSAlczsgY21kPSVTIiBvdXRi dWYgY21kKSkpKQ0KICAgICAobWVzc2FnZSAiUHJvY2Vzc2luZyBMYVRlWCBmaWxlLi4uZG9uZSIp DQogICAgIChpZiAobm90IChmaWxlLWV4aXN0cy1wIHBkZmZpbGUpKQ0KIAkoZXJyb3IgIlBERiBm aWxlIHdhcyBub3QgcHJvZHVjZWQiKQ0KDQo= --00c09f899467efc4e104916805fe--