unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: two more emacs questions
Date: Sat, 18 Nov 2006 09:20:11 +0100	[thread overview]
Message-ID: <87ejs1i2tg.fsf@hans.local.net> (raw)
In-Reply-To: <009d01c70a7b$6731f190$6b01a8c0@dimalaptop> (Vadim Bendebury's message of "Fri\, 17 Nov 2006 11\:05\:50 -0800")

"Vadim Bendebury" <vb@vsbe.com> writes:

> Say I want to search for other occurences of a word which the cursor
> is ot. I hit C-s C-w C-s and off it goes. The problem is when the word
> includes underscores - each C-w moves the mark to the next underscore,
> nit to the end ofthe word. Is there a way to configure emacs such that
> underscore is considered part of the word?
>
> Another emacs annoyance (at least for us, unfortunate users of other,
> less priviledged editors ;-)) is its handling of undo. It does not

May I ask which editor?

> consider highligting of the part of the file (like setting marks
> around a block of code) a separate operation. Say I highlighted a 10
> line block, cut it, moved the cursor to another place in the file and
> pasted the block there. Then I wanted to actually decrease the amount
> of moved code. I hit undo a few times, it does put the code back where
> it came from, but it skips the highlighting step, so at this time, if
> I wanted to move a 9 line block instead of 10 - I need to highlight
> the entire block again instead of just shrinking the highlighted area

I can only offer a workaround (or a change of working habits):

0.) Paste the 10 lines: C-y or with middle mouse button.
1.) Kill the superfluous 10th line.
2.) Go back where you you killed the 10 lines C-u C-SPC C-u C-SPC
3.) Type C-y again

> by a line. Is there a way to make it consider highligting a part of
> the command sequence and folow it in the undo path?
> by a line. Is there a way to make it consider highligting a part of

A good question, I hope others can answer it.

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

  parent reply	other threads:[~2006-11-18  8:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17 19:05 two more emacs questions Vadim Bendebury
2006-11-17 20:31 ` Perry Smith
2006-11-17 22:02   ` vb
2006-11-18  8:20 ` Dieter Wilhelm [this message]
2006-11-18 18:39   ` vb
2006-11-19  3:00     ` Dieter Wilhelm
2006-11-19  4:00       ` vb
2006-11-19 10:17         ` Dieter Wilhelm
2006-11-18 10:02 ` Eli Zaretskii
2006-11-18 18:41   ` vb
2006-11-18 19:45     ` Eli Zaretskii
2006-11-19  4:06       ` vb
2006-11-19  4:12         ` Eli Zaretskii
     [not found]       ` <mailman.828.1163922268.2155.help-gnu-emacs@gnu.org>
2006-11-22  9:37         ` Mathias Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ejs1i2tg.fsf@hans.local.net \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).