unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: kill-whole-line
Date: Sun, 25 May 2003 19:54:59 -0500 (CDT)	[thread overview]
Message-ID: <200305260054.h4Q0sx414513@eel.dms.auburn.edu> (raw)
In-Reply-To: <200305260034.h4Q0YFEp016883@hampton.math.ohio-state.edu> (message from Markus Rost on Sun, 25 May 2003 20:34:15 -0400 (EDT))

Markus Rost wrote:
   
   If point is on the last line of the buffer and you hit <S-backspace>
   (which runs the command kill-whole-line), you get an error: End of buffer

   Evaluating the form

   (progn
     (goto-char (point-max))
     (kill-whole-line)
     )

   has the same effect, and buffer *Messages* will contain the line

   if: End of buffer

   I doubt that this behavior is desirable.

I sent a revised version of kill-whole-line.  That revised version
should not yet be committed, because I still want to change the
documentation string and add comments.  The behavior you describe
would remain unchanged, however.  What part do you consider undesirable
and why?  I do not understand why you get the "if" in:

if: End of buffer

Even with the present version I get, after evaluating your progn:

kill-whole-line: End of buffer

Other than that, the behavior is no different than if you replace
kill-whole-line with kill-line.  Why should it be?

Sincerely,

Luc.

  reply	other threads:[~2003-05-26  0:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-26  0:34 kill-whole-line Markus Rost
2003-05-26  0:54 ` Luc Teirlinck [this message]
2003-05-26  1:08   ` kill-whole-line Markus Rost
2003-05-26  1:01 ` kill-whole-line Luc Teirlinck

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=200305260054.h4Q0sx414513@eel.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

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).