unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* RE: [External] : Re: master 6362f65474: Add new command `duplicate-line'
  2022-06-19 11:06       ` Lars Ingebrigtsen
@ 2022-06-19 17:10         ` Drew Adams
  0 siblings, 0 replies; 11+ messages in thread
From: Drew Adams @ 2022-06-19 17:10 UTC (permalink / raw)
  To: Lars Ingebrigtsen, Ergus; +Cc: emacs-devel@gnu.org

> I feel like most of these line based commands exist 
> in other editors because they don't have Emacs' `C-k'.

More generally, they don't have Emacs...



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

* Re: RE: [External] : Re: master 6362f65474: Add new command `duplicate-line'
@ 2022-06-20  5:56 Pedro Andres Aranda Gutierrez
  2022-06-20 11:07 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2022-06-20  5:56 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

> >* I feel like most of these line based commands exist*

> >* in other editors because they don't have Emacs' `C-k'.*

> More generally, they don't have Emacs...

But even so...

If I wrote the duplicate-line-or-region, it wasn't because of any other
editor having whatever... It was just because I sometimes need to duplicate
things and don't want them to appear in the kill-ring.
Actually, the more I think, the more I realise how much I duplicate stuff
:-)

Same goes with moving lines around, which I've also seen being talked
about. Having a package is good enough for me and there's a package for
that in ELPA.

Don't need that as part of stock Emacs core either...
we'll always have ~/.emacs.d and ELPA, right?

/PA
-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 1691 bytes --]

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

* Re: [External] : Re: master 6362f65474: Add new command `duplicate-line'
  2022-06-20  5:56 RE: [External] : Re: master 6362f65474: Add new command `duplicate-line' Pedro Andres Aranda Gutierrez
@ 2022-06-20 11:07 ` Eli Zaretskii
  2022-06-21  5:06   ` Pedro Andres Aranda Gutierrez
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-06-20 11:07 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: emacs-devel

> From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Mon, 20 Jun 2022 07:56:15 +0200
> 
> If I wrote the duplicate-line-or-region, it wasn't because of any other editor having whatever... It was just
> because I sometimes need to duplicate things and don't want them to appear in the kill-ring.

Why is it a problem for something to appear in the kill-ring?



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

* Re: [External] : Re: master 6362f65474: Add new command `duplicate-line'
  2022-06-20 11:07 ` Eli Zaretskii
@ 2022-06-21  5:06   ` Pedro Andres Aranda Gutierrez
  2022-06-21 10:19     ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2022-06-21  5:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

As such it is not a problem, but it's convenient. Say I want to duplicate a
line and paste something I yanked before after the first word in the line.
With my bindings:
Ctrl-a (beginning of line)
Ctrl-c D (duplicate line)
Esc-f (forward-word)
Ctrl-Y (paste)
Which is somehow quick and convenient.

I've been using this duplicate-line stuff for some time and it's only
afterwards that I have become aware of it being offered in other editors.

/PA

On Mon, 20 Jun 2022 at 13:08, Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> > Date: Mon, 20 Jun 2022 07:56:15 +0200
> >
> > If I wrote the duplicate-line-or-region, it wasn't because of any other
> editor having whatever... It was just
> > because I sometimes need to duplicate things and don't want them to
> appear in the kill-ring.
>
> Why is it a problem for something to appear in the kill-ring?
>


-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 1861 bytes --]

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

* Re: [External] : Re: master 6362f65474: Add new command `duplicate-line'
  2022-06-21  5:06   ` Pedro Andres Aranda Gutierrez
@ 2022-06-21 10:19     ` Eli Zaretskii
  2022-06-21 12:50       ` \\[universal-argument] not working? Robert Pluim
  2022-06-22  5:34       ` [External] : Re: master 6362f65474: Add new command `duplicate-line' Pedro Andres Aranda Gutierrez
  0 siblings, 2 replies; 11+ messages in thread
From: Eli Zaretskii @ 2022-06-21 10:19 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: emacs-devel

> From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Tue, 21 Jun 2022 07:06:47 +0200
> Cc: emacs-devel <emacs-devel@gnu.org>
> 
> As such it is not a problem, but it's convenient. Say I want to duplicate a line and paste something I yanked
> before after the first word in the line.
> With my bindings:
> Ctrl-a (beginning of line)
> Ctrl-c D (duplicate line)
> Esc-f (forward-word)
> Ctrl-Y (paste)
> Which is somehow quick and convenient.

You mean, the problem is to say "C-u C-y" instead?



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

* \\[universal-argument] not working?
  2022-06-21 10:19     ` Eli Zaretskii
@ 2022-06-21 12:50       ` Robert Pluim
  2022-06-21 13:02         ` Stefan Kangas
                           ` (2 more replies)
  2022-06-22  5:34       ` [External] : Re: master 6362f65474: Add new command `duplicate-line' Pedro Andres Aranda Gutierrez
  1 sibling, 3 replies; 11+ messages in thread
From: Robert Pluim @ 2022-06-21 12:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

>>>>> On Tue, 21 Jun 2022 13:19:59 +0300, Eli Zaretskii <eliz@gnu.org> said:

    Eli> You mean, the problem is to say "C-u C-y" instead?

Apropos, something appears to have broken command substitution for
universal-argument:

C-h k C-y

    Reinsert ("paste") the last stretch of killed text.
    More precisely, reinsert the most recent kill, which is the stretch of
    text most recently killed OR yanked, as returned by `current-kill' (which
    see).  Put point at the end, and set mark at the beginning without
    activating it. With just \[universal-argument] as argument, put point
    at beginning, and mark at end.
    With argument N, reinsert the Nth most recent kill.

(this is after a 'make bootstrap' on master)

Robert
-- 



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

* Re: \\[universal-argument] not working?
  2022-06-21 12:50       ` \\[universal-argument] not working? Robert Pluim
@ 2022-06-21 13:02         ` Stefan Kangas
  2022-06-21 13:12           ` Robert Pluim
  2022-06-21 13:02         ` Eli Zaretskii
  2022-06-21 13:13         ` Lars Ingebrigtsen
  2 siblings, 1 reply; 11+ messages in thread
From: Stefan Kangas @ 2022-06-21 13:02 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Eli Zaretskii, Emacs developers

Robert Pluim <rpluim@gmail.com> writes:

> Apropos, something appears to have broken command substitution for
> universal-argument:
>
> C-h k C-y
>
>     Reinsert ("paste") the last stretch of killed text.
>     More precisely, reinsert the most recent kill, which is the stretch of
>     text most recently killed OR yanked, as returned by `current-kill' (which
>     see).  Put point at the end, and set mark at the beginning without
>     activating it. With just \[universal-argument] as argument, put point

That looks like Bug#56106.  It should be fixed on master (thanks, Lars!).



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

* Re: \\[universal-argument] not working?
  2022-06-21 12:50       ` \\[universal-argument] not working? Robert Pluim
  2022-06-21 13:02         ` Stefan Kangas
@ 2022-06-21 13:02         ` Eli Zaretskii
  2022-06-21 13:13         ` Lars Ingebrigtsen
  2 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2022-06-21 13:02 UTC (permalink / raw)
  To: Robert Pluim; +Cc: emacs-devel

> From: Robert Pluim <rpluim@gmail.com>
> Cc: emacs-devel@gnu.org
> Date: Tue, 21 Jun 2022 14:50:35 +0200
> 
> Apropos, something appears to have broken command substitution for
> universal-argument:
> 
> C-h k C-y
> 
>     Reinsert ("paste") the last stretch of killed text.
>     More precisely, reinsert the most recent kill, which is the stretch of
>     text most recently killed OR yanked, as returned by `current-kill' (which
>     see).  Put point at the end, and set mark at the beginning without
>     activating it. With just \[universal-argument] as argument, put point
>     at beginning, and mark at end.
>     With argument N, reinsert the Nth most recent kill.
> 
> (this is after a 'make bootstrap' on master)

Doesn't happen here (but I didn't bootstrap).



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

* Re: \\[universal-argument] not working?
  2022-06-21 13:02         ` Stefan Kangas
@ 2022-06-21 13:12           ` Robert Pluim
  0 siblings, 0 replies; 11+ messages in thread
From: Robert Pluim @ 2022-06-21 13:12 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Eli Zaretskii, Emacs developers

>>>>> On Tue, 21 Jun 2022 15:02:20 +0200, Stefan Kangas <stefan@marxist.se> said:

    Stefan> Robert Pluim <rpluim@gmail.com> writes:
    >> Apropos, something appears to have broken command substitution for
    >> universal-argument:
    >> 
    >> C-h k C-y
    >> 
    >> Reinsert ("paste") the last stretch of killed text.
    >> More precisely, reinsert the most recent kill, which is the stretch of
    >> text most recently killed OR yanked, as returned by `current-kill' (which
    >> see).  Put point at the end, and set mark at the beginning without
    >> activating it. With just \[universal-argument] as argument, put point

    Stefan> That looks like Bug#56106.  It should be fixed on master (thanks, Lars!).

Indeed, that fixes it for me. How dare I be 4 commits behind Lars 😼

Robert
-- 



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

* Re: \\[universal-argument] not working?
  2022-06-21 12:50       ` \\[universal-argument] not working? Robert Pluim
  2022-06-21 13:02         ` Stefan Kangas
  2022-06-21 13:02         ` Eli Zaretskii
@ 2022-06-21 13:13         ` Lars Ingebrigtsen
  2 siblings, 0 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-21 13:13 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Eli Zaretskii, emacs-devel

Robert Pluim <rpluim@gmail.com> writes:

> (this is after a 'make bootstrap' on master)

Is this with the current master?  I fixed something in this area a
couple hours ago...

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



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

* Re: [External] : Re: master 6362f65474: Add new command `duplicate-line'
  2022-06-21 10:19     ` Eli Zaretskii
  2022-06-21 12:50       ` \\[universal-argument] not working? Robert Pluim
@ 2022-06-22  5:34       ` Pedro Andres Aranda Gutierrez
  1 sibling, 0 replies; 11+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2022-06-22  5:34 UTC (permalink / raw)
  To: Eli Zaretskii, emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 947 bytes --]

Hi Eli,

I hope you understand what I want to do from the attached screencast.

Best, /PA

On Tue, 21 Jun 2022 at 12:20, Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> > Date: Tue, 21 Jun 2022 07:06:47 +0200
> > Cc: emacs-devel <emacs-devel@gnu.org>
> >
> > As such it is not a problem, but it's convenient. Say I want to
> duplicate a line and paste something I yanked
> > before after the first word in the line.
> > With my bindings:
> > Ctrl-a (beginning of line)
> > Ctrl-c D (duplicate line)
> > Esc-f (forward-word)
> > Ctrl-Y (paste)
> > Which is somehow quick and convenient.
>
> You mean, the problem is to say "C-u C-y" instead?
>


-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #1.2: Type: text/html, Size: 1684 bytes --]

[-- Attachment #2: Screencast_22-06-22_07:32:04.webm --]
[-- Type: video/webm, Size: 161845 bytes --]

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

end of thread, other threads:[~2022-06-22  5:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20  5:56 RE: [External] : Re: master 6362f65474: Add new command `duplicate-line' Pedro Andres Aranda Gutierrez
2022-06-20 11:07 ` Eli Zaretskii
2022-06-21  5:06   ` Pedro Andres Aranda Gutierrez
2022-06-21 10:19     ` Eli Zaretskii
2022-06-21 12:50       ` \\[universal-argument] not working? Robert Pluim
2022-06-21 13:02         ` Stefan Kangas
2022-06-21 13:12           ` Robert Pluim
2022-06-21 13:02         ` Eli Zaretskii
2022-06-21 13:13         ` Lars Ingebrigtsen
2022-06-22  5:34       ` [External] : Re: master 6362f65474: Add new command `duplicate-line' Pedro Andres Aranda Gutierrez
     [not found] <165548727183.24473.6170306052807994962@vcs2.savannah.gnu.org>
     [not found] ` <20220617173432.17B6FC00BAF@vcs2.savannah.gnu.org>
2022-06-17 17:44   ` Visuwesh
2022-06-18 16:30     ` Ergus
2022-06-19 11:06       ` Lars Ingebrigtsen
2022-06-19 17:10         ` [External] : " Drew Adams

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