From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#14957: 24.3.50; Flyspell language visible in mode line Date: Tue, 14 Jan 2014 12:04:00 -0500 Message-ID: <6ia9ey337j.fsf@fencepost.gnu.org> References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86fvor6itj.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389719111 24010 80.91.229.3 (14 Jan 2014 17:05:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2014 17:05:11 +0000 (UTC) Cc: Sebastien Vauban To: 14957@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 14 18:05:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W37QN-0004T9-C7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jan 2014 18:05:11 +0100 Original-Received: from localhost ([::1]:49521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W37QM-0003l4-Tv for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jan 2014 12:05:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W37QF-0003di-W2 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 12:05:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W37QE-0007dD-So for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 12:05:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W37QE-0007d2-Q5 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 12:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W37QE-0005K6-CF for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 12:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jan 2014 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14957 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14957-submit@debbugs.gnu.org id=B14957.138971904520370 (code B ref 14957); Tue, 14 Jan 2014 17:05:02 +0000 Original-Received: (at 14957) by debbugs.gnu.org; 14 Jan 2014 17:04:05 +0000 Original-Received: from localhost ([127.0.0.1]:50537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W37PI-0005IR-E1 for submit@debbugs.gnu.org; Tue, 14 Jan 2014 12:04:04 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:58541) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W37PG-0005I4-42 for 14957@debbugs.gnu.org; Tue, 14 Jan 2014 12:04:02 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1W37PF-0006UV-4i; Tue, 14 Jan 2014 12:04:01 -0500 X-Spook: underground [Hello to all my friends and fans in X-Ran: ?C}QJG~%~-(AGD+_",7d`"z-UkpX^r^4U_|NP>VFcg>m>e5\:W`tU\^84wAOI[0IT`(Gii X-Hue: green X-Attribution: GM In-Reply-To: <86fvor6itj.fsf@somewhere.org> (Sebastien Vauban's message of "Tue, 14 Jan 2014 09:58:32 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83474 Archived-At: Following message was posted via usenet and so does not show up in bug tracker. I'm not going to mention this issue again. "Sebastien Vauban" wrote: > Hello Michael, > > Michael Heerdegen wrote: >>> (add-to-list 'mode-line-format ...) >> >> That's not good. `mode-line-format' "automatically becomes >> buffer-local when set" (see C-h v). Your `add-to-list' only >> manipulates the `mode-line-format' of the current buffer when your >> code is evaluated (*scratch*, probably). >> >> You have to modify the default value, like this: >> >> (setq-default mode-line-format >> (cons >> '(:eval >> (let ((dict (and (featurep 'ispell) >> (or ispell-local-dictionary >> ispell-dictionary)))) >> (and dict >> (concat " [" >> (propertize (substring dict 0 2) >> 'face 'mode-line-highlight) >> "]")))) >> (default-value 'mode-line-format))) >> >> Does that help? > > It does and did. > > Though, when opening some types of files (?) [1], I just observed that th= ere is > an error message generated: > > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 File mode specification error: (wrong-type-argument buffer-or= -string-p > =E2=94=82 (:eval (let ((dict (and (featurep (quote ispell)) (not buffer= -read-only) > =E2=94=82 (or ispell-local-dictionary ispell-dictionary)))) (and dict (= propertize > =E2=94=82 (concat " " (substring dict 0 2)) (quote face) (quote > =E2=94=82 mode-line-highlight)))))) > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > I'm not sure what to understand from that... That `mode-line-format' must= be > a string? Hence, how do we put the `eval' stuff? > > Best regards, > Seb > > [1] Opening a file with a `.csv' extension.