From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: 23.0.60; format-time-string, post-command-hook and mark Date: Tue, 12 Feb 2008 01:02:36 +0100 Message-ID: <87ve4vca8z.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202774581 26992 80.91.229.12 (12 Feb 2008 00:03:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 00:03:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 12 01:03:24 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOicM-0005Jn-Pb for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 01:03:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOibt-0001Pu-Fl for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 19:02:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOibq-0001Pe-6T for emacs-devel@gnu.org; Mon, 11 Feb 2008 19:02:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOibo-0001Nk-N7 for emacs-devel@gnu.org; Mon, 11 Feb 2008 19:02:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOibo-0001NW-JW for emacs-devel@gnu.org; Mon, 11 Feb 2008 19:02:48 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JOibo-0004NV-FF for emacs-devel@gnu.org; Mon, 11 Feb 2008 19:02:48 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JOibj-0000OG-Rd for emacs-devel@gnu.org; Tue, 12 Feb 2008 00:02:43 +0000 Original-Received: from i5387c54a.versanet.de ([83.135.197.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Feb 2008 00:02:43 +0000 Original-Received: from Stephen.Berman by i5387c54a.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Feb 2008 00:02:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387c54a.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88806 Archived-At: 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