unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* kill-line behaves differently in terminal and in X!?
@ 2003-09-20 16:36 Pascal Bourguignon
  2003-09-20 18:12 ` Jesper Harder
  2003-09-28  9:38 ` Kai Grossjohann
  0 siblings, 2 replies; 4+ messages in thread
From: Pascal Bourguignon @ 2003-09-20 16:36 UTC (permalink / raw)



C-k, or kill-line, behaves  exasperately differenly in the terminal 
(emacs -nw) and in X.

In the terminal, it does not delete the line, only the characters in the line.
You have to type C-u 1 C-k to kill the line.

In X, kill-line works flawlessly, killing the line.

I've checked  that I've the same kill-whole-line  value (namely: nil),
and I can't find in the el code why it should behave differently.


On X:        GNU Emacs 21.3.50 (i686-pc-linux-gnu) of 2003-06-02 on thalassa
In terminal: GNU Emacs 21.2.1 (i586-suse-linux, X toolkit, Xaw3d scroll bars) of 2003-03-28 on Cameron
but that's been observed for at least version 20.7...


-- 
__Pascal_Bourguignon__
http://www.informatimago.com/
Do not adjust your mind, there is a fault in reality.

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

* Re: kill-line behaves differently in terminal and in X!?
  2003-09-20 16:36 kill-line behaves differently in terminal and in X!? Pascal Bourguignon
@ 2003-09-20 18:12 ` Jesper Harder
  2003-09-20 20:16   ` Pascal Bourguignon
  2003-09-28  9:38 ` Kai Grossjohann
  1 sibling, 1 reply; 4+ messages in thread
From: Jesper Harder @ 2003-09-20 18:12 UTC (permalink / raw)


Pascal Bourguignon <spam@thalassa.informatimago.com> writes:

> In the terminal, it does not delete the line, only the characters in
> the line.  You have to type C-u 1 C-k to kill the line.

Uhm, yes ... but isn't that how C-k is supposed to work?

> In X, kill-line works flawlessly, killing the line.

That sounds like a bug.  I can't reproduce it, though.

> I've checked that I've the same kill-whole-line value (namely: nil),

But if you prefer `kill-line' to delete the trailing newline as well
as the content of the line, you should set `kill-whole-line' to t.

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

* Re: kill-line behaves differently in terminal and in X!?
  2003-09-20 18:12 ` Jesper Harder
@ 2003-09-20 20:16   ` Pascal Bourguignon
  0 siblings, 0 replies; 4+ messages in thread
From: Pascal Bourguignon @ 2003-09-20 20:16 UTC (permalink / raw)


Jesper Harder <harder@myrealbox.com> writes:

> Pascal Bourguignon <spam@thalassa.informatimago.com> writes:
> 
> > In the terminal, it does not delete the line, only the characters in
> > the line.  You have to type C-u 1 C-k to kill the line.
> 
> Uhm, yes ... but isn't that how C-k is supposed to work?
> 
> > In X, kill-line works flawlessly, killing the line.
> 
> That sounds like a bug.  I can't reproduce it, though.
> 
> > I've checked that I've the same kill-whole-line value (namely: nil),
> 
> But if you prefer `kill-line' to delete the trailing newline as well
> as the content of the line, you should set `kill-whole-line' to t.

Ok, so the  bug is that on X, kill-line  deletes the trailing newlines
even when kill-whole-line is nil...


Now on, I'll set kill-whole-line to t in ~/.emacs...

-- 
__Pascal_Bourguignon__
http://www.informatimago.com/
Do not adjust your mind, there is a fault in reality.

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

* Re: kill-line behaves differently in terminal and in X!?
  2003-09-20 16:36 kill-line behaves differently in terminal and in X!? Pascal Bourguignon
  2003-09-20 18:12 ` Jesper Harder
@ 2003-09-28  9:38 ` Kai Grossjohann
  1 sibling, 0 replies; 4+ messages in thread
From: Kai Grossjohann @ 2003-09-28  9:38 UTC (permalink / raw)


Pascal Bourguignon <spam@thalassa.informatimago.com> writes:

> C-k, or kill-line, behaves  exasperately differenly in the terminal 
> (emacs -nw) and in X.

I suspect that the difference is between the Emacs versions.  How
about you try "emacs -nw" for the Emacs that you normally run under
X11?

-- 
Two cafe au lait please, but without milk.

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

end of thread, other threads:[~2003-09-28  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-20 16:36 kill-line behaves differently in terminal and in X!? Pascal Bourguignon
2003-09-20 18:12 ` Jesper Harder
2003-09-20 20:16   ` Pascal Bourguignon
2003-09-28  9:38 ` Kai Grossjohann

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