emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (standard-display-european) and drop of characters in *Messages*


From: Kenichi Handa
Subject: Re: (standard-display-european) and drop of characters in *Messages*
Date: Wed, 15 Jan 2003 15:41:16 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Nils Klarlund <address@hidden> writes:
> execute these four lines:

> (defun test () 
>   (message "abcdefghijdflj %s" last-command-event))
> (add-hook 'pre-command-hook 'test)
> (standard-display-european 1)

> then, all messages are echoed normally *except* that only the first
> character "a" of the messages is recorded in the *Messages* buffer

Thank you for the report.  There was a very simple bug in
message logging.  I've just installed the attached change
for RC and HEAD.  In HEAD, this bug is not revealed because
standard-display-european doesn't change *Message* buffer to
unibyte.

Nils, could you also try this patch?

---
Ken'ichi HANDA
address@hidden


2003-01-15  Kenichi Handa  <address@hidden>

        * xdisp.c (message_dolog): Fix bug of the case that *Message*
        buffer is unibyte.

*** xdisp.c.~1.671.4.32.~       Wed Nov  6 10:26:33 2002
--- xdisp.c     Wed Jan 15 15:19:44 2003
***************
*** 5683,5689 ****
          
          /* Convert a multibyte string to single-byte
             for the *Message* buffer.  */
!         for (i = 0; i < nbytes; i += nbytes)
            {
              c = string_char_and_length (m + i, nbytes - i, &char_bytes);
              work[0] = (SINGLE_BYTE_CHAR_P (c)
--- 5683,5689 ----
          
          /* Convert a multibyte string to single-byte
             for the *Message* buffer.  */
!         for (i = 0; i < nbytes; i += char_bytes)
            {
              c = string_char_and_length (m + i, nbytes - i, &char_bytes);
              work[0] = (SINGLE_BYTE_CHAR_P (c)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]