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: Various simple.el patches
Date: Tue, 27 May 2003 23:32:35 -0500 (CDT)	[thread overview]
Message-ID: <200305280432.h4S4WZU17364@eel.dms.auburn.edu> (raw)
In-Reply-To: <847k8hiiwx.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@gmx.net)

I saw the following entry in the Change Log:

003-05-23  Kai Grossjohann  <kai.grossjohann@gmx.net>

	   * simple.el (kill-region): If nothing was killed, and the
	   previous command was not a kill, break kill sequence.
	   (kill-whole-line): Don't use kill-line.  Make it work with
	   invisible lines.  Make it repeatable.
	   From Luc Teirlinck <teirllm@dms.auburn.edu>.

But it apparently has not been committed (neither the kill-region part
nor the kill-whole-line part.)

I certainly see no problem with the kill-region part, assuming it is
what you proposed in a message to this site.  It seems to implement
exactly what Richard decided, if I understood correctly.

In as far as the kill-whole-line part is concerned, there is something
confusing about the change log entry.  Indeed, the main purpose of the
change was to make kill-whole-line interact correctly with the
kill-ring, both in read-write and read-only buffers.  There were
originally indeed problems with invisible text, but those turned out
*not* to be bugs in the kill-whole-line code itself, but bugs in
forward-visible-line, which I fixed.  In the presence of invisibility
properties that are lists of two or more elements, bugs in
line-move-invisible remain, which still could affect kill-whole-line
as well as other functions.  If I understood correctly, it was decided
that the best way to fix those problems was to make line-move-invisible
a primitive and use existing C code in doing so.  I do not know
whether somebody is actively working on that, or planning to work on
that, at present.

Since 05-23, I made no changes in the actual code of kill-whole-line,
but I added some comments and I propose to change the documentation
string to:

  "Kill current line.
With prefix arg, kill that many lines starting from the current line.
If arg is negative, kill backward.  Also kill the preceding newline.
\(This is meant to make C-x z work well with negative arguments.\)
If arg is zero, kill current line but exclude the trailing newline."

Apart from that, I believe that the Change Log text needs to be
changed for reasons outlined above.

I plan no further changes.

I did not have write access before, but I do now.

What is the most convenient way to proceed from here:

1.  You commit the original change (with maybe a changed Change Log)
    and then I commit the changes I made since.

2.  I send you my latest changes and you commit everything in one piece.

3.  You commit kill-region and I commit all revisions to
    kill-whole-line in one piece.

Sincerely,

Luc.

  parent reply	other threads:[~2003-05-28  4:32 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-13 20:31 Various simple.el patches Stefan Monnier
2003-05-14 11:44 ` Kai Großjohann
2003-05-14 12:42   ` Miles Bader
2003-05-14 13:58     ` Kai Großjohann
2003-05-14 14:48       ` Miles Bader
2003-05-14 15:54         ` Kai Großjohann
2003-05-16  3:51           ` Richard Stallman
2003-05-16  5:54             ` Kai Großjohann
2003-05-17 13:49               ` Richard Stallman
2003-05-18 15:38                 ` Kai Großjohann
2003-05-19  2:11                   ` Luc Teirlinck
2003-05-19  7:42                     ` Kai Großjohann
2003-05-19 14:22                       ` Luc Teirlinck
2003-05-21  3:12                       ` Luc Teirlinck
2003-05-21 14:07                         ` Luc Teirlinck
2003-05-21 18:06                           ` Tak Ota
2003-05-21 18:16                             ` Luc Teirlinck
2003-05-21 18:33                             ` Luc Teirlinck
2003-05-21 18:44                             ` Luc Teirlinck
2003-05-22  2:52                           ` Luc Teirlinck
2003-05-23  3:52                             ` Luc Teirlinck
2003-05-23  6:57                               ` Kai Großjohann
2003-05-23 18:27                                 ` Luc Teirlinck
2003-05-23 19:04                                   ` Kai Großjohann
2003-05-23 19:45                                     ` Luc Teirlinck
2003-05-28  4:32                                     ` Luc Teirlinck [this message]
2003-05-28 18:46                                       ` Kai Großjohann
2003-05-28 19:47                                         ` Luc Teirlinck
2003-05-28 20:11                                           ` Kai Großjohann
2003-05-30  0:50                                         ` Richard Stallman
2003-05-24 10:00                                   ` Eli Zaretskii
2003-05-25  2:42                                     ` Luc Teirlinck
2003-05-25  3:33                                       ` Eli Zaretskii
2003-05-25  4:43                                         ` Luc Teirlinck
2003-05-25  5:00                                           ` Luc Teirlinck
2003-05-26 13:48                                             ` Richard Stallman
2003-05-25 17:08                                           ` Eli Zaretskii
2003-05-25 15:06                                         ` Stefan Monnier
2003-05-25 15:04                                       ` Stefan Monnier
2003-05-23 18:47                                 ` Luc Teirlinck
2003-05-23 13:51                               ` Stefan Monnier
2003-05-23 17:06                                 ` Luc Teirlinck
2003-05-23 19:07                                   ` Kai Großjohann
2003-05-23 19:24                               ` Kai Großjohann
2003-05-23 19:39                                 ` Luc Teirlinck
2003-05-24 23:20                                 ` Richard Stallman
2003-05-27 17:43                                   ` Kevin Rodgers
2003-05-28 23:58                                     ` Richard Stallman
2003-05-14 16:38         ` Ami Fischman
2003-05-14 17:38           ` Stefan Monnier
2003-05-16  3:51         ` Richard Stallman
2003-05-15 15:40 ` Jan Nieuwenhuizen
2003-05-15 15:45   ` Stefan Monnier
2003-05-16 15:47 ` Richard Stallman
2003-05-16 18:18   ` Stefan Monnier
2003-05-18 12:22     ` Richard Stallman
2003-05-18 15:13       ` Kai Großjohann
2003-05-19 14:53         ` Richard Stallman

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=200305280432.h4S4WZU17364@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).