* Re: how do I save a region to file?
@ 2010-11-11 18:16 Phaustus
2010-11-11 22:51 ` Drew Adams
2010-12-10 3:58 ` Drew Adams
0 siblings, 2 replies; 5+ messages in thread
From: Phaustus @ 2010-11-11 18:16 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
Hi,
I would just like to know the shortest key sequence that can be
used to save the currently-selected region to a file. A bit like C-x i,
except in reverse.
Thanks,
Ph
[-- Attachment #2: Type: text/html, Size: 217 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: how do I save a region to file?
2010-11-11 18:16 Phaustus
@ 2010-11-11 22:51 ` Drew Adams
2010-12-10 3:58 ` Drew Adams
1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2010-11-11 22:51 UTC (permalink / raw)
To: 'Phaustus', help-gnu-emacs
> I would just like to know the shortest key sequence that can be
> used to save the currently-selected region to a file.
M-x write-region.
(M-x apropos is your friend.)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how do I save a region to file?
[not found] ` <jwvk4kjmod6.fsf-monnier+gnu.emacs.help@gnu.org>
@ 2010-11-12 1:04 ` rustom
2010-11-12 12:33 ` Pascal J. Bourguignon
0 siblings, 1 reply; 5+ messages in thread
From: rustom @ 2010-11-12 1:04 UTC (permalink / raw)
To: help-gnu-emacs
On Nov 12, 4:29 am, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> > I would just like to know the shortest key sequence that can be
> > used to save the currently-selected region to a file. A bit like C-x i,
> > except in reverse.
>
> M-x wr-r RET
>
> Stefan "who actually has code that finds this for you"
Some new kind of completion here - whats the hyphen?
Rusi "who after 20 years emacs usage remains a noob"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how do I save a region to file?
2010-11-12 1:04 ` how do I save a region to file? rustom
@ 2010-11-12 12:33 ` Pascal J. Bourguignon
0 siblings, 0 replies; 5+ messages in thread
From: Pascal J. Bourguignon @ 2010-11-12 12:33 UTC (permalink / raw)
To: help-gnu-emacs
rustom <rustompmody@gmail.com> writes:
> On Nov 12, 4:29 am, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
>> > I would just like to know the shortest key sequence that can be
>> > used to save the currently-selected region to a file. A bit like C-x i,
>> > except in reverse.
>>
>> M-x wr-r RET
>>
>> Stefan "who actually has code that finds this for you"
>
> Some new kind of completion here - whats the hyphen?
Yes, emacs-23 completion has been improved, and it's very nice.
> Rusi "who after 20 years emacs usage remains a noob"
The target is big, but it's moving fast! :-)
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: how do I save a region to file?
2010-11-11 18:16 Phaustus
2010-11-11 22:51 ` Drew Adams
@ 2010-12-10 3:58 ` Drew Adams
1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2010-12-10 3:58 UTC (permalink / raw)
To: 'Phaustus', help-gnu-emacs
> I would just like to know the shortest key sequence that can be
> used to save the currently-selected region to a file.
Answer: The shortest key sequence that you want to sacrifice to `write-region'.
Personally, I use a command `region-to-file', which does `write-region' or, with
a prefix arg, `append-to-file'. I bind it to `C-x M-f' (which doesn't win
awards for shortness, but is fine for a command I don't use super often). It's
here: http://www.emacswiki.org/emacs/misc-cmds.el.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-12-10 3:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.4.1289514761.6160.help-gnu-emacs@gnu.org>
[not found] ` <jwvk4kjmod6.fsf-monnier+gnu.emacs.help@gnu.org>
2010-11-12 1:04 ` how do I save a region to file? rustom
2010-11-12 12:33 ` Pascal J. Bourguignon
2010-11-11 18:16 Phaustus
2010-11-11 22:51 ` Drew Adams
2010-12-10 3:58 ` Drew Adams
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).