unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3755: 23.0.95; Wish: please provide kill-whole-visual-line function
@ 2009-07-04 20:37 pent
  2019-09-30 15:35 ` bug#3754: " Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: pent @ 2009-07-04 20:37 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: rfrancoise

Hello!

The new Emacs provides function kill-visual-line, which is bound to
C-k in Visual Lines Mode. It would be nice if Emacs also provided
function kill-whole-visual-line similar to kill-whole-line, bound to
C-S-backspace in Visual Lines Mode:

(kill-whole-visual-line &optional arg)

Kill current visual line.

With prefix arg, kill that many visual lines starting from the current
visual line.  
If current line consists of a single visual line, and arg is nil, also
kill the trailing newline.
If arg is zero, never kill the trailing newline.

I'm ready to provide any additional info,
Andrey Paramonov

In GNU Emacs 23.0.95.1 (i486-pc-linux-gnu, GTK+ Version 2.16.4)
 of 2009-07-03 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20090703-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.95/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.95/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







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

* bug#3754: bug#3755: 23.0.95; Wish: please provide kill-whole-visual-line function
  2009-07-04 20:37 bug#3755: 23.0.95; Wish: please provide kill-whole-visual-line function pent
@ 2019-09-30 15:35 ` Lars Ingebrigtsen
  2020-11-19  2:31   ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30 15:35 UTC (permalink / raw)
  To: pent; +Cc: rfrancoise, 3755, 3754

pent <pent@aparamon.msk.ru> writes:

> The new Emacs provides function kill-visual-line, which is bound to
> C-k in Visual Lines Mode. It would be nice if Emacs also provided
> function kill-whole-visual-line similar to kill-whole-line, bound to
> C-S-backspace in Visual Lines Mode:
>
> (kill-whole-visual-line &optional arg)

(I'm going through old bug reports that unfortunately didn't get any
response at the time.)

That seems like a logical addition, but I wonder whether there may be
users who are used to `C-S-backspace' killing the entire physical line
in visual line mode, too.

The utility of having that keystroke killing just the visual line seems
limited -- that functionality is already as `C-a C-k', which is about as
many keys, while having `C-S-backspace' do that it does now seems more
useful.

So I'm inclined to not alter the behaviour here.  Anybody got an
opinion?

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





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

* bug#3754: bug#3755: 23.0.95; Wish: please provide kill-whole-visual-line function
  2019-09-30 15:35 ` bug#3754: " Lars Ingebrigtsen
@ 2020-11-19  2:31   ` Stefan Kangas
  2020-11-24  5:55     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2020-11-19  2:31 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: pent, rfrancoise, 3755, 3754

Lars Ingebrigtsen <larsi@gnus.org> writes:

> pent <pent@aparamon.msk.ru> writes:
>
>> The new Emacs provides function kill-visual-line, which is bound to
>> C-k in Visual Lines Mode. It would be nice if Emacs also provided
>> function kill-whole-visual-line similar to kill-whole-line, bound to
>> C-S-backspace in Visual Lines Mode:
>>
>> (kill-whole-visual-line &optional arg)
>
> (I'm going through old bug reports that unfortunately didn't get any
> response at the time.)
>
> That seems like a logical addition, but I wonder whether there may be
> users who are used to `C-S-backspace' killing the entire physical line
> in visual line mode, too.
>
> The utility of having that keystroke killing just the visual line seems
> limited -- that functionality is already as `C-a C-k', which is about as
> many keys, while having `C-S-backspace' do that it does now seems more
> useful.
>
> So I'm inclined to not alter the behaviour here.  Anybody got an
> opinion?

Yeah, I tend to agree with you.  So is this a wontfix?





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

* bug#3754: bug#3755: 23.0.95; Wish: please provide kill-whole-visual-line function
  2020-11-19  2:31   ` Stefan Kangas
@ 2020-11-24  5:55     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-24  5:55 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: pent, rfrancoise, 3755, 3754

Stefan Kangas <stefan@marxist.se> writes:

>> So I'm inclined to not alter the behaviour here.  Anybody got an
>> opinion?
>
> Yeah, I tend to agree with you.  So is this a wontfix?

Yup; closing the bug report.

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





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

end of thread, other threads:[~2020-11-24  5:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-04 20:37 bug#3755: 23.0.95; Wish: please provide kill-whole-visual-line function pent
2019-09-30 15:35 ` bug#3754: " Lars Ingebrigtsen
2020-11-19  2:31   ` Stefan Kangas
2020-11-24  5:55     ` Lars 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).