unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: emacs-pretest-bug@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: Contiguous redisplay of the menu and beeps
Date: Mon, 28 May 2007 08:49:12 -0400	[thread overview]
Message-ID: <87r6p1kt9z.fsf@stupidchicken.com> (raw)
In-Reply-To: 465AAA4A.8000701@gmx.at

martin rudalics <rudalics@gmx.at> writes:

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

I think it's cleaner to put the condition-case outside.  Does this
work for you?

*** emacs/lisp/textmodes/sgml-mode.el.~1.121.~	2007-05-14 10:56:30.000000000 -0400
--- emacs/lisp/textmodes/sgml-mode.el	2007-05-28 08:47:21.000000000 -0400
***************
*** 897,912 ****
    ;; 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)
--- 897,915 ----
    ;; Show preceding or following hidden tag, depending of cursor direction.
    (let ((inhibit-point-motion-hooks t))
      (save-excursion
!       (condition-case nil
! 	  (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))))
! 	(error nil)))))
! 
  
  \f
  (defun sgml-validate (command)

  reply	other threads:[~2007-05-28 12:49 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
2007-05-28 12:49               ` Chong Yidong [this message]
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=87r6p1kt9z.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@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 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).