From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 22 23:51:54 2020 Received: (at submit) by debbugs.gnu.org; 23 Jun 2020 03:51:54 +0000 Received: from localhost ([127.0.0.1]:35202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnZyR-0003mp-Vk for submit@debbugs.gnu.org; Mon, 22 Jun 2020 23:51:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:32912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnZ98-0002XP-W7 for submit@debbugs.gnu.org; Mon, 22 Jun 2020 22:58:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnZ98-00088Z-Js for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2020 22:58:50 -0400 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]:39754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jnZ96-0002z5-MQ for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2020 22:58:50 -0400 Received: by mail-qt1-x82f.google.com with SMTP id o38so5678651qtf.6 for ; Mon, 22 Jun 2020 19:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=GS3em4H2lNcDyYYJVvaDB/2GlLLwxSyzpewHylN7Ho0=; b=Bp1SAPdJRCZCFTQkSq+mb1irDrS1Oj9/nj9rxHusIMG0OaB4pXcNwVrXU4ij4G1chz PzF+uz5bIe0CaF0U+iNBzwts3iH3VacZb7U6c+PjfquFX/ARO5LDTRhGru/fB0QWLdao vii5HeWU3XJr8LiAbjTQM+2UUKpICnu2i++ok9ZyslM4IBUAofUKpqyAAUsY0c7aZtXg Ffkd/5rrPKlcMxlHmmOQSRsqSiOthHKa4ImuwVPBWJHhThNzCHFX0wzzTXK+5UFycpop CZLW0Lcjk4LWPzIINFLQ3T6oTO1lBFv06xLGbXJJ8aeWb8Gvz+rBVon8RtzuI0a8J3l0 jxYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=GS3em4H2lNcDyYYJVvaDB/2GlLLwxSyzpewHylN7Ho0=; b=ig0TJTH7wQFSvpsKcYz6D/Lb7bDqahiTiFXsYcZ+wUnsu62U50vhvo0LCOnsoFiRpf m5nuGTxvrWkCUjnfPABAF495L7FKv3eVx4YbSzVhVSXPwjhEbowtG9jVExwYVbwVSAnf W0d7EZSQ0u+s0rVpnwF5VHGVvLosL3v/gF/nbDhwK/buVOtotDkFzNiv7tTl+vJGmwE0 1BzGpguROKJU57abgkqolVPOc3gbPHpGIofIrl5s3pZBTlnz5QBuQg2AR4WwObTE4JVl WrdF4qfHqz9y0sVDXhf1wP5/eHPHKr8MLpcWmjVTOosVYkfykubJh0veZdTnuVRXEq+Y Z0WA== X-Gm-Message-State: AOAM530Vj49pcAgtQeGJ9q+f78XrnOUhDU5iv3vQxkHgSINsRlAHBUCE lpPwCMAAhc/y72nVw9cPrnXv5HgIqAnUaA== X-Google-Smtp-Source: ABdhPJzEUhIHMvjQ8akYU5ac9A999OCeIqpTZtgy8yEP4F+NYrp1Xt2vWwi8Elq1ruadUN1bq01OZQ== X-Received: by 2002:ac8:42ce:: with SMTP id g14mr19555174qtm.117.1592881125754; Mon, 22 Jun 2020 19:58:45 -0700 (PDT) Received: from [192.168.1.115] ([177.127.147.117]) by smtp.gmail.com with ESMTPSA id n1sm15621711qkf.54.2020.06.22.19.58.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2020 19:58:45 -0700 (PDT) From: Humberto Sgrott Reis Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: 26.3; format-mode-line and %p Message-Id: Date: Mon, 22 Jun 2020 22:58:41 -0400 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::82f; envelope-from=hsgrott@gmail.com; helo=mail-qt1-x82f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 22 Jun 2020 23:51:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) M-x ielm > (setq mode-line-format "(%p)") Hit enter numerous times to grow the buffer. The percentage will be displayed with a percent sign at the end, and will be enclosed in = parens. > (setq mode-line-format (:eval (format-mode-line "(%p)"))) The percentage will be displayed without a percent sign at the end, and the right paren will be overwritten. In GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 = Version 10.14.3 (Build 18D109)) of 2019-09-02 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.1894 Recent messages: previous-line: Beginning of buffer [5 times] next-line: End of buffer [6 times] Print buffer *ielm*? n ns-print-buffer: Canceled funcall-interactively: End of buffer next-line: End of buffer [6 times] Quit next-line: End of buffer [3 times] Quit mwheel-scroll: End of buffer kill-region: Text is read-only: # Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: pt_BR.UTF-8 locale-coding-system: utf-8-unix Major mode: IELM Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils ielm easymenu pp comint ansi-color ring elec-pair time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 212685 10286) (symbols 48 20424 2) (miscs 40 58 195) (strings 32 29932 2153) (string-bytes 1 802080) (vectors 16 35484) (vector-slots 8 728369 10374) (floats 8 50 272) (intervals 56 609 0) (buffers 992 12)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 23 09:13:03 2020 Received: (at 42017) by debbugs.gnu.org; 23 Jun 2020 13:13:03 +0000 Received: from localhost ([127.0.0.1]:35723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnijW-0007JB-M8 for submit@debbugs.gnu.org; Tue, 23 Jun 2020 09:13:03 -0400 Received: from mail1476c50.megamailservers.eu ([91.136.14.76]:57870 helo=mail118c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnijS-0007IZ-Sy; Tue, 23 Jun 2020 09:13:01 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1592917971; bh=MZvAxhAib3UY83a6VoFj0iZ2sJCI7FAJHjLw/VHDfis=; h=From:Date:Subject:Cc:To:From; b=Rx7R18MTra/YXCXuU3qKWK/vdVCLLR2in6M4XOkeKePDabpmfjTsOVMbWUCZDYWsd uym9Kqpf9luwSxudSlHKRdPKWOErobibr1RGs6g9ni8JC4LYyg/4+SL98/PNH6PPFI nbfsJP2N5F47FUZxoBtcLjXQ09dCEzN2fUKbW08M= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail118c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 05NDCnki022073; Tue, 23 Jun 2020 13:12:51 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Date: Tue, 23 Jun 2020 15:12:49 +0200 Subject: bug#42017: 26.3; format-mode-line and %p To: Humberto Sgrott Reis Message-Id: <729DF384-A2D6-42A2-B844-D46D239EEB40@acm.org> X-Mailer: Apple Mail (2.3445.104.14) X-CTCH-RefID: str=0001.0A782F22.5EF1FF38.00A0, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=KaGsTjQD c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=g3Fl5-Mrkomqtfseh7wA:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 42017 Cc: 42017@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) tag 42017 notabug close 42017 done > (setq mode-line-format (:eval (format-mode-line "(%p)"))) The result of the form after :eval is the mode-line format string to = use, not the final string itself. What you observe is the effect of using "(25%)" (for example) as a = mode-line format string: since "%)" is not a valid format specification, = it produces no characters. Thanks for reporting it just the same, and please do not let this = dissuade you from reporting things you think aren't right in the future! From unknown Mon Jun 16 23:38:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 22 Jul 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator