From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#39265: 26.3; format-mode-line with FACE argument Date: Sat, 25 Jan 2020 00:05:25 +0900 Message-ID: <86o8ussxmy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53792"; mail-complaints-to="usenet@ciao.gmane.io" To: 39265@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 24 16:06:17 2020 Return-path: Envelope-to: geb-bug-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 1iv0XI-000Dx2-9M for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Jan 2020 16:06:16 +0100 Original-Received: from localhost ([::1]:43478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iv0XH-0006n9-5L for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Jan 2020 10:06:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50100) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iv0X5-0006n0-TT for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2020 10:06:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iv0X4-0008Fy-Jr for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2020 10:06:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iv0X4-0008Fu-GG for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2020 10:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iv0X4-0003ZP-CE for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2020 10:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jan 2020 15:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39265 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157987833513686 (code B ref -1); Fri, 24 Jan 2020 15:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jan 2020 15:05:35 +0000 Original-Received: from localhost ([127.0.0.1]:54597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv0Wd-0003Yg-7e for submit@debbugs.gnu.org; Fri, 24 Jan 2020 10:05:35 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv0Wb-0003YY-I5 for submit@debbugs.gnu.org; Fri, 24 Jan 2020 10:05:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49973) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iv0Wa-0006Yw-3L for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2020 10:05:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iv0WY-00086r-Op for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2020 10:05:31 -0500 Original-Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]:36757) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iv0WY-00086X-IB for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2020 10:05:30 -0500 Original-Received: by mail-pj1-x1041.google.com with SMTP id gv17so992329pjb.1 for ; Fri, 24 Jan 2020 07:05:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=V9lSDhSjxRmHB2wor4EiCCoKpPm2d6GoYQSDhEXyxds=; b=KkMDluSGWvphlypPgNwpBeHtAcnHcZ0xk6iJXbLKBBCRrzJvKiPDBZr1jGb9j3Xc07 aIGCrotMjtx/rvskdwdcWUa/o3ta1AEBVIwCstVGRzhynHgZjGtdCIx51ZVJSQ3n+nrS bjcUDyQItnandigMwPhYQMyUZatP32wOflcIzi57l1SlTlWrT14dsgR0Y+XdgLRHjGNb A+7jMAUTWLVWhx6g4RNfjAcFUeKSo6LPFhQSD1AD/RNVtRKZh2mEpam1WnzkKnMcwHG4 BYUB/MlZgLY/I/wC965Bm4GgcCfWPr1US11EdC0xf9w670qAdCckdWVpz7rJo5CQVsgk y+lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=V9lSDhSjxRmHB2wor4EiCCoKpPm2d6GoYQSDhEXyxds=; b=NciDzkIKtYdswjzisrle7STvaHBpBJMEiXaT8bk/LkXkdkgWxTenMphtH1Q4jBEu80 DvlA5Nj0s329ZTp1lMW8V+X7Aeq30ihFnpF+n/MD5m6QOwPS/vkt5n0TSEUvxTmhP3Ef vo3eBEqtniraYGya+EBlTB5B8GrzRksJuLT+Y6dP9OwjvY4tpad5rjLSzcidwaoRkG4u FSvmUiUI9lW6G4iFawlDxOUOt7e3ftRu3AeYfW21vi+FDqemVL+RgaDHB5Val3psicBx jVi/LWGW3i5R+qLMS+7WRdTL4PnA9bqucJWv7afwczSBebytYsEB4KCubH9xjXFBqzWa wbBw== X-Gm-Message-State: APjAAAU9S/Mms8F0qGN3uMbOQ1AVWkuNvUE1+upqu/AnOk+6bqCwLPOr apEAiFDkh6DrOZfkuz2OucmKY8GU X-Google-Smtp-Source: APXvYqxHFupeW/LgPXZ6GceRkccW9ulOdP7Ts18LSt0qs+D5Qld9dUvGVoARS245lvXvxHPi/PwHvw== X-Received: by 2002:a17:902:d898:: with SMTP id b24mr4013167plz.133.1579878329344; Fri, 24 Jan 2020 07:05:29 -0800 (PST) Original-Received: from HP (east42-p111.eaccess.hi-ho.ne.jp. [219.121.173.112]) by smtp.gmail.com with ESMTPSA id l10sm6768418pjy.5.2020.01.24.07.05.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Jan 2020 07:05:28 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175223 Archived-At: #'format-mode-line assumes all characters of a string have a same 'face property value and checks only the first character. (format-mode-line (concat "A" (propertize "XYZ" 'face 'region)) 'highlight) => #("AXYZ" 0 1 (face highlight) 1 4 (face highlight)) #'format-mode-line merges the 'face property value of the first character of a string with FACE argument. It is not ducumented at all. (format-mode-line (propertize "ABC" 'face 'region) 'highlight) => #("ABC" 0 3 (face (region highlight))) #'format-mode-line called with FACE=t should use 'mode-line or 'mode-line-inactive instead of 't, but it treats 't as a face. (format-mode-line "ABC" t) => #("ABC" 0 3 (face t)) In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 built on CIRROCUMULUS Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd Windowing system distributor 'Microsoft Corp.', version 10.0.18363 Recent messages: Mark set Undo! Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2 Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Lisp Interaction Minor modes in effect: diff-auto-refine-mode: t display-time-mode: t 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: (ispell rect tabify term/bobcat descr-text mailclient browse-url cus-edit cus-start cus-load wid-edit info crm eieio-opt speedbar sb-image ezimage dframe shadow emacsbug network-stream nsm starttls tls gnutls mailalias smtpmail auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs sendmail sort mail-extr message rmc puny 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 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader compare-w diff-mode easy-mmode find-func cl-extra pp ibuf-ext ibuffer ibuffer-loaddefs seq thingatpt help-fns radix-tree misearch multi-isearch help-mode easymenu cl-print byte-opt gv bytecomp byte-compile cl-loaddefs cl-lib cconv debug time elec-pair time-date mule-util japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars 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 w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 213588 78115) (symbols 48 51769 1) (miscs 40 79 607) (strings 32 121478 3731) (string-bytes 1 2928298) (vectors 16 31694) (vector-slots 8 1265739 31616) (floats 8 75 438) (intervals 56 15946 2009) (buffers 992 19))