unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: emacs-pretest-bug@gnu.org, Chong Yidong <cyd@stupidchicken.com>,
	emacs-devel@gnu.org
Subject: Re: Contiguous redisplay of the menu and beeps
Date: Mon, 28 May 2007 12:09:14 +0200	[thread overview]
Message-ID: <465AAA4A.8000701@gmx.at> (raw)
In-Reply-To: <wl646dl379.wl%mituharu@math.s.chiba-u.ac.jp>

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

 > I couldn't reproduce it on Mac OS X.  It only shows an error like
 >
 >   forward-list: Scan error: "Containing expression ends prematurely"

OK.  To prevent this I'd apply something like the attached patch (low
priority).

We also might consider not running point-entered/-left hooks when
running a point-entered/-left hook
(as with before-/after-change-functions).

[-- Attachment #2: sgml.patch --]
[-- Type: text/plain, Size: 1444 bytes --]

*** sgml-mode.el	Mon May 14 23:19:20 2007
--- sgml-mode.el	Mon May 28 11:51:12 2007
***************
*** 894,911 ****

  (defun sgml-point-entered (x y)
    ;; Show preceding or following hidden tag, depending of cursor direction.
!   (let ((inhibit-point-motion-hooks t))
!     (save-excursion
!       (message "Invisible tag: %s"
! 	       ;; 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) ?>)))
! 		    (backward-list)
! 		  (forward-list)))))))

  \f
  (defun sgml-validate (command)
--- 894,917 ----

  (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 (point)))
! 	       (condition-case nil
! 		   (forward-list)
! 		 (error (point))))))))
!     (unless (string-equal tag-string "")
!       (message "Invisible tag: %s" tag-string))))

  \f
  (defun sgml-validate (command)

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

  parent reply	other threads:[~2007-05-28 10:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-27 23:21 Contiguous redisplay of the menu and beeps Richard Stallman
2007-05-28  0:56 ` YAMAMOTO Mitsuharu
2007-05-28  2:32   ` Chong Yidong
2007-05-28  3:11     ` YAMAMOTO Mitsuharu
2007-05-28  8:33       ` martin rudalics
2007-05-28  8:58         ` martin rudalics
2007-05-28  9:14           ` YAMAMOTO Mitsuharu
2007-05-28  9:42             ` martin rudalics
2007-05-28 10:09             ` martin rudalics [this message]
2007-05-28 12:49               ` Chong Yidong
2007-05-28 13:13                 ` martin rudalics
2007-05-28 14:11                   ` Chong Yidong
2007-05-29 23:38                 ` Davis Herring
2007-05-29  0:03     ` Richard Stallman
     [not found] <ulkfcxbvv.wl%miyoshi@meadowy.org>
     [not found] ` <465811AB.6080507@gmx.at>
2007-05-26 13:41   ` martin rudalics
2007-05-26 14:12     ` Stephen Berman
2007-05-26 14:22       ` Stephen Berman
2007-05-26 14:49         ` martin rudalics
2007-05-26 15:19           ` Stephen Berman
2007-05-26 16:12             ` martin rudalics

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=465AAA4A.8000701@gmx.at \
    --to=rudalics@gmx.at \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).