* bug#60348: 30.0.50; Incorrect docstring face in lisp-mode
@ 2022-12-27 3:42 Gabriel
2022-12-27 12:22 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Gabriel @ 2022-12-27 3:42 UTC (permalink / raw)
To: 60348
Steps:
1) emacs -Q (master branch)
2) Open *scratch* buffer (or any buffer with a lisp major mode)
3) Type:
(defun foo () "Hello, World!")
Expected result: The string "Hello, World!" is fontified with
'font-lock-string-face'.
Actual result: The string "Hello, World!" is fontified with
'font-lock-doc-face'.
---
Gabriel
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#60348: 30.0.50; Incorrect docstring face in lisp-mode
2022-12-27 3:42 bug#60348: 30.0.50; Incorrect docstring face in lisp-mode Gabriel
@ 2022-12-27 12:22 ` Eli Zaretskii
2022-12-27 21:24 ` Gabriel
2023-09-03 10:39 ` Stefan Kangas
0 siblings, 2 replies; 4+ messages in thread
From: Eli Zaretskii @ 2022-12-27 12:22 UTC (permalink / raw)
To: Gabriel, Stefan Monnier; +Cc: 60348
> From: Gabriel <gabriel376@hotmail.com>
> Date: Tue, 27 Dec 2022 00:42:37 -0300
>
> Steps:
>
> 1) emacs -Q (master branch)
>
> 2) Open *scratch* buffer (or any buffer with a lisp major mode)
>
> 3) Type:
>
> (defun foo () "Hello, World!")
>
> Expected result: The string "Hello, World!" is fontified with
> 'font-lock-string-face'.
>
> Actual result: The string "Hello, World!" is fontified with
> 'font-lock-doc-face'.
I'm not sure I understand why you expected something other than
font-lock-doc-face. E.g., the Lisp interpreter disagrees with you:
(documentation 'foo)
=> "Hello, World!"
Am I missing something here?
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#60348: 30.0.50; Incorrect docstring face in lisp-mode
2022-12-27 12:22 ` Eli Zaretskii
@ 2022-12-27 21:24 ` Gabriel
2023-09-03 10:39 ` Stefan Kangas
1 sibling, 0 replies; 4+ messages in thread
From: Gabriel @ 2022-12-27 21:24 UTC (permalink / raw)
To: 60348
Eli Zaretskii <eliz@gnu.org> writes:
>
> I'm not sure I understand why you expected something other than
> font-lock-doc-face. E.g., the Lisp interpreter disagrees with you:
>
> (documentation 'foo)
> => "Hello, World!"
>
> Am I missing something here?
Hi Eli,
Well, I am not sure either, but for me it's sort of confusing. If you
eval:
(foo)
=> "Hello, World!"
How does the Lisp interpreter handles this case? It's a docstring AND a
function body?
---
Gabriel
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#60348: 30.0.50; Incorrect docstring face in lisp-mode
2022-12-27 12:22 ` Eli Zaretskii
2022-12-27 21:24 ` Gabriel
@ 2023-09-03 10:39 ` Stefan Kangas
1 sibling, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2023-09-03 10:39 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Gabriel, Stefan Monnier, 60348
tags 60348 notabug
close 60348
thanks
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Gabriel <gabriel376@hotmail.com>
>> Date: Tue, 27 Dec 2022 00:42:37 -0300
>>
>> Steps:
>>
>> 1) emacs -Q (master branch)
>>
>> 2) Open *scratch* buffer (or any buffer with a lisp major mode)
>>
>> 3) Type:
>>
>> (defun foo () "Hello, World!")
>>
>> Expected result: The string "Hello, World!" is fontified with
>> 'font-lock-string-face'.
>>
>> Actual result: The string "Hello, World!" is fontified with
>> 'font-lock-doc-face'.
>
> I'm not sure I understand why you expected something other than
> font-lock-doc-face. E.g., the Lisp interpreter disagrees with you:
>
> (documentation 'foo)
> => "Hello, World!"
>
> Am I missing something here?
I think you're not missing anything. This is the expected behavior, and
this is not a bug.
I'm therefore closing this bug report.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-09-03 10:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-27 3:42 bug#60348: 30.0.50; Incorrect docstring face in lisp-mode Gabriel
2022-12-27 12:22 ` Eli Zaretskii
2022-12-27 21:24 ` Gabriel
2023-09-03 10:39 ` Stefan Kangas
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.