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: Re: Contiguous redisplay of the menu and beeps Date: Sat, 26 May 2007 17:19:37 +0200 Message-ID: <87d50neho6.fsf@escher.local.home> References: <465811AB.6080507@gmx.at> <46583907.1010009@gmx.at> <87lkfbeksr.fsf@escher.local.home> <87hcpzekb6.fsf@escher.local.home> <4658490F.5070908@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180192819 11243 80.91.229.12 (26 May 2007 15:20:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 May 2007 15:20:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 26 17:20:08 2007 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 1Hry3q-0005jL-18 for ged-emacs-devel@m.gmane.org; Sat, 26 May 2007 17:20:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hry3p-0003t4-Al for ged-emacs-devel@m.gmane.org; Sat, 26 May 2007 11:20:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hry3a-0003rY-Jp for emacs-devel@gnu.org; Sat, 26 May 2007 11:19:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hry3Y-0003rM-U4 for emacs-devel@gnu.org; Sat, 26 May 2007 11:19:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hry3Y-0003rJ-OY for emacs-devel@gnu.org; Sat, 26 May 2007 11:19:48 -0400 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 1Hry3Y-0000f8-Bd for emacs-devel@gnu.org; Sat, 26 May 2007 11:19:48 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hry3V-0007TM-7G for emacs-devel@gnu.org; Sat, 26 May 2007 17:19:45 +0200 Original-Received: from i577bc8be.versanet.de ([87.123.200.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 May 2007 17:19:45 +0200 Original-Received: from Stephen.Berman by i577bc8be.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 May 2007 17:19:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bc8be.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: 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:71844 Archived-At: On Sat, 26 May 2007 16:49:51 +0200 martin rudalics wrote: > What happens if you change `sgml-point-entered' to the following > non-sensical? My Emacs consumes 100% CPU and won't react to C-g. > Occasionally I can see `my-count' going up though. > > (defvar my-count 0) > > (defun sgml-point-entered (x y) > ;; Show preceding or following hidden tag, depending of cursor direction. > (let ((inhibit-point-motion-hooks t) > (tag-string > (save-excursion > ;; Strip properties, otherwise, the text is invisible. > (buffer-substring-no-properties > (point) > (if (or (and (> x y) > (not (eq (following-char) ?<))) > (and (< x y) > (eq (preceding-char) ?>))) > (condition-case nil > (backward-list) > (error (progn (message "... %s" (setq my-count (1+ my-count))) > (sit-for 1) (ding) > (point)))) > (condition-case nil > (forward-list) > (error (progn (message "... %s" (setq my-count (1+ my-count))) > (sit-for 1) (ding) > (point))))))))) > (unless (string-equal tag-string "") > (message "Invisible tag: %s" tag-string)))) For me it's not nonsensical at all: 1. emacs -Q 2. M-x html-mode 3. M-x column-number-mode 4. eval the above defvar and defun 5. insert 6. put the cursor on the leftmost `>' 7. C-c C-i => I hear two beeps, then "" disappears and I see "... 2" in the echo area. No further beeps or CPU consumption. When I repeat C-c C-i the tags reappear, when I repeat C-c C-i again, they again vanish after two beeps and the message is now "... 4". And so on, each time incrementing by two. Steve Berman