unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* newbie: selecting a line in emacs
@ 2005-03-29 19:38 Saket Sathe
  2005-03-29 19:53 ` Denis Bueno
  0 siblings, 1 reply; 7+ messages in thread
From: Saket Sathe @ 2005-03-29 19:38 UTC (permalink / raw)


hi,
How do I select an entire line in emacs for yanking/pasting etc.
-- 
Saket.

... No word is ever as effective as a rightly timed pause.

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

* Re: newbie: selecting a line in emacs
  2005-03-29 19:38 newbie: selecting a line in emacs Saket Sathe
@ 2005-03-29 19:53 ` Denis Bueno
  2005-03-29 20:09   ` Saket Sathe
       [not found]   ` <mailman.556.1112128586.28103.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Denis Bueno @ 2005-03-29 19:53 UTC (permalink / raw)


C-a C-SPC C-e


On Wed, 30 Mar 2005 01:08:52 +0530, Saket Sathe <saket@cc.iitb.ac.in> wrote:
> hi,
> How do I select an entire line in emacs for yanking/pasting etc.
> --
> Saket.
> 
> ... No word is ever as effective as a rightly timed pause.
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
> 


-- 
Denis Bueno
PGP: http://pgp.mit.edu:11371/pks/lookup?search=0xA1B51B4B&op=index

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

* Re: newbie: selecting a line in emacs
       [not found] <mailman.550.1112126316.28103.help-gnu-emacs@gnu.org>
@ 2005-03-29 20:02 ` Greg Rowe
  0 siblings, 0 replies; 7+ messages in thread
From: Greg Rowe @ 2005-03-29 20:02 UTC (permalink / raw)


Saket Sathe wrote:
> hi,
> How do I select an entire line in emacs for yanking/pasting etc.

In emacs the "selection" is all the text between the point (where the 
cursor is) and the mark (where you set the mark last using C-space). 
Normally the "selection" is not visible because the selection is ALWAYS 
active.  In many other editors selections are not always active.

A lot of emacs users like using transient mark mode.  This mode will 
highlight the active "selection" and slightly changes the behavior of 
emacs to be a bit more like other editors.  You can enable this mode 
with M-x transient-mark-mode.  If you run M-x transient-mark-mode a 
second time it will turn it off.

In transient mark mode to disable an active selection you can hit C-g. 
So if you want to kill/cut some text you would hit C-space at the 
beginning of your selection and then move to the end of your selection. 
  Then C-w to put the text into the kill ring (to cut it).

To disable the active selection in transient mark mode use C-g.

Greg

-- 
Home is where the .bashrc is.

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

* Re: newbie: selecting a line in emacs
  2005-03-29 19:53 ` Denis Bueno
@ 2005-03-29 20:09   ` Saket Sathe
  2005-03-29 20:27     ` Denis Bueno
  2005-03-29 20:55     ` Drew Adams
       [not found]   ` <mailman.556.1112128586.28103.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 7+ messages in thread
From: Saket Sathe @ 2005-03-29 20:09 UTC (permalink / raw)
  Cc: help-gnu-emacs

Hi,
It works! But isnt there a shorter/better way of doing it .


Denis Bueno wrote:

>C-a C-SPC C-e
>
>
>On Wed, 30 Mar 2005 01:08:52 +0530, Saket Sathe <saket@cc.iitb.ac.in> wrote:
>  
>
>>hi,
>>How do I select an entire line in emacs for yanking/pasting etc.
>>--
>>Saket.
>>
>>... No word is ever as effective as a rightly timed pause.
>>
>>_______________________________________________
>>Help-gnu-emacs mailing list
>>Help-gnu-emacs@gnu.org
>>http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>>
>>    
>>
>
>
>  
>


-- 
Saket.

... A synonym is a word you use when you can't spell the word you first 
thought of. - Burt Bacharach

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

* Re: newbie: selecting a line in emacs
  2005-03-29 20:09   ` Saket Sathe
@ 2005-03-29 20:27     ` Denis Bueno
  2005-03-29 20:55     ` Drew Adams
  1 sibling, 0 replies; 7+ messages in thread
From: Denis Bueno @ 2005-03-29 20:27 UTC (permalink / raw)
  Cc: help-gnu-emacs

On Wed, 30 Mar 2005 01:39:16 +0530, Saket Sathe <saket@cc.iitb.ac.in> wrote:
> Hi,
> It works! But isnt there a shorter/better way of doing it .

Emacs is nearly infinitely customizable, so, you could bind your own
key to it. (see `global-set-key'.)

Also, you could use the mouse, if you're into that sort of thing.

-- 
Denis Bueno
PGP: http://pgp.mit.edu:11371/pks/lookup?search=0xA1B51B4B&op=index

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

* RE: newbie: selecting a line in emacs
  2005-03-29 20:09   ` Saket Sathe
  2005-03-29 20:27     ` Denis Bueno
@ 2005-03-29 20:55     ` Drew Adams
  1 sibling, 0 replies; 7+ messages in thread
From: Drew Adams @ 2005-03-29 20:55 UTC (permalink / raw)
  Cc: help-gnu-emacs

    >C-a C-SPC C-e

    It works! But isnt there a shorter/better way of doing it .

Yes, triple-click the line with the mouse (MB1). Of course, that's only
easier if you use the mouse often - if you keep your hands on the keyboard,
then triple-clicking is harder, not easier.

 - Drew

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

* Re: newbie: selecting a line in emacs
       [not found]   ` <mailman.556.1112128586.28103.help-gnu-emacs@gnu.org>
@ 2005-03-29 21:51     ` Pascal Bourguignon
  0 siblings, 0 replies; 7+ messages in thread
From: Pascal Bourguignon @ 2005-03-29 21:51 UTC (permalink / raw)


Saket Sathe <saket@cc.iitb.ac.in> writes:

> >On Wed, 30 Mar 2005 01:08:52 +0530, Saket Sathe <saket@cc.iitb.ac.in> wrote:
> >
> >>How do I select an entire line in emacs for yanking/pasting etc.
>
> Denis Bueno wrote:
> 
> >C-a C-SPC C-e
>
> It works! But isnt there a shorter/better way of doing it .

\ = mouse-down
/ = mouse-up
_ = drag


Triple-left-click on the line works as well in emacs in X as in any
other GUI application \/\/\/ .

To select a single word, double-left-click on the word: \/\/ .  You
can also select several words: double-left-click on the first word and
drag up to the last word \/\_______/ .

Also, you can put the mark with single-left-click \/ , and move the
point with single-right-click \/ .

In X, the selection is automatically "copied", you can paste it with
middle-click \/ pointing to the place where you want it pasted, or
"yanking" with C-y.


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
__Pascal Bourguignon__                     http://www.informatimago.com/

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

end of thread, other threads:[~2005-03-29 21:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29 19:38 newbie: selecting a line in emacs Saket Sathe
2005-03-29 19:53 ` Denis Bueno
2005-03-29 20:09   ` Saket Sathe
2005-03-29 20:27     ` Denis Bueno
2005-03-29 20:55     ` Drew Adams
     [not found]   ` <mailman.556.1112128586.28103.help-gnu-emacs@gnu.org>
2005-03-29 21:51     ` Pascal Bourguignon
     [not found] <mailman.550.1112126316.28103.help-gnu-emacs@gnu.org>
2005-03-29 20:02 ` Greg Rowe

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