unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org, lektu@terra.es
Subject: Re: Potential redisplay problem [Re: Recursive load of mule-util.elc]
Date: Wed, 13 Nov 2002 16:36:21 +0900 (JST)	[thread overview]
Message-ID: <200211130736.QAA17949@etlken.m17n.org> (raw)
In-Reply-To: <E18A7vG-0007ov-00@fencepost.gnu.org> (message from Richard Stallman on Fri, 08 Nov 2002 07:07:38 -0500)

In article <E18A7vG-0007ov-00@fencepost.gnu.org>, Richard Stallman <rms@gnu.org> writes:
>     At first, tool-bar is being autoloaded.  Then, Fload is
>     called, and it calls message_with_string () to show "Loading
>     XXX.." before starting to load a file.  This leads to
>     calling display_mode_element in this sequence.

>     message_with_string -> message3 -> message3_nolog
>	->  echo_area_display -> redisplay_mode_lines ->
>	->  display_mode_lines -> display_mode_element
>     In display_mode_element, `(mode-line-eol-desc)' is evaled,

> You need to make it safe to call mode-line-eol-desc.  It
> should never try to autoload anything.

Then, how about this kind of change in the docstring of
mode-line-format?

*** buffer.c.~1.403.~	Fri Nov  8 08:42:22 2002
--- buffer.c	Wed Nov 13 16:26:46 2002
***************
*** 5260,5266 ****
   A string appearing directly as the value of a symbol is processed verbatim
   in that the %-constructs below are not recognized.
  For a list of the form `(:eval FORM)', FORM is evaluated and the result
!  is used as a mode line element.
  For a list whose car is a symbol, the symbol's value is taken,
   and if that is non-nil, the cadr of the list is processed recursively.
   Otherwise, the caddr of the list (if there is one) is processed.
--- 5260,5267 ----
   A string appearing directly as the value of a symbol is processed verbatim
   in that the %-constructs below are not recognized.
  For a list of the form `(:eval FORM)', FORM is evaluated and the result
!  is used as a mode line element.  FORM should not leads to loading of
!  Emacs Lisp file even if it is by autoloading.
  For a list whose car is a symbol, the symbol's value is taken,
   and if that is non-nil, the cadr of the list is processed recursively.
   Otherwise, the caddr of the list (if there is one) is processed.


By the way, is autloading the only way to cause of the above
recursive call?

>     When you moved coding-system-eol-type-mnemonic to mule.el,
>     autoloading of mule-util in display_mode_element is avoided,
>     thus the problem is fixed.

> Yes, exactly.

>     However, this means that the current Emacs has a potential
>     problem.  Anything being autoloaded in display_mode_element
>     cause the same error.

> We could put in code that gets an error if anything autoloaded
> is called from within display_mode_element.

If that is possible, why don't just add a code to suppress
the call of message_with_string when something is being
autoloaded?

---
Ken'ichi HANDA
handa@m17n.org

  reply	other threads:[~2002-11-13  7:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-04  7:26 Recursive load of mule-util.elc Juanma Barranquero
2002-11-05 10:47 ` Juanma Barranquero
2002-11-06  1:07   ` Kenichi Handa
2002-11-06  7:44     ` Juanma Barranquero
2002-11-06 12:20     ` Juanma Barranquero
2002-11-06 13:02       ` Kenichi Handa
2002-11-07  1:46         ` Potential redisplay problem [Re: Recursive load of mule-util.elc] Kenichi Handa
2002-11-08 12:07           ` Richard Stallman
2002-11-13  7:36             ` Kenichi Handa [this message]
2002-11-14 12:16               ` Richard Stallman
2002-11-14 12:16               ` Richard Stallman
2002-11-14 12:59                 ` Kenichi Handa
2002-11-16  1:34                   ` Richard Stallman

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=200211130736.QAA17949@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=lektu@terra.es \
    /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).