help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to analyze the value of `mode-line-misc-info'?


From: Kevin Vigouroux
Subject: Re: How to analyze the value of `mode-line-misc-info'?
Date: Tue, 15 Feb 2022 08:35:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

I have some difficulties with recursion, and especially with the
development of the line mode construct. Below, I have reasoned in terms
of strings (the final result), comparing two potential recursive
approaches. The mark โ€˜๐„‚โ€™ indicates a potential issue in my process. The
arrows indicates some kind of recursion.

#+begin_src emacs-lisp
ELISP> global-mode-string
("" display-time-string)
ELISP> display-time-string
"12:00"
#+end_src

#+begin_quote
((global-mode-string ("" global-mode-string " ")))
โœ“ โคท (global-mode-string ("" global-mode-string " "))
โœ“  โคท ("" global-mode-string " ")
๐„‚   โคท "" ("" display-time-string) " "
โœ“ โคท void
๐„‚ โคด "" ("" display-time-string) " "
๐„‚ โ†’ ("" ("" display-time-string) " ")
๐„‚ ("" ("" display-time-string) " ")
๐„‚  โคท "" "12:00" " "
๐„‚  โคท "12:00 "
#+end_quote

#+begin_quote
((global-mode-string ("" global-mode-string " ")))
โœ“ โคท (global-mode-string ("" global-mode-string " "))
โœ“  โคท ("" global-mode-string " ")
๐„‚   โคท "" ("" display-time-string) " "
๐„‚    โคท "" "12:00" " "
๐„‚    โคท "12:00 "
โœ“ โคท void
#+end_quote

-- 
Kevin Vigouroux,
Best regards



reply via email to

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