unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3695: 23.0.94; kill-whole-line has no effect
@ 2009-06-27  7:15 pent
  0 siblings, 0 replies; 7+ messages in thread
From: pent @ 2009-06-27  7:15 UTC (permalink / raw)
  To: emacs-pretest-bug; +Cc: rfrancoise


Hello!

In recent snapshots, setting kill-whole-line to t has no effect for
Visual Line mode.

I'm ready to provide additional info,
Andrey Paramonov

In GNU Emacs 23.0.94.1 (i486-pc-linux-gnu, GTK+ Version 2.16.2)
 of 2009-06-18 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20090618-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.94/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.94/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ru_RU.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Custom

Minor modes in effect:
  TeX-PDF-mode: t
  diff-auto-refine-mode: t
  delete-selection-mode: t
  show-paren-mode: t
  pc-selection-mode: t
  pretty-control-l-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#3695: 23.0.94; kill-whole-line has no effect
       [not found] <mailman.1373.1246088253.2239.bug-gnu-emacs@gnu.org>
@ 2009-06-27  7:42 ` Teemu Likonen
  0 siblings, 0 replies; 7+ messages in thread
From: Teemu Likonen @ 2009-06-27  7:42 UTC (permalink / raw)
  To: pent; +Cc: 3695

On 2009-06-27 11:15 (+0400), pent@aparamon.msk.ru wrote:

> In recent snapshots, setting kill-whole-line to t has no effect for
> Visual Line mode.

I think this is intentional:

    commit 9608255daf00ca5cd4030515ea74f0b41105d469
    Author: Chong Yidong <cyd@stupidchicken.com>
    Date:   2009-06-13 18:56:07 +0000

        * simple.el (kill-visual-line): Rewrite (Bug#3437).  Don't try to
        handle kill-whole-line, as it doesn't make sense in this context.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#3695: 23.0.94; kill-whole-line has no effect
@ 2009-06-27  9:07 Андрей Парамонов
  0 siblings, 0 replies; 7+ messages in thread
From: Андрей Парамонов @ 2009-06-27  9:07 UTC (permalink / raw)
  To: 3695

Hello!

I've looked through the change by Chong Yidong, and it seems to be
different from your patch. Your patch does respect the kill-whole-line
option. Does it have some problems compared to the committed change?

I think kill-visual-line must behave exactly as kill-line, if the text
line consists of just one visual line. Otherwise it's a regression.

Thanks for a quick reply,
Andrey Paramonov





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#3695: 23.0.94; kill-whole-line has no effect
       [not found] <mailman.1375.1246094252.2239.bug-gnu-emacs@gnu.org>
@ 2009-06-27  9:42 ` Teemu Likonen
  2009-06-29 18:00   ` Андрей Парамонов
       [not found] ` <mailman.1378.1246096659.2239.bug-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 7+ messages in thread
From: Teemu Likonen @ 2009-06-27  9:42 UTC (permalink / raw)
  To: Андрей Парамонов
  Cc: 3695

On 2009-06-27 13:07 (+0400), Андрей Парамонов wrote:

> I've looked through the change by Chong Yidong, and it seems to be
> different from your patch. Your patch does respect the kill-whole-line
> option. Does it have some problems compared to the committed change?

As far as I know my patch doesn't have other problems, and indeed it
preserves the kill-whole-line functionality.

> I think kill-visual-line must behave exactly as kill-line, if the text
> line consists of just one visual line. Otherwise it's a regression.

Probably I'd expect that too but I have no strong opinion for this.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#3695: 23.0.94; kill-whole-line has no effect
       [not found] ` <mailman.1378.1246096659.2239.bug-gnu-emacs@gnu.org>
@ 2009-06-27 16:57   ` Teemu Likonen
  0 siblings, 0 replies; 7+ messages in thread
From: Teemu Likonen @ 2009-06-27 16:57 UTC (permalink / raw)
  To: 3695

On 2009-06-27 12:42 (+0300), Teemu Likonen wrote:

> On 2009-06-27 13:07 (+0400), Андрей Парамонов wrote:
>
>> I've looked through the change by Chong Yidong, and it seems to be
>> different from your patch. Your patch does respect the kill-whole-line
>> option. Does it have some problems compared to the committed change?
>
> As far as I know my patch doesn't have other problems, and indeed it
> preserves the kill-whole-line functionality.

To make following this discussion easier I'll add link the bug report in
which the said patch is attached and where this change originated from:

http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3437





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#3695: 23.0.94; kill-whole-line has no effect
@ 2009-06-28 20:37 Chong Yidong
  0 siblings, 0 replies; 7+ messages in thread
From: Chong Yidong @ 2009-06-28 20:37 UTC (permalink / raw)
  To: pent; +Cc: 3695, Teemu Likonen

> I think kill-visual-line must behave exactly as kill-line, if the text
> line consists of just one visual line. Otherwise it's a regression.

The docstring of kill-whole-line does not mention kill-visual-line:

  If non-nil, `kill-line' with no arg at beg of line kills the whole
  line.

You could argue that this can be extended to kill-visual-line, as
follows:

  `kill-visual-line' with no arg at beg of visual line kills the whole
  visual line.

but that doesn't make much sense, because kill-visual-line *already*
consumes the entire visual line.  In the normal case, kill-line consumes
the additional newline character at the end of the line, but
word-wrapped lines have no additional newline character to consume.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#3695: 23.0.94; kill-whole-line has no effect
  2009-06-27  9:42 ` Teemu Likonen
@ 2009-06-29 18:00   ` Андрей Парамонов
  0 siblings, 0 replies; 7+ messages in thread
From: Андрей Парамонов @ 2009-06-29 18:00 UTC (permalink / raw)
  To: 3695

If a line consists of a single visual line, C-k should behave the same
way as it used to work in Emacs 22 (kill the whole line). Do you
agree?

Is it possible to implement the following behavior?

`kill-visual-line' with no arg at beg of line kills the whole line, if
a line consists of a single visual line.

Thanks for your effort,
Andrey





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-06-29 18:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-28 20:37 bug#3695: 23.0.94; kill-whole-line has no effect Chong Yidong
     [not found] <mailman.1375.1246094252.2239.bug-gnu-emacs@gnu.org>
2009-06-27  9:42 ` Teemu Likonen
2009-06-29 18:00   ` Андрей Парамонов
     [not found] ` <mailman.1378.1246096659.2239.bug-gnu-emacs@gnu.org>
2009-06-27 16:57   ` Teemu Likonen
  -- strict thread matches above, loose matches on Subject: below --
2009-06-27  9:07 Андрей Парамонов
     [not found] <mailman.1373.1246088253.2239.bug-gnu-emacs@gnu.org>
2009-06-27  7:42 ` Teemu Likonen
2009-06-27  7:15 pent

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