GNU bug report logs - #58311
Missing newline in *Messages* between evaluation result and error

Previous Next

Package: emacs;

Reported by: Felix Dietrich <felix.dietrich <at> sperrhaken.name>

Date: Wed, 5 Oct 2022 18:38:01 UTC

Severity: minor

To reply to this bug, email your comments to 58311 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#58311; Package emacs. (Wed, 05 Oct 2022 18:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Felix Dietrich <felix.dietrich <at> sperrhaken.name>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 05 Oct 2022 18:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Felix Dietrich <felix.dietrich <at> sperrhaken.name>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: Missing newline in *Messages* between evaluation result and error
Date: Wed, 05 Oct 2022 20:37:18 +0200
Package: emacs
Severity: minor

Entries added to the “*Messages*” buffer by the following snippet are
missing a newline between the evaluation result and the error log entry
put there by “xfaces.c:merge_face_ref” using “xdisp.c:add_to_log”.

#+begin_src emacs-lisp
  (let ((buf (generate-new-buffer "*test*"))
        (s (propertize "Hello World" 'face '(:foreground :invalid))))
    (with-current-buffer buf
      (insert s))
    (display-buffer buf))
#+end_src


#+begin_example
#<window 54 on *test*<2>>Invalid face attribute :foreground :invalid
Invalid face attribute :foreground :invalid
#+end_example


-- 
Felix Dietrich




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58311; Package emacs. (Thu, 06 Oct 2022 12:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 58311 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Felix Dietrich <felix.dietrich <at> sperrhaken.name>
Cc: 58311 <at> debbugs.gnu.org
Subject: Re: bug#58311: Missing newline in *Messages* between evaluation
 result and error
Date: Thu, 06 Oct 2022 14:41:08 +0200
Felix Dietrich <felix.dietrich <at> sperrhaken.name> writes:

> Entries added to the “*Messages*” buffer by the following snippet are
> missing a newline between the evaluation result and the error log entry
> put there by “xfaces.c:merge_face_ref” using “xdisp.c:add_to_log”.
>
> #+begin_src emacs-lisp
>   (let ((buf (generate-new-buffer "*test*"))
>         (s (propertize "Hello World" 'face '(:foreground :invalid))))
>     (with-current-buffer buf
>       (insert s))
>     (display-buffer buf))
> #+end_src
>
> #+begin_example
> #<window 54 on *test*<2>>Invalid face attribute :foreground :invalid
> Invalid face attribute :foreground :invalid
> #+end_example

Hm.  Very odd.  The code just calls

		      add_to_log ("Invalid face attribute %S %S",
				  QCinherit, parent_face);

the normal way, and reading the code and poking at this a bit, it seems
like add_to_log should insert a newline before inserting the text, but I
may be misreading message_dolog -- it's pretty long.

Is it "immediately obvious" to somebody else what is happening here?




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 06 Oct 2022 12:42:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58311; Package emacs. (Thu, 06 Oct 2022 12:43:02 GMT) Full text and rfc822 format available.

Message #13 received at 58311 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Felix Dietrich <felix.dietrich <at> sperrhaken.name>
Cc: 58311 <at> debbugs.gnu.org
Subject: Re: bug#58311: Missing newline in *Messages* between evaluation
 result and error
Date: Thu, 06 Oct 2022 14:42:20 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Hm.  Very odd.  The code just calls
>
> 		      add_to_log ("Invalid face attribute %S %S",
> 				  QCinherit, parent_face);

Or rather, it's this bit, but the same applies:

	      if (err)
		{
		  add_to_log ("Invalid face attribute %S %S", keyword, value);
		  ok = false;
		}




Removed tag(s) moreinfo. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 03 Sep 2023 09:28:02 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.