unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: keybinding to duplicate the current line.
@ 2010-01-17 15:32 A. Soare
  2010-01-17 16:02 ` Teemu Likonen
  2010-01-19 16:59 ` Davis Herring
  0 siblings, 2 replies; 42+ messages in thread
From: A. Soare @ 2010-01-17 15:32 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: Emacs   Dev  [emacs-devel]


> > In order to duplicate it I have to press
> >
> > C-a C-SPACE C-e C-f M-w C-g C-y
> 
> Quicker alternatives:

these are quicker only in some particular cases:

> 
>     C-a C-k C-k C-y C-y

this is true when kill-whole-line is nil.


>     C-a C-SPC C-n M-w C-y

and this is true when line-move-visual is nil.



____________________________________________________

Vous n’avez pas encore adressé vos voeux ? Retrouvez nos cartes sur http://carte-de-voeux.voila.fr 







^ permalink raw reply	[flat|nested] 42+ messages in thread
* Re: keybinding to duplicate the current line.
@ 2010-01-18 19:50 A. Soare
  2010-01-19 15:01 ` Richard Stallman
  0 siblings, 1 reply; 42+ messages in thread
From: A. Soare @ 2010-01-18 19:50 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: Emacs   Dev  [emacs-devel]


The defintions of keybindings of major modes can be considered a regular language?

To write somehow a regular expressions and scan all code sources for defintions ?








> 2010/1/18 Richard Stallman <rms@gnu.org>:
> >    C-c prefix is supposed to be "reserved" for end-users.
> >    But the sad reality is that more than several major-modes
> >    break the convention by overriding C-c ... .
> >
> > We need to fix those modes.
> > Can you say which modes they are?
> >
> 
> If someone decides to look into this matter, could that person also
> see if there are any modes that make C-g part of any key sequences?
> E.g. haskell-mode used "C-c C-g" before.
> 
> I don't know if C-g is explicitly forbidden to use in mode key
> sequences, but I really think it should be.
> 
> -- 
> Deniz Dogan
> 
> 

____________________________________________________

Je m’évite la cohue dans les magasins et je profite des petits prix sur http://shopping.voila.fr







^ permalink raw reply	[flat|nested] 42+ messages in thread
* Re: keybinding to duplicate the current line.
@ 2010-01-17 17:17 A. Soare
  2010-01-18  1:45 ` Stephen J. Turnbull
  2010-01-20  8:16 ` Teemu Likonen
  0 siblings, 2 replies; 42+ messages in thread
From: A. Soare @ 2010-01-17 17:17 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: Emacs   Dev  [emacs-devel]


> On 2010-01-17 16:32 (+0100), A. Soare wrote:
> 
> >>     C-a C-SPC C-n M-w C-y
> >
> > and this is true when line-move-visual is nil.
> 
> I use it even when I have line-move-visual=t.

Then you do something bad, or at least bad for me.

doc: /* Take cdr N times on LIST,
returns the result.  */)

<your keys>

will become 

doc: /* Take cdr N times on LIST,
doc: /* Take cdr N times on LIST,
returns the result.  */)


(on 1 line).




____________________________________________________

Vous n’avez pas encore adressé vos voeux ? Retrouvez nos cartes sur http://carte-de-voeux.voila.fr 







^ permalink raw reply	[flat|nested] 42+ messages in thread
* Re: keybinding to duplicate the current line.
@ 2010-01-17 14:34 A. Soare
  0 siblings, 0 replies; 42+ messages in thread
From: A. Soare @ 2010-01-17 14:34 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: Emacs   Dev  [emacs-devel]



> For me it would be very convenient to have a key-binding to duplicate the
> > current line.
> 
> M-x load-library RET misc RET
> C-h f copy-from-above-command

great! this function is useful when I want to make a modification to the old code, and keep th eold version too.


thanks.



____________________________________________________

Vous n’avez pas encore adressé vos voeux ? Retrouvez nos cartes sur http://carte-de-voeux.voila.fr 







^ permalink raw reply	[flat|nested] 42+ messages in thread
* keybinding to duplicate the current line.
@ 2010-01-17 13:40 alin.s
  2010-01-17 14:19 ` Deniz Dogan
                   ` (6 more replies)
  0 siblings, 7 replies; 42+ messages in thread
From: alin.s @ 2010-01-17 13:40 UTC (permalink / raw)
  To: Emacs-devel


For me it would be very convenient to have a key-binding to duplicate the
current line.

In order to duplicate it I have to press

C-a C-SPACE C-e C-f M-w C-g C-y

It's too much for an usual function. C-x C-a would be good?

More than that, if I press C-u C-x C-a, I wish to duplicate the current
line, and to comment the old line.

Do you consider that such a function would be useful for many of you?
Otherwise, I have to wtite it myseld in my own .emacs...



-- 
View this message in context: http://old.nabble.com/keybinding-to-duplicate-the-current-line.-tp27198868p27198868.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.





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

end of thread, other threads:[~2010-01-21 14:29 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-17 15:32 keybinding to duplicate the current line A. Soare
2010-01-17 16:02 ` Teemu Likonen
2010-01-19 16:59 ` Davis Herring
  -- strict thread matches above, loose matches on Subject: below --
2010-01-18 19:50 A. Soare
2010-01-19 15:01 ` Richard Stallman
2010-01-17 17:17 A. Soare
2010-01-18  1:45 ` Stephen J. Turnbull
2010-01-20  8:16 ` Teemu Likonen
2010-01-21  2:41   ` Ken Hori
2010-01-21  3:34     ` Miles Bader
2010-01-21  4:00       ` Ken Hori
2010-01-21  4:58         ` Miles Bader
2010-01-21 14:29         ` Stefan Monnier
2010-01-17 14:34 A. Soare
2010-01-17 13:40 alin.s
2010-01-17 14:19 ` Deniz Dogan
2010-01-17 14:28   ` Ken Hori
2010-01-17 14:22 ` Daniel Colascione
2010-01-17 14:31 ` Dirk-Jan C. Binnema
2010-01-17 14:37 ` Dirk-Jan C. Binnema
2010-01-17 14:42   ` Ken Hori
2010-01-17 14:51     ` Daniel Colascione
2010-01-17 14:52   ` Dirk-Jan C. Binnema
2010-01-17 14:58 ` Helmut Eller
2010-01-17 15:05 ` Teemu Likonen
2010-01-17 15:10   ` Lennart Borgman
2010-01-17 15:13   ` Ken Hori
2010-01-17 15:18     ` Deniz Dogan
2010-01-17 15:30       ` Ken Hori
2010-01-17 15:31         ` Deniz Dogan
2010-01-17 15:38           ` Chong Yidong
2010-01-17 15:48             ` Ken Hori
2010-01-17 16:17           ` Lennart Borgman
2010-01-18 11:56         ` Richard Stallman
2010-01-18 16:28           ` Deniz Dogan
2010-01-19 15:00             ` Richard Stallman
2010-01-19 15:29               ` Deniz Dogan
2010-01-21  9:47                 ` Deniz Dogan
2010-01-18 18:29           ` Ken Hori
2010-01-18  5:39   ` Thien-Thi Nguyen
2010-01-19  8:40 ` mansoor_2233
2010-01-19 16:05   ` David Kastrup

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