From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kevin Vigouroux via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: How to analyze the value of `mode-line-misc-info'? Date: Tue, 15 Feb 2022 08:35:46 +0100 Message-ID: <87czjo7fal.fsf@laposte.net> References: <878rudmm7g.fsf@laposte.net> Reply-To: Kevin Vigouroux Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9437"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 15 08:37:10 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJsOb-0002Ca-In for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 15 Feb 2022 08:37:09 +0100 Original-Received: from localhost ([::1]:33820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJsOZ-0004NU-Tj for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 15 Feb 2022 02:37:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJsNV-0004NH-SU for help-gnu-emacs@gnu.org; Tue, 15 Feb 2022 02:36:01 -0500 Original-Received: from smtp-outgoing-2001.laposte.net ([160.92.124.108]:34064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJsNS-0006hv-0o for help-gnu-emacs@gnu.org; Tue, 15 Feb 2022 02:36:01 -0500 X-mail-filterd: {"version":"1.3.4", "queueID":"4JyXv70wxjz16Hmd", "contextId":"dd4f5c14-9d91-4342-b69d-1ba9e4ca1784"} Original-Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0105.laposte.net (SMTP Server) with ESMTP id 4JyXv70wxjz16Hmd for ; Tue, 15 Feb 2022 08:35:47 +0100 (CET) X-mail-filterd: {"version":"1.3.4", "queueID":"4JyXv66qTgz16HmJ", "contextId":"ad2d2880-c2e5-460f-a85d-8698f54fc1d1"} X-lpn-mailing: LEGIT X-lpn-spamrating: 50 X-lpn-spamlevel: not-spam X-lpn-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrgedvvddrjeefgddutdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecunfetrffquffvgfdpggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffjgfkfgggtgfgsehtqhertddtreejnecuhfhrohhmpefmvghvihhnucggihhgohhurhhouhiguceokhgvrdhvihhgohhurhhouhigsehlrghpohhsthgvrdhnvghtqeenucggtffrrghtthgvrhhnpeekteejteffgeevgeegueegkeefgeekfeegtddtvefhffejgeefkefgfefgkeeltdenucfkphepvddrudegrdegtddrkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddrudegrdegtddrkeegpdhhvghloheprghrrghgohhgpdhmrghilhhfrhhomhepkhgvrdhvihhgohhurhhouhigsehlrghpohhsthgvrdhnvghtpdhnsggprhgtphhtthhopedupdhrtghpthhtohephhgvlhhpqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgpdhmohguvgepshhmthhpohhuth Original-Received: from aragog (arennes-652-1-310-84.w2-14.abo.wanadoo.fr [2.14.40.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mlpnf0105.laposte.net (SMTP Server) with ESMTPSA id 4JyXv66qTgz16HmJ for ; Tue, 15 Feb 2022 08:35:46 +0100 (CET) Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <878rudmm7g.fsf@laposte.net> (Kevin Vigouroux via Users list for the's message of "Mon, 14 Feb 2022 17:45:07 +0100") DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=lpn-wlmd; t=1644910553; bh=SedDoICGiy4AzDDLHbos52cQkFRX8ivbJm2G037jVmQ=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Uvsr5nA0iUfFlJM8jz7cE6trJrKn/+aSVe15b5CopF61zmXqQVw9ydDMAEbsCXcR16cvWsy8rpajwC+RssR756leiN0+0RgN1jtxaV5obZVaDX/HsEZ3TSzGpI2c9Bu3j51rMvvaskBQaXriLYb5t8g8m2UAZ/Et7np1xBXHo+c7Kv04Vd4zVHK/swqQwgEsPIu5Q1yVEeC6hDlgxqfqBk+wjh+yqvNOD6TxBPnavRiwRDjv90622L/OYfXPge1GoQIjGRfjndIQfHRUaEYnKY8QdYVX9w+STPZg3lIScFBnkhvN9HRjUUf0jKHYMZlCU7zQWvvqzoQhWGgN/8HXxw==; Received-SPF: pass client-ip=160.92.124.108; envelope-from=ke.vigouroux@laposte.net; helo=smtp-outgoing-2001.laposte.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135956 Archived-At: 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 =E2=80=98=F0=90=84=82=E2=80=99 indicates a potential i= ssue 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 " "))) =E2=9C=93 =E2=A4=B7 (global-mode-string ("" global-mode-string " ")) =E2=9C=93 =E2=A4=B7 ("" global-mode-string " ") =F0=90=84=82 =E2=A4=B7 "" ("" display-time-string) " " =E2=9C=93 =E2=A4=B7 void =F0=90=84=82 =E2=A4=B4 "" ("" display-time-string) " " =F0=90=84=82 =E2=86=92 ("" ("" display-time-string) " ") =F0=90=84=82 ("" ("" display-time-string) " ") =F0=90=84=82 =E2=A4=B7 "" "12:00" " " =F0=90=84=82 =E2=A4=B7 "12:00 " #+end_quote #+begin_quote ((global-mode-string ("" global-mode-string " "))) =E2=9C=93 =E2=A4=B7 (global-mode-string ("" global-mode-string " ")) =E2=9C=93 =E2=A4=B7 ("" global-mode-string " ") =F0=90=84=82 =E2=A4=B7 "" ("" display-time-string) " " =F0=90=84=82 =E2=A4=B7 "" "12:00" " " =F0=90=84=82 =E2=A4=B7 "12:00 " =E2=9C=93 =E2=A4=B7 void #+end_quote --=20 Kevin Vigouroux, Best regards