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: How to analyze the value of `mode-line-misc-info'? Date: Mon, 14 Feb 2022 17:45:07 +0100 Message-ID: <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="11959"; 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 Mon Feb 14 17:46:49 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 1nJeUz-0002wR-2X for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Feb 2022 17:46:49 +0100 Original-Received: from localhost ([::1]:58782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJeUx-00039S-MN for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Feb 2022 11:46:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJeTd-00038o-8K for help-gnu-emacs@gnu.org; Mon, 14 Feb 2022 11:45:25 -0500 Original-Received: from smtp-outgoing-1802.laposte.net ([160.92.124.103]:37122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJeTZ-0002Mw-26 for help-gnu-emacs@gnu.org; Mon, 14 Feb 2022 11:45:24 -0500 X-mail-filterd: {"version":"1.3.4", "queueID":"4Jy97S4ghDznTTg", "contextId":"4141b767-bc3c-46bb-810d-2228e2df2c3d"} Original-Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0113.laposte.net (SMTP Server) with ESMTP id 4Jy97S4ghDznTTg for ; Mon, 14 Feb 2022 17:45:08 +0100 (CET) X-mail-filterd: {"version":"1.3.4", "queueID":"4Jy97S3VsTznTV1", "contextId":"b5bb4223-4cdd-4578-8a36-bb98e52de37e"} X-lpn-mailing: LEGIT X-lpn-spamrating: 50 X-lpn-spamlevel: not-spam X-lpn-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrgedvvddrjedvgdekjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfntefrqffuvffgpdggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgfgggtgfesthhqredttderjeenucfhrhhomhepmfgvvhhinhcugghighhouhhrohhugicuoehkvgdrvhhighhouhhrohhugieslhgrphhoshhtvgdrnhgvtheqnecuggftrfgrthhtvghrnhepleekledugfegvdekfeekueelkedvleejveegleeludffveduuedtkefhvdelvddtnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppedvrddugedrgedtrdekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvrddugedrgedtrdekgedphhgvlhhopegrrhgrghhoghdpmhgrihhlfhhrohhmpehkvgdrvhhighhouhhrohhugieslhgrphhoshhtvgdrnhgvthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehhvghlphdqghhnuhdqvghmrggtshesghhnuhdrohhrghdpmhhouggvpehsmhhtphhouhht 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 mlpnf0113.laposte.net (SMTP Server) with ESMTPSA id 4Jy97S3VsTznTV1 for ; Mon, 14 Feb 2022 17:45:08 +0100 (CET) Mail-Followup-To: help-gnu-emacs@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=lpn-wlmd; t=1644857108; bh=o2tgJsSg2RJ8faNKjfkYuYR7D7cQGw+R+WYGqJGy/NI=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OJEjp7sH0VLNRyJHA4AAnonyLtMhzaAAqBY4CM5VlwNpa1KQRyz4sDJ16kgrynoq4AbYwfp5glIl1J34i8seMD8kcZxs8rb+Kjxvv/yVvf/2fHos/y/5KJvW7ThcF5kYoPS8CqeQ3/p+VNX1sMvAicPtON/mf016vxRTEVSKvaq2UF0K6rn/mxW9GdtRDHBa8lgg1QTcVS9Dc+qX+mNUHID3zLMbTIRaSlT86SsTuhVHW5GY4+mz788CHE/u2JCRwT0Rxvk8Oed0IT49l8tlq7qjQ9g20N950jGxmGZaolbVr0beDhXwh5dQpGpmshArSPZYfgtESBLG4mdDzFenbQ==; Received-SPF: pass client-ip=160.92.124.103; envelope-from=ke.vigouroux@laposte.net; helo=smtp-outgoing-1802.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:135946 Archived-At: #+begin_src emacs-lisp ELISP> mode-line-misc-info ((global-mode-string ("" global-mode-string " "))) #+end_src I don=E2=80=99t understand why there are two nested lists. I thought the se= cond list was used as a conditional statement (e.g. `global-mode-string' returns non-`nil') to finally concatenate several strings. =E2=80=A2 Emacs Lisp Ref. manual =E2=80=94 23.4.2 =E2=80=9CThe Data Structu= re of the Mode Line=E2=80=9D - https://www.gnu.org/software/emacs/manual/html_node/elisp/Mode-Line-Data.= html --=20 Kevin Vigouroux, Best regards