unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
@ 2009-09-23 14:13 andy.ling
  2009-09-24  3:28 ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: andy.ling @ 2009-09-23 14:13 UTC (permalink / raw)
  To: bug-gnu-emacs

I've just updated from emacs 21.3 to 23.1 and I have found that kill-line 
behaves differently.

Run emacs -q
open a buffer and enter a line of spaces
go to the beginning of line and kill line (C-a C-k)
The line is deleted through the newline to the next line
Now execute (setq show-trailing-whitespace t)
Again enter a line of spaces and go to the beginning of the line.
This time the spaces should be hilighted in red.
Now kill the line. The line is only killed up to the newline.

This is different behaviour to emacs 21.3 and I don't believe it to be the 
intended behaviour.

Regards

Andy Ling





In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-30 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'

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: ENG
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> C-x C-f ~ / x x x x <return> <return> <return> 
<return> <up> <up> <up> ( s e t q SPC s h o w - t r 
a i l i n g - w h i t e s p a c e SPC t ) C-x C-e <return> 
SPC SPC SPC SPC SPC SPC SPC C-a C-k <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 
<send-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
t


-- 

This e-mail is intended for the named addressees only. Its contents may be 
privileged or confidential and should be treated as such. If you are not 
an intended recipient please notify the sender immediately and then delete 
it;  do not copy, distribute, or take any action based on this e-mail. In 
the pursuit of its legitimate business activities and its conformance with 
relevant legislation, Quantel may access any e-mail (including 
attachments) it originates or receives, for potential scrutiny. 

Quantel is the trade name used by Quantel Holdings Limited and its 
subsidiaries.  Quantel Holdings Limited is registered in England & Wales. 
Registration No: 4004913 
Contact details for all Quantel Offices and Companies can be found on our 
website www.quantel.com or by writing to the holding company.
Registered address: Turnpike Road, Newbury, Berkshire, RG14 2NX, United 
Kingdom 






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

* bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
  2009-09-23 14:13 bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace andy.ling
@ 2009-09-24  3:28 ` Glenn Morris
  2009-09-24  8:48   ` andy.ling
  2011-09-18  8:36   ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 8+ messages in thread
From: Glenn Morris @ 2009-09-24  3:28 UTC (permalink / raw)
  To: andy.ling; +Cc: 4538

andy.ling@quantel.com wrote:

> Run emacs -q
> open a buffer and enter a line of spaces
> go to the beginning of line and kill line (C-a C-k)
> The line is deleted through the newline to the next line
> Now execute (setq show-trailing-whitespace t)
> Again enter a line of spaces and go to the beginning of the line.
> This time the spaces should be hilighted in red.
> Now kill the line. The line is only killed up to the newline.

It seems this is deliberate:

http://lists.gnu.org/archive/html/emacs-devel/2004-02/msg00190.html

At first glance, it does seem a bit odd. It is also undocumented.





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

* bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
  2009-09-24  3:28 ` Glenn Morris
@ 2009-09-24  8:48   ` andy.ling
  2009-09-25  6:17     ` Glenn Morris
  2011-09-18  8:36   ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 8+ messages in thread
From: andy.ling @ 2009-09-24  8:48 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 4538

Glenn Morris <rgm@gnu.org> wrote on 24/09/2009 04:28:41:

> andy.ling@quantel.com wrote:
> 
> > Run emacs -q
> > open a buffer and enter a line of spaces
> > go to the beginning of line and kill line (C-a C-k)
> > The line is deleted through the newline to the next line
> > Now execute (setq show-trailing-whitespace t)
> > Again enter a line of spaces and go to the beginning of the line.
> > This time the spaces should be hilighted in red.
> > Now kill the line. The line is only killed up to the newline.
> 
> It seems this is deliberate:
> 
> http://lists.gnu.org/archive/html/emacs-devel/2004-02/msg00190.html
> 
> At first glance, it does seem a bit odd. It is also undocumented.
> 

I'd say it seems odd at second glance too :-)

I can't believe everybody wants this behaviour. So to that end
can I suggest the traditional emacs approach is adopted and
it is made configurable.

Regards

Andy Ling



-- 

Quantel is the trade name used by Quantel Holdings Limited and its 
subsidiaries.  Quantel Holdings Limited is registered in England & Wales. 
Registration No: 4004913 
Contact details for all Quantel Offices and Companies can be found on our 
website www.quantel.com or by writing to the holding company.
Registered address: Turnpike Road, Newbury, Berkshire, RG14 2NX, United 
Kingdom 





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

* bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
  2009-09-24  8:48   ` andy.ling
@ 2009-09-25  6:17     ` Glenn Morris
  2009-09-25 10:47       ` andy.ling
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2009-09-25  6:17 UTC (permalink / raw)
  To: andy.ling; +Cc: 4538

andy.ling@quantel.com wrote:

> I can't believe everybody wants this behaviour. So to that end can I
> suggest the traditional emacs approach is adopted and it is made
> configurable.

Yes, but there shouldn't be options for absolutely everything.
The current behaviour makes no sense at all to me.
Let's see if anyone else has anything to say on this matter...





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

* bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
  2009-09-25  6:17     ` Glenn Morris
@ 2009-09-25 10:47       ` andy.ling
  0 siblings, 0 replies; 8+ messages in thread
From: andy.ling @ 2009-09-25 10:47 UTC (permalink / raw)
  To: Glenn Morris

Glenn Morris <rgm@gnu.org> wrote on 25/09/2009 07:17:39:

> andy.ling@quantel.com wrote:
> 
> > I can't believe everybody wants this behaviour. So to that end can I
> > suggest the traditional emacs approach is adopted and it is made
> > configurable.
> 
> Yes, but there shouldn't be options for absolutely everything.

True, but as at least one person wanted this behaviour and RMS
seemed to support it. So I thought it might be easier than going
back to the old behaviour.

> The current behaviour makes no sense at all to me.

I agree. Add my vote to the list.

> Let's see if anyone else has anything to say on this matter...
> 

I'll leave it in your hands and await the outcome then.

Thanks

Andy Ling


-- 

Quantel is the trade name used by Quantel Holdings Limited and its 
subsidiaries.  Quantel Holdings Limited is registered in England & Wales. 
Registration No: 4004913 
Contact details for all Quantel Offices and Companies can be found on our 
website www.quantel.com or by writing to the holding company.
Registered address: Turnpike Road, Newbury, Berkshire, RG14 2NX, United 
Kingdom 





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

* bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
  2009-09-24  3:28 ` Glenn Morris
  2009-09-24  8:48   ` andy.ling
@ 2011-09-18  8:36   ` Lars Magne Ingebrigtsen
  2011-09-22  7:13     ` Glenn Morris
  1 sibling, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-18  8:36 UTC (permalink / raw)
  To: Glenn Morris; +Cc: andy.ling, 4538

Glenn Morris <rgm@gnu.org> writes:

>> open a buffer and enter a line of spaces
>> go to the beginning of line and kill line (C-a C-k)
>> The line is deleted through the newline to the next line
>> Now execute (setq show-trailing-whitespace t)
>> Again enter a line of spaces and go to the beginning of the line.
>> This time the spaces should be hilighted in red.
>> Now kill the line. The line is only killed up to the newline.
>
> It seems this is deliberate:
>
> http://lists.gnu.org/archive/html/emacs-devel/2004-02/msg00190.html
>
> At first glance, it does seem a bit odd. It is also undocumented.

It seems odd, but it makes a bit of sense.  `C-k' works differently when
there is visible text on the current line and when there's not.  That's
(somewhat) consistent.

So my feeling is that this should just be documented.

The current doc string says:

---
Kill the rest of the current line; if no nonblanks there, kill thru newline.
---

I think this should just be amended to say "visible nonblanks" and point
to `show-trailing-whitespace'.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
  2011-09-18  8:36   ` Lars Magne Ingebrigtsen
@ 2011-09-22  7:13     ` Glenn Morris
  2011-09-23 10:56       ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2011-09-22  7:13 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: andy.ling, 4538

Lars Magne Ingebrigtsen wrote:

> It seems odd, but it makes a bit of sense.  `C-k' works differently when
> there is visible text on the current line and when there's not.  That's
> (somewhat) consistent.

Oh, OK, I guess I see.

> So my feeling is that this should just be documented.
>
> The current doc string says:
>
> ---
> Kill the rest of the current line; if no nonblanks there, kill thru newline.
> ---
>
> I think this should just be amended to say "visible nonblanks" and point
> to `show-trailing-whitespace'.






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

* bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
  2011-09-22  7:13     ` Glenn Morris
@ 2011-09-23 10:56       ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-23 10:56 UTC (permalink / raw)
  To: Glenn Morris; +Cc: andy.ling, 4538

Glenn Morris <rgm@gnu.org> writes:

>> It seems odd, but it makes a bit of sense.  `C-k' works differently when
>> there is visible text on the current line and when there's not.  That's
>> (somewhat) consistent.
>
> Oh, OK, I guess I see.

I've now updated the doc string, so I'm closing this report.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

end of thread, other threads:[~2011-09-23 10:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23 14:13 bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace andy.ling
2009-09-24  3:28 ` Glenn Morris
2009-09-24  8:48   ` andy.ling
2009-09-25  6:17     ` Glenn Morris
2009-09-25 10:47       ` andy.ling
2011-09-18  8:36   ` Lars Magne Ingebrigtsen
2011-09-22  7:13     ` Glenn Morris
2011-09-23 10:56       ` Lars Magne Ingebrigtsen

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