From: Stephen Berman <Stephen.Berman@gmx.net>
To: emacs-devel@gnu.org
Subject: 23.0.60; format-time-string, post-command-hook and mark
Date: Tue, 12 Feb 2008 01:02:36 +0100 [thread overview]
Message-ID: <87ve4vca8z.fsf@escher.local.home> (raw)
1. Start Emacs with these arguments:
-Q --eval "(add-hook 'post-command-hook (lambda () (format-time-string \"%Y\")))"
2. Load a file into a buffer or type some text in a buffer.
3. If you select a region of the buffer with the mouse and try to delete
the region with C-w, Emacs beeps and says "The mark is not active now"
and the region is not deleted.
4. Type C-SPC and see the message "Mark activated"; type C-SPC again and
see the message "Transient-mark-mode temporarily enabled". However,
moving point does not show a highlighted expanding or contracting
region.
5. If you load an elisp file and select an uncommented region with the
mouse or by temporarily enabling transient-mark-mode, then typing M-;
does not comment out the region, but puts a comment string at the end of
the region.
Repeat the above with Emacs 23.0.50: doing C-w at step 3 deletes the
region, moving point in step 4 shows the highlighted region, typing M-;
in step 5 comments out the region.
I can reproduce the above observations for 23.0.60 with any nonempty
format string as argument to format-time-string, e.g. with "test" but
not with "" (with the latter 23.0.60 behaves like 23.0,50 with nonempty
format strings). I cannot reproduce the observations for 23.0.60 if
format-time-string is not added to post-command-hook.
In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of
2008-02-11 on escher
Steve Berman
next reply other threads:[~2008-02-12 0:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-12 0:02 Stephen Berman [this message]
2008-02-14 10:30 ` 23.0.60; format-time-string, post-command-hook and mark Johan Bockgård
2008-02-14 12:24 ` Kenichi Handa
2008-02-14 13:38 ` Stephen Berman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ve4vca8z.fsf@escher.local.home \
--to=stephen.berman@gmx.net \
--cc=emacs-devel@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.
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.