all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: INVALID_SEE_SIG@example.com (J.D. Baldwin)
Subject: Emacs exit (return) code?
Date: Thu, 10 Oct 2002 19:09:14 +0000 (UTC)	[thread overview]
Message-ID: <ao4j8p$iqg$1@reader1.panix.com> (raw)



I am having an odd problem.  In one case it is inconsequential, in
another it is an impediment to the work I'd like to be doing.

The problem is that Emacs returns a nonzero exit code upon exit when
it is invoked from another program, if I have ever canceled a command
from within Emacs with ^G.

For example, if I send a mail message in mutt (version 1.4i, running
on NetBSD 1.6) and I never use ^G, I exit with no problem at all.  If
I ever once use ^G during my session, mutt shows the following error
message upon exit:

    Error running "/usr/local/bin/emacs '/var/tmp/msgfile'"!

That one is no big deal, as I don't lose work, but the next one is a
bit of a problem for me.  I observe the same behavior with the sudo
utility "visudo" (version 1.6.3p7 running on either Solaris 7 or 8).
If I edit a file and never hit ^G, my changes are accepted.  If I ever
hit ^G during my session, I get this message:

    visudo: Editor (/opt/local/bin/emacs) failed with exit status 53248, \
                 /etc/sudoers unchanged.

In that case, my changes are rejected without giving me a chance to
recover them.  (Yes, I know this is brain damage on the part of sudo,
but I can't fix that just now.)

So my questions are:

1. What causes this? and

2. Is there a way to suppress this behavior?

I'm using Emacs 20.7.1 in all cases.
-- 
  _+_ From the catapult of |If anyone disagrees with any statement I make, I
_|70|___:)=}- J.D. Baldwin |am quite prepared not only to retract it, but also
\      /  baldwin@panix.com|to deny under oath that I ever made it. -T. Lehrer
***~~~~-----------------------------------------------------------------------

             reply	other threads:[~2002-10-10 19:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10 19:09 J.D. Baldwin [this message]
2002-10-12  7:02 ` Emacs exit (return) code? Eli Zaretskii
     [not found] ` <mailman.1034410031.20507.help-gnu-emacs@gnu.org>
2002-10-14 15:44   ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ao4j8p$iqg$1@reader1.panix.com' \
    --to=invalid_see_sig@example.com \
    --cc=baldwin+news@panix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.