* replacing in a current line only
@ 2007-07-31 10:20 Rafal Kurcz
2007-07-31 11:09 ` Peter Dyballa
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Rafal Kurcz @ 2007-07-31 10:20 UTC (permalink / raw)
To: help-gnu-emacs
Hello
How can I replace the string in a current line only.
It would be nice to be able to distinguish between first and all
occurrances of the string in the current line.
Narrowing the buffer first and then replacing the string seems to be
inconvenient.
Thank You for help
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: replacing in a current line only
2007-07-31 10:20 replacing in a current line only Rafal Kurcz
@ 2007-07-31 11:09 ` Peter Dyballa
2007-07-31 11:14 ` Peter Dyballa
[not found] ` <mailman.4157.1185880495.32220.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2007-07-31 11:09 UTC (permalink / raw)
To: Rafal Kurcz; +Cc: help-gnu-emacs
Am 31.07.2007 um 12:20 schrieb Rafal Kurcz:
> How can I replace the string in a current line only.
C-a C-k <some new text>
--
Greetings
Pete
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
-Benjamin Franklin, Historical Review of Pennsylvania.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: replacing in a current line only
2007-07-31 10:20 replacing in a current line only Rafal Kurcz
2007-07-31 11:09 ` Peter Dyballa
@ 2007-07-31 11:14 ` Peter Dyballa
[not found] ` <mailman.4157.1185880495.32220.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2007-07-31 11:14 UTC (permalink / raw)
To: Rafal Kurcz; +Cc: help-gnu-emacs
Am 31.07.2007 um 12:20 schrieb Rafal Kurcz:
> How can I replace the string in a current line only.
Or did you mean to replace only some characters in that line? Then:
C-a C-SPC C-e M-x replace-string RET <from> RET <to> RET
--
Greetings
Pete
"We have to expect it, otherwise we would be surprised."
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: replacing in a current line only
[not found] ` <mailman.4157.1185880495.32220.help-gnu-emacs@gnu.org>
@ 2007-07-31 13:58 ` Marc Tfardy
0 siblings, 0 replies; 4+ messages in thread
From: Marc Tfardy @ 2007-07-31 13:58 UTC (permalink / raw)
To: help-gnu-emacs
Peter Dyballa schrieb:
>
> Am 31.07.2007 um 12:20 schrieb Rafal Kurcz:
>
>> How can I replace the string in a current line only.
>
> Or did you mean to replace only some characters in that line? Then:
>
> C-a C-SPC C-e M-x replace-string RET <from> RET <to> RET
Or C-a C-SPC C-e M-% <from> RET <to> RET when you want control
what should be replaced.
regards
Marc
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-31 13:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 10:20 replacing in a current line only Rafal Kurcz
2007-07-31 11:09 ` Peter Dyballa
2007-07-31 11:14 ` Peter Dyballa
[not found] ` <mailman.4157.1185880495.32220.help-gnu-emacs@gnu.org>
2007-07-31 13:58 ` Marc Tfardy
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.