From: martin rudalics <rudalics@gmx.at>
To: tyler.smith@mail.mcgill.ca
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to make Ctrl-d not log off the shell?
Date: Wed, 16 May 2007 08:48:24 +0200 [thread overview]
Message-ID: <464AA938.9070507@gmx.at> (raw)
We could rather do
(defun comint-delchar-or-maybe-eof (arg)
"Delete ARG characters forward or send an EOF to subprocess.
Sends an EOF only if point is at the end of the buffer and there is no input."
(interactive "p")
(let ((proc (get-buffer-process (current-buffer))))
(if (and (eobp) proc (= (point) (marker-position (process-mark proc))))
(when (y-or-n-p "Really send EOF? ")
(comint-send-eof))
(delete-char arg))))
next reply other threads:[~2007-05-16 6:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-16 6:48 martin rudalics [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-05-16 0:09 How to make Ctrl-d not log off the shell? mowgli
2007-05-16 3:38 ` Tyler Smith
2007-05-17 8:48 ` Dieter Wilhelm
[not found] ` <mailman.761.1179392245.32220.help-gnu-emacs@gnu.org>
2007-05-17 19:53 ` mowgli
2007-05-18 7:17 ` Dieter Wilhelm
2007-05-22 4:37 ` Xavier Maillard
2007-06-09 22:37 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=464AA938.9070507@gmx.at \
--to=rudalics@gmx.at \
--cc=help-gnu-emacs@gnu.org \
--cc=tyler.smith@mail.mcgill.ca \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).