all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#58311: Missing newline in *Messages* between evaluation result and error
@ 2022-10-05 18:37 Felix Dietrich
  2022-10-06 12:41 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Dietrich @ 2022-10-05 18:37 UTC (permalink / raw)
  To: 58311

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#58311: Missing newline in *Messages* between evaluation result and error
  2022-10-05 18:37 bug#58311: Missing newline in *Messages* between evaluation result and error Felix Dietrich
@ 2022-10-06 12:41 ` Lars Ingebrigtsen
  2022-10-06 12:42   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-10-06 12:41 UTC (permalink / raw)
  To: Felix Dietrich; +Cc: 58311

Felix Dietrich <felix.dietrich@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?





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#58311: Missing newline in *Messages* between evaluation result and error
  2022-10-06 12:41 ` Lars Ingebrigtsen
@ 2022-10-06 12:42   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-10-06 12:42 UTC (permalink / raw)
  To: Felix Dietrich; +Cc: 58311

Lars Ingebrigtsen <larsi@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;
		}





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-06 12:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-05 18:37 bug#58311: Missing newline in *Messages* between evaluation result and error Felix Dietrich
2022-10-06 12:41 ` Lars Ingebrigtsen
2022-10-06 12:42   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.