From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 26 09:00:31 2013 Received: (at submit) by debbugs.gnu.org; 26 Jul 2013 13:00:32 +0000 Received: from localhost ([127.0.0.1]:50885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2hdG-0003Tp-8Q for submit@debbugs.gnu.org; Fri, 26 Jul 2013 09:00:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43915) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2hdC-0003ST-70 for submit@debbugs.gnu.org; Fri, 26 Jul 2013 09:00:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2hd3-0001b8-Qr for submit@debbugs.gnu.org; Fri, 26 Jul 2013 09:00:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2hd3-0001b2-Ng for submit@debbugs.gnu.org; Fri, 26 Jul 2013 09:00:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2hd0-0001Zx-Hp for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2013 09:00:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2hcw-0001Ze-KH for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2013 09:00:14 -0400 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:58234 helo=mail.missioncriticalit.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2hcw-0000xE-Dg for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2013 09:00:10 -0400 Received: from MUNDANEUM (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 4A4DA5007CD for ; Fri, 26 Jul 2013 14:59:38 +0200 (CEST) From: Sebastien Vauban To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Flyspell language visible in mode line Date: Fri, 26 Jul 2013 14:59:29 +0200 Message-ID: <86y58teatq.fsf@missioncriticalit.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (--) Hello, Here is a feature request. Being forced to write evenly in two different languages (French, my mother tongue, and English), I very often am editing a buffer not being sure of which dictionary is currently used by Ispell/Flyspell. I think it'd be great to see the language next to "Fly" in the mode line. For example, something such as "Fly[FR]" or "Fly[EN]". Of course, it would be good to have a default mapping between the long dictionary names, and what must go in the mode line, so that we can write the language in a couple of letters (maybe up to "Fly[en_US]" to cover the corner case of the "dialects"). Best regards, Seb From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 26 10:21:30 2013 Received: (at 14957) by debbugs.gnu.org; 26 Jul 2013 14:21:31 +0000 Received: from localhost ([127.0.0.1]:51239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2itd-0000zO-Qb for submit@debbugs.gnu.org; Fri, 26 Jul 2013 10:21:30 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34015) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2ita-0000yA-6n for 14957@debbugs.gnu.org; Fri, 26 Jul 2013 10:21:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpZPn/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2JUoc4A6R6gV6DEw X-IPAS-Result: Av8EABK/CFFFpZPn/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2JUoc4A6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="19903016" Received: from 69-165-147-231.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.231]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 26 Jul 2013 10:21:14 -0400 Received: by pastel.home (Postfix, from userid 20848) id ED1D366283; Fri, 26 Jul 2013 10:21:19 -0400 (EDT) From: Stefan Monnier To: Sebastien Vauban Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line Message-ID: References: <86y58teatq.fsf@missioncriticalit.com> Date: Fri, 26 Jul 2013 10:21:19 -0400 In-Reply-To: <86y58teatq.fsf@missioncriticalit.com> (Sebastien Vauban's message of "Fri, 26 Jul 2013 14:59:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 14957 Cc: 14957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (/) > I think it'd be great to see the language next to "Fly" in the mode > line. For example, something such as "Fly[FR]" or "Fly[EN]". That'd be nice, especially if we make it active so that you can right click on it to select another language. Patches very welcome. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 17 12:48:03 2013 Received: (at 14957) by debbugs.gnu.org; 17 Sep 2013 16:48:03 +0000 Received: from localhost ([127.0.0.1]:44388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLyRW-00039E-T5 for submit@debbugs.gnu.org; Tue, 17 Sep 2013 12:48:03 -0400 Received: from mout.web.de ([212.227.15.14]:57230) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLyRU-00038i-RG for 14957@debbugs.gnu.org; Tue, 17 Sep 2013 12:48:01 -0400 Received: from drachen.dragon ([90.186.181.59]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0MV4hR-1VPfju35tl-00YTk6 for <14957@debbugs.gnu.org>; Tue, 17 Sep 2013 18:47:54 +0200 From: Michael Heerdegen To: Stefan Monnier Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line In-Reply-To: (Stefan Monnier's message of "Fri, 26 Jul 2013 10:21:19 -0400") References: <86y58teatq.fsf@missioncriticalit.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Date: Tue, 17 Sep 2013 18:47:50 +0200 Message-ID: <87wqmfz96x.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:twvPuhPNXCV2ZaumJrq5rguNA8RoOOCbZ/57cOi6tUsgPudhovs bE7S6v67kjwp6LYP4fMTo6pTb8fDZINC8cpPR/DPZXgKMAjh5dQwHMCgz41jDd02NCXHxgm cbb3Ct7IlEHO1r/vfXh5l6xL7Zi9YkUdMxceUVzdusEOh0D2iqxN8jCXBQDp1qLwDGeM8UU FQ0kScw8NzM/mXEMhTCEQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14957 Cc: Sebastien Vauban , 14957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) Hi Stefan, some comments: > > I think it'd be great to see the language next to "Fly" in the mode > > line. For example, something such as "Fly[FR]" or "Fly[EN]". > > That'd be nice, especially if we make it active so that you can right > click on it to select another language. > Patches very welcome. I think this should not be restricted to flyspell, I also want to know the current dictionary before doing M-$ (`ispell-word'), for example. For that purpose, I just add ,---------------------------------------------------------------------- | (:eval | (let ((dict (and (featurep 'ispell) | (or ispell-local-dictionary | ispell-dictionary)))) | (and dict | (concat " " | (propertize (substring dict 0 2) | 'face 'mode-line-shadow))))) `---------------------------------------------------------------------- to `mode-line-format' (`mode-line-shadow' just shows it in gray). About right clicking to select another language: I think most people would want a handy command to toggle between two or three dictionaries they frequently use. For example, I'm a native German speaker. When composing an Email, I want to be able to switch between German and English dict with one key - everything else is annoying. I _never_ need any other dict. Maybe that's what most people would want to use? I use this code for that: --8<---------------cut here---------------start------------->8--- (setq-default flyspell-default-dictionary "american") (defun my-ispell-toggle-dictionary () (interactive) "Toggle local dictionary between German and American." (require 'ispell) (pcase (or ispell-local-dictionary ispell-dictionary) (`"american" (ispell-change-dictionary "deutsch-alt8")) (_ (ispell-change-dictionary "american"))) (force-mode-line-update)) (defun my-flyspell-toggle-dictionary () "Toggle local dictionary. Turn on `flyspell-mode' if off." (interactive) (my-ispell-toggle-dictionary) (ignore-errors (when flyspell-mode (flyspell-buffer)))) --8<---------------cut here---------------end--------------->8--- Regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 08 15:46:48 2013 Received: (at 14957) by debbugs.gnu.org; 8 Nov 2013 20:46:48 +0000 Received: from localhost ([127.0.0.1]:42379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vesx5-0006vR-Re for submit@debbugs.gnu.org; Fri, 08 Nov 2013 15:46:48 -0500 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:31806 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vesx0-0006v4-Lb for 14957@debbugs.gnu.org; Fri, 08 Nov 2013 15:46:46 -0500 Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.4.62]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 15B715008AF; Fri, 8 Nov 2013 21:49:10 +0100 (CET) From: "Sebastien Vauban" To: Michael Heerdegen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line Organization: Sebastien Vauban References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> X-Url: Under construction... X-Archive: encrypt Date: Fri, 08 Nov 2013 21:46:26 +0100 In-Reply-To: <87wqmfz96x.fsf@web.de> (Michael Heerdegen's message of "Tue, 17 Sep 2013 18:47:50 +0200") Message-ID: <86a9hevcyl.fsf@somewhere.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 14957 Cc: 14957@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) Hi Michael, Michael Heerdegen wrote: >>> I think it'd be great to see the language next to "Fly" in the mode >>> line. For example, something such as "Fly[FR]" or "Fly[EN]". >> >> That'd be nice, especially if we make it active so that you can right >> click on it to select another language. >> Patches very welcome. > > I think this should not be restricted to flyspell, I also want to know > the current dictionary before doing M-$ (`ispell-word'), for example. > For that purpose, I just add > > ,---------------------------------------------------------------------- > | (:eval > | (let ((dict (and (featurep 'ispell) > | (or ispell-local-dictionary > | ispell-dictionary)))) > | (and dict > | (concat " " > | (propertize (substring dict 0 2) > | 'face 'mode-line-shadow))))) > `---------------------------------------------------------------------- > > to `mode-line-format' (`mode-line-shadow' just shows it in gray). I have the following minimal Emacs configuration file: --8<---------------cut here---------------start------------->8--- (setq ispell-dictionary "francais") ;; spelling checker program (setq ispell-program-name "aspell") (message "<<< Before add-to-list >>>") (add-to-list 'mode-line-format '(:eval (let ((dict (and (featurep 'ispell) (or ispell-local-dictionary ispell-dictionary)))) (and dict (concat " [" (propertize (substring dict 0 2) 'face 'mode-line-highlight) "]")))) t) (message "<<< After add-to-list >>>") ;; enable on-the-fly spell checking (add-hook 'text-mode-hook (lambda () (flyspell-mode 1))) ;; prevent flyspell from finding mistakes in the code (add-hook 'prog-mode-hook (lambda () ;; `ispell-comments-and-strings' (flyspell-prog-mode))) --8<---------------cut here---------------end--------------->8--- And I open the following Org file: --8<---------------cut here---------------start------------->8--- #+TITLE: ECM pour Flyspell #+Time-stamp: <2013-11-08> #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en * D=C3=A9veloppement :PROPERTIES: :CATEGORY: Dev :END: ** DONE Engager firme de relations publiques :mail: DEADLINE: <2013-02-14 Thu> :LOGBOOK: CLOCK: [2013-02-05 Tue 09:00]--[2013-02-05 Tue 10:11] =3D> 1:11 - State "TODO" -> "STRT" [2013-02-05 Tue 17:48] - State "TODO" -> "STRT" [2013-08-19 Mon 15:16] :END: ** TODO Appeler Laura pour bug dans le code shell :phone: Le bout de code suivant a un probl=C3=A8me. #+begin_src sh wher command #+end_src --8<---------------cut here---------------end--------------->8--- I expect to see the language indicator, but it is not displayed in the mode-line. Checking the value of `mode-line-format', it seems that the code to support= it has not been added to that variable!? Though, that code has been executed, as messages before and after it are we= ll displayed in the *Messages* buffer. See demo at http://screencast.com/t/86M9ZPl8lUx. Any idea about the problem? Best regards, Seb --=20 Sebastien Vauban From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 08 16:30:48 2013 Received: (at 14957) by debbugs.gnu.org; 8 Nov 2013 21:30:48 +0000 Received: from localhost ([127.0.0.1]:42555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vetdf-00088S-OE for submit@debbugs.gnu.org; Fri, 08 Nov 2013 16:30:48 -0500 Received: from mout.web.de ([212.227.15.3]:55465) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vetda-000886-52 for 14957@debbugs.gnu.org; Fri, 08 Nov 2013 16:30:44 -0500 Received: from drachen.dragon ([90.187.149.156]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0Lc8n7-1W45Mt3X9B-00jclM for <14957@debbugs.gnu.org>; Fri, 08 Nov 2013 22:30:35 +0100 From: Michael Heerdegen To: Sebastien Vauban Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> Date: Fri, 08 Nov 2013 22:30:31 +0100 In-Reply-To: <86a9hevcyl.fsf@somewhere.org> (Sebastien Vauban's message of "Fri, 08 Nov 2013 21:46:26 +0100") Message-ID: <87mwled1jc.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:1IH5tx7gZjpSHpIjPhEskYoEZvFFSEDf5XeBA04WHCahCyyoUTp En8JtDoCSSeyVtytkiwG58k7LNyu5zHtKT7jfUCTYRQoV4mg9OXf0V2LoIq2NRo7ErXc9+W tGFZtd5PFmacxdkKugRNKp2qv/BnylSoYmh33lz3p3PxNtFfCAGNgpsh8uUhmky4ri8TUtJ i0dsn2ketuWTdn1dpBBLg== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14957 Cc: 14957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) Hi Sebastien, > (add-to-list 'mode-line-format > '(:eval > (let ((dict (and (featurep 'ispell) > (or ispell-local-dictionary > ispell-dictionary)))) > (and dict > (concat " [" > (propertize (substring dict 0 2) > 'face 'mode-line-highlight) > "]")))) 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: --8<---------------cut here---------------start------------->8--- (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))) --8<---------------cut here---------------end--------------->8--- Does that help? Regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 12 08:30:24 2013 Received: (at 14957) by debbugs.gnu.org; 12 Nov 2013 13:30:24 +0000 Received: from localhost ([127.0.0.1]:48348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VgE2w-0000JA-PP for submit@debbugs.gnu.org; Tue, 12 Nov 2013 08:30:23 -0500 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:35957 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VgE2s-0000IO-K6 for 14957@debbugs.gnu.org; Tue, 12 Nov 2013 08:30:20 -0500 Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 20E2D500D74; Tue, 12 Nov 2013 14:32:48 +0100 (CET) From: "Sebastien Vauban" To: Michael Heerdegen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line Organization: Sebastien Vauban References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> X-Url: Under construction... X-Archive: encrypt Date: Tue, 12 Nov 2013 14:29:57 +0100 In-Reply-To: (Michael Heerdegen's message of "Fri, 08 Nov 2013 22:30:31 +0100") Message-ID: <86bo1ppx2i.fsf@somewhere.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 14957 Cc: 14957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) Hello Michael, Michael Heerdegen wrote: >> (add-to-list 'mode-line-format >> '(:eval >> (let ((dict (and (featurep 'ispell) >> (or ispell-local-dictionary >> ispell-dictionary)))) >> (and dict >> (concat " [" >> (propertize (substring dict 0 2) >> 'face 'mode-line-highlight) >> "]")))) > > 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? Yes, it does. However, I still wonder how to put the language indicator at the *end* of the modeline -- I tried this at first, but I'm now sure it's not a good idea. We can't do that by inverting the two components in the above cons expression. And it seems I'm not yet bilingual enough in Lisp... FYI, there is one minor annoyance; I'd like to see the language indicator only where it makes sense, that is NOT in (almost) every buffer. For example, I do see "fr" (my default dictionary) in the Emacs manuals, which is twice wrong: - they're in English, and - they're read-only... I guess the read-only feature is the way to specify (in an automatic way) the visibility (by default) of that feature. WDYT? In such a case, we simply have to add a condition in the above "and" expression. Best regards, Seb -- Sebastien Vauban From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 19:04:03 2013 Received: (at 14957) by debbugs.gnu.org; 14 Nov 2013 00:04:03 +0000 Received: from localhost ([127.0.0.1]:50845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VgkPi-0006xI-5O for submit@debbugs.gnu.org; Wed, 13 Nov 2013 19:04:02 -0500 Received: from plane.gmane.org ([80.91.229.3]:43678) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VgkPg-0006wt-JM for 14957@debbugs.gnu.org; Wed, 13 Nov 2013 19:04:01 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VgkPb-0003Xv-7f for 14957@debbugs.gnu.org; Thu, 14 Nov 2013 01:03:55 +0100 Received: from mout.web.de ([212.227.17.11]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VgkPP-0003IE-9S for public-14957-ubl+/3LiMTaZdePnXv/OxA@plane.gmane.org; Thu, 14 Nov 2013 01:03:43 +0100 Received: from drachen.dragon ([90.187.136.19]) by smtp.web.de (mrweb003) with ESMTPA (Nemesis) id 0Ljahc-1V9tcz1Al6-00bfVH for <14957-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org>; Thu, 14 Nov 2013 01:03:42 +0100 From: Michael Heerdegen To: Sebastien Vauban Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86bo1ppx2i.fsf@somewhere.org> Date: Thu, 14 Nov 2013 01:03:38 +0100 In-Reply-To: <86bo1ppx2i.fsf@somewhere.org> (Sebastien Vauban's message of "Tue, 12 Nov 2013 14:29:57 +0100") Message-ID: <8761rvc0it.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:y4xN2IsZB4EbPGZbx9bsQ2qEqExMB62L8Ms/bsnyNvc57qyy/t8 uq1DQQQNUzbJVaodL0eZixL5ncgknX8XsDng1ggN3yuY/9Ex0IdcytEJSCcmXvzwq4H9psn +f89HYHobR8+Cl7V+2M8F95B50SiXMIzKDakoBU0X+c7peCWiB8OrkW0ltLnwdPVzvqIWni 0YHiW0o7Awv12gNyz3K8A== X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 14957 Cc: Michael Heerdegen , public-14957-ubl+/3LiMTaZdePnXv/OxA@plane.gmane.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) "Sebastien Vauban" writes: > However, I still wonder how to put the language indicator at the *end* > of the modeline -- I tried this at first, but I'm now sure it's not a > good idea. > We can't do that by inverting the two components in the above cons > expression. And it seems I'm not yet bilingual enough in Lisp... Yes, cons is wrong here, better use e.g. `append'. You should boil yourself some tea, and then read about lists: (info "(elisp) Lists") > FYI, there is one minor annoyance; I'd like to see the language > indicator only where it makes sense, that is NOT in (almost) every > buffer. For example, I do see "fr" (my default dictionary) in the > Emacs manuals, which is twice wrong: > > - they're in English, and > - they're read-only... > > I guess the read-only feature is the way to specify (in an automatic > way) the visibility (by default) of that feature. WDYT? In such a > case, we simply have to add a condition in the above "and" expression. Yes, that sounds reasonable. @Everybody: would it make sense to add a new variable `mode-line-dictionary' that shows the abbreviated name of the current dictionary when appropriate? Spell checking is essential when editing any buffer, so showing the dictionary is not less useful than showing the input method. People that don't want to see it anyway could just customize the variable to nil. We could also make it display something only when the dictionary is not the default one. Regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 14:06:22 2013 Received: (at submit) by debbugs.gnu.org; 14 Nov 2013 19:06:22 +0000 Received: from localhost ([127.0.0.1]:52565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vh2FB-000094-Lt for submit@debbugs.gnu.org; Thu, 14 Nov 2013 14:06:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35226) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vh2F9-00008n-F8 for submit@debbugs.gnu.org; Thu, 14 Nov 2013 14:06:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vh2Eu-0005Qj-TO for submit@debbugs.gnu.org; Thu, 14 Nov 2013 14:06:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh2Eu-0005Qf-Pq for submit@debbugs.gnu.org; Thu, 14 Nov 2013 14:06:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh2En-0000hs-F4 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 14:06:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vh2Ef-0005Kg-Iw for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 14:05:57 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:12497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh2Ef-0005Jn-71 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 14:05:49 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFsr+bb/2dsb2JhbABEuzWDWRdzgh8BBVYjEAsOJhIUGA0kiCTBLYlShzgDiGGcGYFegxU X-IPAS-Result: Av8EABK/CFFsr+bb/2dsb2JhbABEuzWDWRdzgh8BBVYjEAsOJhIUGA0kiCTBLYlShzgDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="37909295" Received: from 108-175-230-219.dsl.teksavvy.com (HELO pastel.home) ([108.175.230.219]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Nov 2013 14:05:46 -0500 Received: by pastel.home (Postfix, from userid 20848) id DD9A160CE2; Thu, 14 Nov 2013 14:05:43 -0500 (EST) From: Stefan Monnier To: "Sebastien Vauban" Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line Message-ID: References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86bo1ppx2i.fsf@somewhere.org> <86bo1np8nt.fsf@somewhere.org> Date: Thu, 14 Nov 2013 14:05:43 -0500 In-Reply-To: <86bo1np8nt.fsf@somewhere.org> (Sebastien Vauban's message of "Thu, 14 Nov 2013 11:41:42 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) > (setq-default mode-line-format > (cons > '(:eval > (let ((dict (and (featurep 'ispell) > (not buffer-read-only) > (or ispell-local-dictionary > ispell-dictionary)))) > (and dict > (propertize (concat " [" (substring dict 0 2) "]") > 'face 'mode-line-highlight)))) > (default-value 'mode-line-format))) The "(:eval ...)" thingy should be in ispell.el (maybe in a variable `ispell-mode-line-dictionary'). Also it should have some mouse-face property along with a keymap property that lets the user cycle between his usual dictionaries with a mouse click. Of course, the question remains of where to put it on the mode-line and whether to enable it by default. The mode line is pretty damn crowded already. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 14 10:32:39 2014 Received: (at submit) by debbugs.gnu.org; 14 Jan 2014 15:32:39 +0000 Received: from localhost ([127.0.0.1]:50443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W35yo-0001OR-Cs for submit@debbugs.gnu.org; Tue, 14 Jan 2014 10:32:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50617) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W35yj-0001OG-34 for submit@debbugs.gnu.org; Tue, 14 Jan 2014 10:32:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W35yY-0004mB-Us for submit@debbugs.gnu.org; Tue, 14 Jan 2014 10:32:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W35yY-0004m7-SN for submit@debbugs.gnu.org; Tue, 14 Jan 2014 10:32:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W35yQ-0004Lw-QU for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 10:32:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W35yG-0004go-Mf for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 10:32:14 -0500 Received: from plane.gmane.org ([80.91.229.3]:58029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W35yG-0004gb-Ge for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 10:32:04 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W35yF-0007zS-1H for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 16:32:03 +0100 Received: from mout.web.de ([212.227.15.14]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W35y5-0007i4-7v for public-bug-gnu-emacs-mXXj517/zsQ@plane.gmane.org; Tue, 14 Jan 2014 16:31:53 +0100 Received: from drachen.dragon ([92.74.172.99]) by smtp.web.de (mrweb102) with ESMTPA (Nemesis) id 0MHGed-1W7n3r0S39-00E9lD for ; Tue, 14 Jan 2014 16:31:52 +0100 From: Michael Heerdegen To: Sebastien Vauban Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86fvor6itj.fsf@somewhere.org> Date: Tue, 14 Jan 2014 16:31:51 +0100 In-Reply-To: <86fvor6itj.fsf@somewhere.org> (Sebastien Vauban's message of "Tue, 14 Jan 2014 09:58:32 +0100") Message-ID: <87mwiyvau0.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:A2g7hRwda97wlJy5cu15QwLt/Q++gqx3aJsBo8oOKDYL+hwylMe QeroguwcjDe8RyAoxRqztXKu3Fvkn7ltsmyCkGU6CdBShmY6uZtFWx/gkN5UaZRb0yA5krr yYxry6gNlJJeDvmz4NXuD3CHT6NFvNmnRCiNl5WzQNf5slTVuqgLfk1YLN5y3s1jimeh1xf QBm1wrpbFaEO07WHhspew== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit Cc: public-bug-gnu-emacs-mXXj517/zsQ@plane.gmane.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.1 (----) "Sebastien Vauban" writes: > =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've no idea what happens for you. Can you give me a backtrace or a reproducible recipe from emacs -Q? Regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 14 12:04:05 2014 Received: (at 14957) by debbugs.gnu.org; 14 Jan 2014 17:04:05 +0000 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 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 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 From: Glenn Morris Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86fvor6itj.fsf@somewhere.org> to: 14957@debbugs.gnu.org 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-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 14 Jan 2014 12:04:00 -0500 In-Reply-To: <86fvor6itj.fsf@somewhere.org> (Sebastien Vauban's message of "Tue, 14 Jan 2014 09:58:32 +0100") Message-ID: <6ia9ey337j.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 14957 Cc: Sebastien Vauban X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.1 (-----) 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 14 13:14:55 2014 Received: (at submit) by debbugs.gnu.org; 14 Jan 2014 18:14:55 +0000 Received: from localhost ([127.0.0.1]:50653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W38Vq-0000Ir-Eg for submit@debbugs.gnu.org; Tue, 14 Jan 2014 13:14:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35539) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W38Vn-0000If-Gj for submit@debbugs.gnu.org; Tue, 14 Jan 2014 13:14:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W38Ve-0006HJ-12 for submit@debbugs.gnu.org; Tue, 14 Jan 2014 13:14:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W38Vd-0006HF-Uy for submit@debbugs.gnu.org; Tue, 14 Jan 2014 13:14:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W38VW-0008U0-Fx for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 13:14:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W38VM-0006DT-I8 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 13:14:34 -0500 Received: from plane.gmane.org ([80.91.229.3]:41751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W38VM-0006DN-BS for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 13:14:24 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W38VK-0002wZ-Au for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 19:14:22 +0100 Received: from dd5e0353a.access.telenet.be ([213.224.53.58] helo=mail.missioncriticalit.com) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W38VC-0002fI-Jp for public-bug-gnu-emacs-mXXj517/zsQ@plane.gmane.org; Tue, 14 Jan 2014 19:14:14 +0100 Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.4.62]) by mail.missioncriticalit.com (Postfix) with ESMTPS id E14E550065C; Tue, 14 Jan 2014 19:16:55 +0100 (CET) From: "Sebastien Vauban" To: Michael Heerdegen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line Organization: Sebastien Vauban References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86fvor6itj.fsf@somewhere.org> X-Url: Under construction... X-Archive: encrypt Date: Tue, 14 Jan 2014 19:12:45 +0100 In-Reply-To: (Michael Heerdegen's message of "Tue, 14 Jan 2014 16:31:51 +0100") Message-ID: <867ga2e8ki.fsf@somewhere.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit Cc: public-bug-gnu-emacs-mXXj517/zsQ@plane.gmane.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.1 (----) Hello Michael, (resending it the right way for the bug tracker: via mail) Michael Heerdegen wrote: > "Sebastien Vauban" writes: > >> =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 >> buffe= r-or-string-p >> =E2=94=82 (:eval (let ((dict (and (featurep (quote ispell)) (not >> bu= ffer-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've no idea what happens for you. Can you give me a backtrace or a > reproducible recipe from emacs -Q? Yes, I now have a backtrace: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument buffer-or-string-p (:eva= l (let ((dict (and (featurep (quote ispell)) (not buffer-read-only) (or isp= ell-local-dictionary ispell-dictionary)))) (and dict (propertize (concat " = " (substring dict 0 2)) (quote face) (quote mode-line-highlight)))))) get-text-property(0 help-echo (:eval (let ((dict (and (featurep (quote is= pell)) (not buffer-read-only) (or ispell-local-dictionary ispell-dictionary= )))) (and dict (propertize (concat " " (substring dict 0 2)) (quote face) (= quote mode-line-highlight)))))) (defconst csv-mode-line-help-echo (get-text-property 0 (quote help-echo) = (car default-mode-line-format)) "Primary default mode line help echo text.") eval-buffer(# nil "d:/Users/sva/.emacs.d/site-lisp/csv-mo= de.el" nil t) ; Reading at buffer position 10682 load-with-code-conversion("d:/Users/sva/.emacs.d/site-lisp/csv-mode.el" "= d:/Users/sva/.emacs.d/site-lisp/csv-mode.el" nil t) csv-mode() set-auto-mode-0(csv-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/champs.csv" nil nil "~/champ= s.csv" ((3584 1 . 1088) (24647 . 36859))) find-file-noselect("d:/Users/sva/champs.csv" nil nil t) find-file("d:/Users/sva/champs.csv" t) call-interactively(find-file nil nil) command-execute(find-file) --8<---------------cut here---------------end--------------->8--- I can reproduce the bug with the CSV file, but my configuration is not yet = minimized. Best regards, Seb --=20 Sebastien Vauban From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 14 16:33:54 2014 Received: (at submit) by debbugs.gnu.org; 14 Jan 2014 21:33:55 +0000 Received: from localhost ([127.0.0.1]:50732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3BcP-0006BU-Rr for submit@debbugs.gnu.org; Tue, 14 Jan 2014 16:33:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56526) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3BcN-0006BL-06 for submit@debbugs.gnu.org; Tue, 14 Jan 2014 16:33:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3BcF-0001OO-AU for submit@debbugs.gnu.org; Tue, 14 Jan 2014 16:33:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3BcF-0001OK-7j for submit@debbugs.gnu.org; Tue, 14 Jan 2014 16:33:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Bc8-0002da-AN for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 16:33:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Bc1-0001NI-Nj for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 16:33:36 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:40685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Bc1-0001ND-G3 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 16:33:29 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id BD49E84CB4; Tue, 14 Jan 2014 16:33:28 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 43E191E5B89; Tue, 14 Jan 2014 16:33:05 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 25892B40D3; Tue, 14 Jan 2014 16:33:05 -0500 (EST) From: Stefan Monnier To: "Sebastien Vauban" Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line Message-ID: References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86fvor6itj.fsf@somewhere.org> <86bnzeeaga.fsf@somewhere.org> Date: Tue, 14 Jan 2014 16:33:05 -0500 In-Reply-To: <86bnzeeaga.fsf@somewhere.org> (Sebastien Vauban's message of "Tue, 14 Jan 2014 18:32:05 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.71, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_COPYWRT 0.11, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) > (defconst csv-mode-line-help-echo (get-text-property 0 (quote help-echo) > (car default-mode-line-format)) "Primary default mode line help echo text.") This is clearly a bug in csv-mode.el. Try the patch below, Stefan diff --git a/packages/csv-mode/csv-mode.el b/packages/csv-mode/csv-mode.el index dbc6182..a8ae4e4 100644 --- a/packages/csv-mode/csv-mode.el +++ b/packages/csv-mode/csv-mode.el @@ -1,6 +1,6 @@ ;;; csv-mode.el --- Major mode for editing comma/char separated values -*- lexical-binding: t -*- -;; Copyright (C) 2003, 2004, 2012, 2013 Free Software Foundation, Inc +;; Copyright (C) 2003, 2004, 2012, 2013, 2014 Free Software Foundation, Inc ;; Author: Francis J. Wright ;; Time-stamp: <23 August 2004> @@ -247,10 +247,6 @@ Number of spaces used by `csv-align-fields' after separators." ;;; Mode definition, key bindings and menu ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(defconst csv-mode-line-help-echo - ;; See bindings.el for details of `mode-line-format' construction. - (get-text-property 0 'help-echo (car (default-value 'mode-line-format))) - "Primary default mode line help echo text.") (defconst csv-mode-line-format ;; See bindings.el for details of `mode-line-format' construction. @@ -260,7 +256,6 @@ Number of spaces used by `csv-align-fields' after separators." (setcdr x (cons `(csv-field-index-string ("" csv-field-index-string - ;; ,(propertize "--" 'help-echo csv-mode-line-help-echo) )) (cdr x)))) ml) @@ -803,8 +798,7 @@ Called by `csv-field-index-idle-timer'." (when (not (eq field csv-field-index-old)) (setq csv-field-index-old field csv-field-index-string - (and field (propertize (format "F%d" field) - 'help-echo csv-mode-line-help-echo))) + (and field (format "F%d" field))) (force-mode-line-update)))))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 15 05:15:17 2014 Received: (at 14957) by debbugs.gnu.org; 15 Jan 2014 10:15:17 +0000 Received: from localhost ([127.0.0.1]:51058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3NVF-0002i0-2e for submit@debbugs.gnu.org; Wed, 15 Jan 2014 05:15:17 -0500 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:42599 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3NVB-0002hq-Cw for 14957@debbugs.gnu.org; Wed, 15 Jan 2014 05:15:15 -0500 Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id EF7C5500659; Wed, 15 Jan 2014 11:17:53 +0100 (CET) From: "Sebastien Vauban" To: Stefan Monnier Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line Organization: Sebastien Vauban References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86fvor6itj.fsf@somewhere.org> <86bnzeeaga.fsf@somewhere.org> X-Url: Under construction... X-Archive: encrypt Date: Wed, 15 Jan 2014 11:13:42 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 14 Jan 2014 16:33:05 -0500") Message-ID: <86sispa6y1.fsf@somewhere.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 14957 Cc: 14957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) Stefan Monnier wrote: >> (defconst csv-mode-line-help-echo (get-text-property 0 (quote help-echo) >> (car default-mode-line-format)) "Primary default mode line help echo text.") > > This is clearly a bug in csv-mode.el. > Try the patch below, It does work like expected. Thanks! > diff --git a/packages/csv-mode/csv-mode.el b/packages/csv-mode/csv-mode.el > index dbc6182..a8ae4e4 100644 > --- a/packages/csv-mode/csv-mode.el > +++ b/packages/csv-mode/csv-mode.el > @@ -1,6 +1,6 @@ > ;;; csv-mode.el --- Major mode for editing comma/char separated values -*- lexical-binding: t -*- > > -;; Copyright (C) 2003, 2004, 2012, 2013 Free Software Foundation, Inc > +;; Copyright (C) 2003, 2004, 2012, 2013, 2014 Free Software Foundation, Inc > > ;; Author: Francis J. Wright > ;; Time-stamp: <23 August 2004> > @@ -247,10 +247,6 @@ Number of spaces used by `csv-align-fields' after separators." > ;;; Mode definition, key bindings and menu > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > -(defconst csv-mode-line-help-echo > - ;; See bindings.el for details of `mode-line-format' construction. > - (get-text-property 0 'help-echo (car (default-value 'mode-line-format))) > - "Primary default mode line help echo text.") > > (defconst csv-mode-line-format > ;; See bindings.el for details of `mode-line-format' construction. > @@ -260,7 +256,6 @@ Number of spaces used by `csv-align-fields' after separators." > (setcdr x (cons > `(csv-field-index-string > ("" csv-field-index-string > - ;; ,(propertize "--" 'help-echo csv-mode-line-help-echo) > )) > (cdr x)))) > ml) > @@ -803,8 +798,7 @@ Called by `csv-field-index-idle-timer'." > (when (not (eq field csv-field-index-old)) > (setq csv-field-index-old field > csv-field-index-string > - (and field (propertize (format "F%d" field) > - 'help-echo csv-mode-line-help-echo))) > + (and field (format "F%d" field))) > (force-mode-line-update)))))) > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Best regards, Seb -- Sebastien Vauban From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 15 05:43:45 2014 Received: (at 14957) by debbugs.gnu.org; 15 Jan 2014 10:43:45 +0000 Received: from localhost ([127.0.0.1]:51085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Nwl-0003Y3-Rw for submit@debbugs.gnu.org; Wed, 15 Jan 2014 05:43:44 -0500 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:22850 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Nwi-0003Xu-GS for 14957@debbugs.gnu.org; Wed, 15 Jan 2014 05:43:41 -0500 Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id A3D14500659; Wed, 15 Jan 2014 11:46:21 +0100 (CET) From: "Sebastien Vauban" To: Glenn Morris Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line Organization: Sebastien Vauban References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86fvor6itj.fsf@somewhere.org> X-Url: Under construction... X-Archive: encrypt Date: Wed, 15 Jan 2014 11:42:09 +0100 In-Reply-To: (Glenn Morris's message of "Tue, 14 Jan 2014 12:04:00 -0500") Message-ID: <86zjmx8r26.fsf@somewhere.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 14957 Cc: 14957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) Glenn Morris wrote: > Following message was posted via usenet and so does not show up in bug > tracker. I'm not going to mention this issue again. It won't happen anymore to me, thanks to the following code (adapted from code given to me by Michael Heerdegen -- thanks a lot to him!): --8<---------------cut here---------------start------------->8--- (defun my/gnus-summary-followup-with-original () "Force sending messages to `gnu.emacs.bug' per email." (interactive) (if (string-match (rx "gnu.emacs.bug") gnus-newsgroup-name) ; answer per email (call-interactively 'gnus-summary-wide-reply-with-original) ; post via news (call-interactively 'gnus-summary-followup-with-original))) (define-key gnus-summary-mode-map (kbd "F") 'my/gnus-summary-followup-with-original) --8<---------------cut here---------------end--------------->8--- Best regards, Seb -- Sebastien Vauban From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 15 08:44:53 2014 Received: (at 14957) by debbugs.gnu.org; 15 Jan 2014 13:44:53 +0000 Received: from localhost ([127.0.0.1]:51214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Qm5-0001QI-BC for submit@debbugs.gnu.org; Wed, 15 Jan 2014 08:44:53 -0500 Received: from mout.web.de ([212.227.15.4]:60968) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Qm2-0001Q9-Jn for 14957@debbugs.gnu.org; Wed, 15 Jan 2014 08:44:51 -0500 Received: from drachen.dragon ([92.74.172.99]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0M8QaI-1V7bFq1tCM-00vxh2 for <14957@debbugs.gnu.org>; Wed, 15 Jan 2014 14:44:49 +0100 From: Michael Heerdegen To: Stefan Monnier Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86fvor6itj.fsf@somewhere.org> <86bnzeeaga.fsf@somewhere.org> Date: Wed, 15 Jan 2014 14:44:48 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 14 Jan 2014 16:33:05 -0500") Message-ID: <877ga1fjfz.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:sOWTwXIbkVtiboQ1iUADoz8NopxRQbv4NMiuM6g4EPp58AsKiXW 4TNHamqCPsYdPH9m/3OntAs+t9A736vlpCwkF8kPkA8XYoUYJ/j3KBQAHqVRFDHkazaYB7E +6o6tB1q6u7q5Uapc6iZ4Gkh1ZptuDVyUVXEAZIR7i1rApbw+HoeTNxtzIYjTonos3AHIpo F7rdDn/SR1ab4ygg3Tosg== X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 14957 Cc: Sebastien Vauban , 14957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (/) Stefan Monnier writes: > This is clearly a bug in csv-mode.el. > Try the patch below, Thanks, Stefan. Should we send it to the csv-mode maintainer (or do you have already)? Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 15 10:23:58 2014 Received: (at 14957) by debbugs.gnu.org; 15 Jan 2014 15:23:58 +0000 Received: from localhost ([127.0.0.1]:52169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3SJx-0004DW-DP for submit@debbugs.gnu.org; Wed, 15 Jan 2014 10:23:57 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19921) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3SJv-0004DO-8s for 14957@debbugs.gnu.org; Wed, 15 Jan 2014 10:23:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFMCoyj/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQSFBgNJIgeBsEtiVKHOAOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFMCoyj/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQSFBgNJIgeBsEtiVKHOAOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="45012551" Received: from 76-10-140-163.dsl.teksavvy.com (HELO pastel.home) ([76.10.140.163]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 15 Jan 2014 10:23:54 -0500 Received: by pastel.home (Postfix, from userid 20848) id 3D61B6048B; Wed, 15 Jan 2014 10:23:54 -0500 (EST) From: Stefan Monnier To: Michael Heerdegen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line Message-ID: References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <86fvor6itj.fsf@somewhere.org> <86bnzeeaga.fsf@somewhere.org> <877ga1fjfz.fsf@web.de> Date: Wed, 15 Jan 2014 10:23:54 -0500 In-Reply-To: <877ga1fjfz.fsf@web.de> (Michael Heerdegen's message of "Wed, 15 Jan 2014 14:44:48 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 14957 Cc: Sebastien Vauban , 14957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (/) >> This is clearly a bug in csv-mode.el. >> Try the patch below, > Thanks, Stefan. Should we send it to the csv-mode maintainer (or do you > have already)? I installed it in `elpa/packages/csv-mode', thank you. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 10:19:16 2020 Received: (at 14957) by debbugs.gnu.org; 18 Sep 2020 14:19:16 +0000 Received: from localhost ([127.0.0.1]:43895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJHEK-0002zI-A8 for submit@debbugs.gnu.org; Fri, 18 Sep 2020 10:19:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJHEI-0002z3-KP for 14957@debbugs.gnu.org; Fri, 18 Sep 2020 10:19:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ByzM3BYEb9wAzlOch1EC2xi7BXOURsEZ/JZkgNTxdyk=; b=G+xJK+E+qJdmMNvyV3YLw8Rqot wwaEnnDtPuleG9f/KPWQHU+WIprp5hxViv9Xsw/QvA3iRQ4UGlze3vpQN2EtcrJBuBJX62aJIUP8s OI88MuRSCLcDi9YO9Wj9zS1TWrintHbljhB0qFitCnKGY21W8GNQQQM/K+zDwkkoUwtw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJHE6-0006jH-8t; Fri, 18 Sep 2020 16:19:08 +0200 From: Lars Ingebrigtsen To: Michael Heerdegen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <87mwled1jc.fsf@web.de> X-Now-Playing: Saito Koji's _433-1_: "433_072" Date: Fri, 18 Sep 2020 16:19:00 +0200 In-Reply-To: <87mwled1jc.fsf@web.de> (Michael Heerdegen's message of "Fri, 08 Nov 2013 22:30:31 +0100") Message-ID: <87v9gbf9rf.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Michael Heerdegen writes: > 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)))) > (a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14957 Cc: Sebastien Vauban , 14957@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: -1.0 (-) Michael Heerdegen writes: > 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))) Everybody seemed to be in violent agreement about making Flyspell (and friends) display the language currently in use (and I agree, too), but the discussion petered out when the discussion turned to where to put this. Perhaps putting it in the Flyspell lighter? So it'd be ... (Text Fly[br] Fill) or something? I'm not sure whether that's possible with the mode line machinery, though -- we want clicking on "Fly" to switch the mode off, but clicking on "[br]" to allow changing the dictionary. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 11:00:30 2020 Received: (at 14957) by debbugs.gnu.org; 18 Sep 2020 15:00:30 +0000 Received: from localhost ([127.0.0.1]:44099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJHsD-0008Pj-Sj for submit@debbugs.gnu.org; Fri, 18 Sep 2020 11:00:30 -0400 Received: from mout.web.de ([212.227.15.14]:44769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJHsB-0008PW-Sy for 14957@debbugs.gnu.org; Fri, 18 Sep 2020 11:00:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1600441221; bh=Z+kFFtmx0kAtulyeGvIsg3dvuZ9AfB34iG457W9UN00=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=MXqw8nbvPGykuA4Ig2eJTV/vSPPE+6zld8EfzjD2bVfGZmx4FUhbWvlStu/lkLczA lXVsWtiE82W+LW+X/TSIhEfA0v+MnlR6ZYpGNjsJH448WgxBaJKgMKpk/Ya3rAEMvJ hY/WYa2oZJgv11cbS2wQdhkoCIoGIms1WHUpooZg= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.220.78]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lp7HY-1kvfUn0GQ8-00etPt; Fri, 18 Sep 2020 17:00:21 +0200 From: Michael Heerdegen To: Lars Ingebrigtsen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <87mwled1jc.fsf@web.de> <87v9gbf9rf.fsf@gnus.org> Date: Fri, 18 Sep 2020 17:00:19 +0200 In-Reply-To: <87v9gbf9rf.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 18 Sep 2020 16:19:00 +0200") Message-ID: <87bli3xh8c.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:fpLWHtyuehhLHDdnVM3xxDVZohpMqdIR5qfiiwKwsUuO5lMNfL2 oDCDOz10mWUbedw+srSBvkLB0x2/wSsplLGHmPx3opKxuLjOCzAWVNoDHgrC8ocP2Xw49CI XZ3b1Gd05/sCAXADv3DMCV51Ap55hVMwXpGyj9pLMNJ9k6jIn+tY5+hIx2/F7nXi6XaCp2/ raQY6dgC/WbMga3Oxakpg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Q+fjVzX0vLs=:W/B+nCPFiyCSotC5MS8VTA hrkiUfbprpraSP5vv5mXozQUy79GaUm00OYTt4DZkstF+cPzedF+gDuVM0xQAtMY0Mc/6/Msd 6q6OKxW8KRgiOe8oM+v531v4ukC24qZQVWAkMRykiN0PP6Otxf8KmvZhQGHKL8THPpFikv6cK qY4+lWUdh+7OWCe46X9Bwug5UxThIhmEXRkM250gEzm44eNlNpFplQgbQ3kvtDuCeGm261nYw pmJcq1+5KLDQTHTKk8ZqO0q0ojGX5jtMTdNyyM1tPd3PbIMeaitLTvzj46yjBvj3Cijh8vyG3 nuMniqq+yKkvdPmG3XnvVot2Wg23FaEvPsbbMP3mtQVI3A5Gji+pNjrjkkc5L6rydmbi6HYNS fGz4rHEno3vKRpvKyY+E0YU3n+JT9cd27dg034ZcoXg0YYrQ8SLUbogUYnQzShNT5Cbr5s6si RznKGcbX7DHG+A8/29grOQPmZqkkk+H0ua42TrDDxNo83S/pIp/+VauAy9Tf0caH+pb2Ye4g5 g0wUw8r/6v2pcdAEDf34Ag3cwdcCAJUBSC8gs/VW/aXWblEIGZ4C8fwTpL8kgse6U74otvKlP oeWJaos1lm17UMqFh/JLHu+Vlm0LG4rZzdEtHyBMSrSGPtqRMEPcMWWKOFXEEIBtNFGe1UgH8 OmvdahsoM4lKdoRzN62F9NbXVz3nRau2ZGo/zUhGj/lEgurut45vS/V9Ys5xWHzP8e28okwG8 bTf0wmSliLWKdR5/N1hIoz7G4i6jQZY83+rsL01XyBXF4jz2T/mw8BDoTjxPnIBywQ98nmtEj vjGlyB16/WWAhCowUOfB60T0OqghbFVp9mW21vbqUsquQcUthIrncooZu9NSWAVKSuQ0dZqhj gBnivzY39uBTlTuy4sqbZsUKRu6AZwkHhjRtG1NKesgL+eAYzFYvL9NfsMJ4KmLHuMivI0ToB +0G/j71aFyFwvbNN/0LzQxMNaW1e5y3D1j+9WxQLgYnjdcTnjetNmBAG3zJcdMBFHFsH61edm h84mU/5ZSRS4t4WWfqE91+xZmgYgnQkF8vU0ljUBj1DvlQWD/ash2ZbPcMF4R8AbG+IMHnhPK Cppv17saBVxY4dOuawCg+xmzOc/5FM81y2YFK9C0caSLAkgYV3ikW+WBvneaG4wHGls66nrkb giep0LQ6g60b1IGiASIK7a3xkSqIfuv18a4cUeOxOYa5PyuQchsb5X1N1EjDGcSZn+UGsvxQ7 J3bsObYWCXiebsLKPGWWE66Tad6VjXGxJQ/3pQg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14957 Cc: Sebastien Vauban , 14957@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: -1.7 (-) Lars Ingebrigtsen writes: > Perhaps putting it in the Flyspell lighter? So it'd be > > ... (Text Fly[br] Fill) Yes, I think so. What's a reasonable alternative at all? > I'm not sure whether that's possible with the mode line machinery, > though -- we want clicking on "Fly" to switch the mode off, but > clicking on "[br]" to allow changing the dictionary. That should be possible I think. Ideally, the part with the clickable language would be factored as a separately usable mode-line element so that people who don't want to have all minor modes in the mode-line still can take advantage of something built-in. Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 11:11:07 2020 Received: (at 14957) by debbugs.gnu.org; 18 Sep 2020 15:11:07 +0000 Received: from localhost ([127.0.0.1]:44135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJI2U-0000FU-VD for submit@debbugs.gnu.org; Fri, 18 Sep 2020 11:11:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJI2S-0000Ez-JW for 14957@debbugs.gnu.org; Fri, 18 Sep 2020 11:11:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=McTHyVsyjiw8oFZ9giLhZtxBDfWylFtZ86x97e5QoaE=; b=OjoIX5WwLi1fSG+CGSPCVU++S4 IFxz2VNWMTqXNwFIzVdhsihxlQK+Xqg53rA54ZcJ7rWNqf1+QqStxTXtk9ByTObzSJiLsClkqVmKM +2Iak3NhgCs/jTuVc9AuHz3unE9tQ0QdUdIPMfpiQTRkRhWi/8TxUhJG1JqhPJgS6WHA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJI2J-0007Ax-I4; Fri, 18 Sep 2020 17:10:58 +0200 From: Lars Ingebrigtsen To: Michael Heerdegen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <87mwled1jc.fsf@web.de> <87v9gbf9rf.fsf@gnus.org> <87bli3xh8c.fsf@web.de> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQAAAAB/ecQqAAAABGdBTUEAALGPC/xhBQAAAAJi S0dEAAHdihOkAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH5AkQCyMGR5f7bwAAABBJREFU GNNj+A8GDKMUdSgAT1Qe8M8TmhgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDktMTZUMTE6MzU6 MDUrMDA6MDBrguOZAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA5LTE2VDExOjM1OjA1KzAwOjAw Gt9bJQAAAABJRU5ErkJggg== X-Now-Playing: Saito Koji's _433-1_: "433_083" Date: Fri, 18 Sep 2020 17:10:53 +0200 In-Reply-To: <87bli3xh8c.fsf@web.de> (Michael Heerdegen's message of "Fri, 18 Sep 2020 17:00:19 +0200") Message-ID: <87r1qzdssi.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Michael Heerdegen writes: > Lars Ingebrigtsen writes: > >> Perhaps putting it in the Flyspell lighter? So it'd be >> >> ... (Text Fly[br] Fill) > > Yes, I think so. What's a reasonable alternative at all? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14957 Cc: Sebastien Vauban , 14957@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: -1.0 (-) Michael Heerdegen writes: > Lars Ingebrigtsen writes: > >> Perhaps putting it in the Flyspell lighter? So it'd be >> >> ... (Text Fly[br] Fill) > > Yes, I think so. What's a reasonable alternative at all? The language could be put in the mode-line-process position, which is ahead of the modes: ... [br] (Text Fly Fill) >> I'm not sure whether that's possible with the mode line machinery, >> though -- we want clicking on "Fly" to switch the mode off, but >> clicking on "[br]" to allow changing the dictionary. > > That should be possible I think. I haven't looked at how minor mode lighters are constructed -- if we can use any old mode line constructs, then it should be fine. I.e., instead of (propertize "Fly" ...) it'd be (,(propertize "Fly" ...) ,(propertize "[br]"...)) > Ideally, the part with the clickable > language would be factored as a separately usable mode-line element so > that people who don't want to have all minor modes in the mode-line > still can take advantage of something built-in. I didn't consider that use case, but that should be easy enough to achieve. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 11:44:58 2020 Received: (at 14957) by debbugs.gnu.org; 18 Sep 2020 15:44:58 +0000 Received: from localhost ([127.0.0.1]:44211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJIZG-0003Gj-3F for submit@debbugs.gnu.org; Fri, 18 Sep 2020 11:44:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJIZE-0003GU-EM for 14957@debbugs.gnu.org; Fri, 18 Sep 2020 11:44:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49839) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJIZ8-00078p-7u; Fri, 18 Sep 2020 11:44:50 -0400 Received: from [176.228.60.248] (port=4605 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kJIZ6-0005kR-Rj; Fri, 18 Sep 2020 11:44:49 -0400 Date: Fri, 18 Sep 2020 18:45:02 +0300 Message-Id: <83bli33x8h.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87r1qzdssi.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 18 Sep 2020 17:10:53 +0200) Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <87mwled1jc.fsf@web.de> <87v9gbf9rf.fsf@gnus.org> <87bli3xh8c.fsf@web.de> <87r1qzdssi.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 14957 Cc: michael_heerdegen@web.de, sva-news@mygooglest.com, 14957@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: -3.3 (---) > From: Lars Ingebrigtsen > Date: Fri, 18 Sep 2020 17:10:53 +0200 > Cc: Sebastien Vauban , 14957@debbugs.gnu.org > > Michael Heerdegen writes: > > > Lars Ingebrigtsen writes: > > > >> Perhaps putting it in the Flyspell lighter? So it'd be > >> > >> ... (Text Fly[br] Fill) > > > > Yes, I think so. What's a reasonable alternative at all? > > The language could be put in the mode-line-process position, which is > ahead of the modes: > > ... [br] (Text Fly Fill) That's sub-optimal IMO. I like the "Fly[br]" variant much better. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 12:18:14 2020 Received: (at 14957) by debbugs.gnu.org; 18 Sep 2020 16:18:15 +0000 Received: from localhost ([127.0.0.1]:44282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJJ5S-0008SJ-MT for submit@debbugs.gnu.org; Fri, 18 Sep 2020 12:18:14 -0400 Received: from mout.web.de ([217.72.192.78]:40479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJJ5R-0008S6-7C for 14957@debbugs.gnu.org; Fri, 18 Sep 2020 12:18:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1600445880; bh=5Kzu6CEh6Ym3nbp57hPz3UlEWZt+voRKaYxd9E0EmRA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=nDy7IRnV2gIpR7Sa92ZWTGpun/iZD0v/oEbTerPzR0Q7SXNG+NPv7VDgpYVe+kMlv tW7ZeZiowrNCq9QPo6hxknPl0jYvBmNPRMk1ujQ47i+sPI8X30CHPucz64pb5deV1H SRQbu5ChwWsBZAvChQ1hXhta5Z9kGXB7oNrMt5oc= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.220.78]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MFs1t-1kGpxn2Vmp-00HKEH; Fri, 18 Sep 2020 18:18:00 +0200 From: Michael Heerdegen To: Lars Ingebrigtsen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <87mwled1jc.fsf@web.de> <87v9gbf9rf.fsf@gnus.org> <87bli3xh8c.fsf@web.de> <87r1qzdssi.fsf@gnus.org> Date: Fri, 18 Sep 2020 18:17:59 +0200 In-Reply-To: <87r1qzdssi.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 18 Sep 2020 17:10:53 +0200") Message-ID: <874knvqcso.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:AWA6Nse1N3wYmUlevcRlDckM2rj4OubfCq5+W1QGSopkEVoDXAj 1eRr3WGIJeBvomsNsaMcv+QFRUwqcZk8tK1V/UIdoYv/+NeKpFso9otcDJHNJL0JW108eXK hbSUYUJFgPzUYdXmgbVkrVBIXTxNUSgpnILJ+6ydr+YpSz2tVhOxbgvLVbsyo8FERLLDwor 3CsiZA5BN/JJ8CsE94SWg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ls4vZroTHu4=:zJr1gHROdfOZusDzLFBZwP CVc9p+RKBM55c+ZvDdsKStIOZPM9DKJiZ8VZolu2iKB7yClfn4Xg67BJp076RuYgxxxPyIdr6 bQHYcYJLN+zIHcrk9ykouKWUvfXwY7959P6Aafoi2Y2jIJ7sco/eB11HlY7GAIxlBv67Oyutn Kn82rhmUm0n+DJV8HISvnNf49CuaDKT6W0I7LH0NrfU+ZWP3N5elmfU+FcOjuHuiTeht/xU4I x3e1clWY7oxb9qmOKMhf2I1/TqCW0z9z9Kl3+pPZqnzYY2qUzB9Fz8swkMBVHI1dHAJN8sXJA NXs3bY10N79B7cW6ftrTz/BmiUA/yoGqfQxYyA4UBOSZ1+iYBV90dM1euB4R6UARfY6IKHcjW gUj2YRr3nT92MSxIcO60FSzvFbJJkVJ1JOPrpNq2UVdrpME0GtiBLSTJ9PiBjEEE30iKvPJ2T 9wYP+C2qRrDLx9SHOFqhfbBhk5UffcwA0x+3edgs/h3yMGjXEJFIfLAunavI91qCpVIJ92D/y X2opM+kjeeHj8bnB5olPuKnDuJjkv4PXTWpwYUSAfquI3OPOYpza4JigDtzxdJuqPOcTRx2/9 /hMbycyGYzq25KTfUWmsNmuOHKJXfTo3Gf5YmwtAnyKz44QTC3I6Bw5rXIkpzObKbETv+Y+Bs Y01EqgyHh/lf5f4Uf8Vo5Ud2JGm07UAvwxAL7U4LjHQyWGl+8i4Ve49mgRpA7hgdhU8SZYx+o tRAILDPZb8yq1NT6yw9J2FuXPNjQ0N0RfuAzIRIEP5FMphDSJ+r/jdGfBwt86OANs83edZnMn XoNtJy8eiVdUYM/jqE45xt+bMrA9Xl1Bh3FHAWTuGiRT67EnsIpY2e5TMPr5HNlvvO4w6tbua crIut0GWqbPriTvZmEDN3FxMPop1eHwj5Ltzd3zBgPyXQJARBRQNza8QlGjp263By4u7NanGP fGQmExouLDsYD2l52ozjfBcl6dj2TG2zZ728J9LNdD0kKzaAcZToO5tTKetKL7FHrS08dmP0C Y60LMzAj70YcH4E8ccl6TkD2ItX7wQfCgZoAfqFObAfdX03jk4i7xqzYTy9LRT7LhmesE6RPB sxxNmUkZkwlfPdCAUA3A1qnTAu4ZGayLbsUCjApbnm0ULGv/sgginjK0MwmIV31Oh1dEici6t r152ghZsTORLWMNM8msnht+oOyPiCDYZvCXDdvIw8ntzkFLVstj8ND6an8LoeLyM6gKTqVYH5 pzB9pT7Se+Lp8V57kE6vIVj3giRegKZr6n3WHXw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14957 Cc: Sebastien Vauban , 14957@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: -1.7 (-) Lars Ingebrigtsen writes: > (propertize "Fly" ...) Isn't it possible to use a sequence of multiple `propertize' mode-line specs? Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 19 10:02:11 2020 Received: (at 14957) by debbugs.gnu.org; 19 Sep 2020 14:02:11 +0000 Received: from localhost ([127.0.0.1]:47634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJdRK-0002ft-Ue for submit@debbugs.gnu.org; Sat, 19 Sep 2020 10:02:11 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJdRI-0002fb-GY for 14957@debbugs.gnu.org; Sat, 19 Sep 2020 10:02:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SqugbWgN8H6XxM9W5nhClR2oi67m+DDXwaDY5R0AU94=; b=Fx1qgaDBKdsSQexCrszRl/Ih4c xUmBy1jaon9YWBzTsMU46nuBXs/DsAyiHyuxqykjN7sZdoEbKp/06dr2zFaZCqPqRSQzOvXvqqvG+ 8IoAkRd/VxRXjt2jOSzD0V3l6CVaa8+IJMl6vZoTWjNIyrRUIemXkmK1zngX5YKBdCpQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJdR9-0003cn-5B; Sat, 19 Sep 2020 16:02:01 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <87mwled1jc.fsf@web.de> <87v9gbf9rf.fsf@gnus.org> <87bli3xh8c.fsf@web.de> <87r1qzdssi.fsf@gnus.org> <83bli33x8h.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEV5e4ers8I7O0H/ //+rgG9YAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+QJEw0HLHv8AEMAAAFoSURBVCjPRc+/TuswFAbw U9Rc0U4ZWgkxtRVD8FMUdIuEJ8fyqVAn2FCeoq1ahJiuKtjjqL5yvqfEcRLw5J8+nz8mYp5ycwwb osQcw/WRtYqwzEnNOp00cGyqUaJTDshf1KYcOxOf5a+68gvLEbzUJ/hdj/UY+MojprnGEk61Sb7x pbBKDSPk/nhv227MsgzIf5AUvqth7FgHLHuYgGYdTuB4HaAaDHHkNZRKGvwJMGDVfGElYrKK3Vay Q9Ngdf/fsUa79Z2sLD8EcMTI8kWXjOTz7u+15zCGkkwWVbrIegg/E10yKD7K13EP+XTjqcVwt7ma zwe3HTR8ndUmbRO/LUVt/jU1Vm/pLGqdRpj9i1vYjWqByzNcBNEalyUc0YQEtgazE5wACMAEjydx QIspRnt8ouzgK8TEB3h/8YvMn3AouxqZvaFvMClqwsF3SVGfce4h3+kXIgtJP7TwsyyCBszC0tjy kr4BvSXNqHxyv0wAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDktMTlUMTM6MDc6NDQrMDA6MDA6 HoKaAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA5LTE5VDEzOjA3OjQ0KzAwOjAwS0M6JgAAAABJ RU5ErkJggg== X-Now-Playing: Propaganda's _A Secret Wish (1)_: "Duel" Date: Sat, 19 Sep 2020 16:01:57 +0200 In-Reply-To: <83bli33x8h.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 18 Sep 2020 18:45:02 +0300") Message-ID: <87eemxsw4q.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > That's sub-optimal IMO. I like the "Fly[br]" variant much better. Me too. Or... Fly/br? That's one character less. I did that instead; feel free to change if "Fly[br]" is more understandable. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14957 Cc: michael_heerdegen@web.de, sva-news@mygooglest.com, 14957@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: -1.0 (-) Eli Zaretskii writes: > That's sub-optimal IMO. I like the "Fly[br]" variant much better. Me too. Or... Fly/br? That's one character less. I did that instead; feel free to change if "Fly[br]" is more understandable. Michael Heerdegen writes: > Isn't it possible to use a sequence of multiple `propertize' mode-line > specs? Hm... I thought they were overwritten here: (defvar mode-line-modes [...] `(:propertize ("" minor-mode-alist) mouse-face mode-line-highlight help-echo "Minor mode\n\ mouse-1: Display minor mode menu\n\ mouse-2: Show help for minor mode\n\ mouse-3: Toggle minor modes" local-map ,mode-line-minor-mode-keymap) But the properties :propertize properties seem to survive? Yup. Now implemented and pushed. I had to cheat a bit here, since the define-minor-mode machinery doesn't allow evaluating anything at all in the :lighter keyword, so I had to put a keymap construct directly into it: + local-map (keymap + (mode-line keymap + (mouse-1 . ispell-change-dictionary)))))) Which is kinda hacky, but... There was also some suggestion about showing this data in all buffers that have ispell-dictionary bound, but in my testing, I found that that led to the language being displayed in some special modes, too, so I don't think that's workable. So it's just in Flyspell mode. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 19 10:02:20 2020 Received: (at control) by debbugs.gnu.org; 19 Sep 2020 14:02:20 +0000 Received: from localhost ([127.0.0.1]:47637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJdRU-0002gE-8h for submit@debbugs.gnu.org; Sat, 19 Sep 2020 10:02:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJdRT-0002g4-7F for control@debbugs.gnu.org; Sat, 19 Sep 2020 10:02:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=l6FaZm6ae13FE5fcvBv7whPb2ztb567EJW/B0/ysRQE=; b=fNyJzIsx9zfojqBQAGgV+OKshp 1KEQ7ZOTA7pCIuBDtoAj5A8BKmCnk09glFtfpxdDRcC6GfiiAMzo78hUAVZTTxMtODp996khxUhZu fmo6855i1TZ1JNY1d++E+4lDQ/mVgytUK+Du8T4tiP7ed6/HapNmL8M9p2YpTHOAPyVE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJdRL-0003dX-Dk for control@debbugs.gnu.org; Sat, 19 Sep 2020 16:02:13 +0200 Date: Sat, 19 Sep 2020 16:02:10 +0200 Message-Id: <87d02hsw4d.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #14957 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 14957 fixed close 14957 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) tags 14957 fixed close 14957 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 19 10:43:42 2020 Received: (at 14957) by debbugs.gnu.org; 19 Sep 2020 14:43:42 +0000 Received: from localhost ([127.0.0.1]:47748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJe5W-0005r5-B4 for submit@debbugs.gnu.org; Sat, 19 Sep 2020 10:43:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJe5V-0005qt-7n for 14957@debbugs.gnu.org; Sat, 19 Sep 2020 10:43:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45603) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJe5P-0004mN-82; Sat, 19 Sep 2020 10:43:35 -0400 Received: from [176.228.60.248] (port=2866 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kJe5O-0001D9-Hz; Sat, 19 Sep 2020 10:43:35 -0400 Date: Sat, 19 Sep 2020 17:43:30 +0300 Message-Id: <83h7rt3jzh.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87eemxsw4q.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 19 Sep 2020 16:01:57 +0200) Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <87mwled1jc.fsf@web.de> <87v9gbf9rf.fsf@gnus.org> <87bli3xh8c.fsf@web.de> <87r1qzdssi.fsf@gnus.org> <83bli33x8h.fsf@gnu.org> <87eemxsw4q.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 14957 Cc: michael_heerdegen@web.de, sva-news@mygooglest.com, 14957@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: -3.3 (---) > From: Lars Ingebrigtsen > Cc: michael_heerdegen@web.de, sva-news@mygooglest.com, 14957@debbugs.gnu.org > Date: Sat, 19 Sep 2020 16:01:57 +0200 > > Eli Zaretskii writes: > > > That's sub-optimal IMO. I like the "Fly[br]" variant much better. > > Me too. Or... Fly/br? That's one character less. I did that instead; > feel free to change if "Fly[br]" is more understandable. Fly/xx is fine by me, thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 19 18:31:28 2020 Received: (at 14957) by debbugs.gnu.org; 19 Sep 2020 22:31:28 +0000 Received: from localhost ([127.0.0.1]:48377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJlOB-0006Ul-PX for submit@debbugs.gnu.org; Sat, 19 Sep 2020 18:31:27 -0400 Received: from mout.web.de ([212.227.15.3]:41569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJlO8-0006Ne-VV for 14957@debbugs.gnu.org; Sat, 19 Sep 2020 18:31:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1600554671; bh=OmomGws56euBlHLnXzhm6yp5p9ugdgWGZaM5N38srqk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=UItTMneZiBF6LGUV2hCA3AAbnNDe5lEgseKokjbZWZVQoBUQwhE3FpsvwQaZEm+Ov w4khFll0t3oRzCv/+iaKvp+9ral2sCPYRgo8JScNIs4KuRVMHnbCGJBybtHmcjhpOm wxtEYEc2D9vUTZe9Lk7M/xlvRdz4/9l78g4Mrv1E= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.220.78]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LpQjF-1kwPak1KHl-00fErf; Sun, 20 Sep 2020 00:31:11 +0200 From: Michael Heerdegen To: Lars Ingebrigtsen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <87mwled1jc.fsf@web.de> <87v9gbf9rf.fsf@gnus.org> <87bli3xh8c.fsf@web.de> <87r1qzdssi.fsf@gnus.org> <83bli33x8h.fsf@gnu.org> <87eemxsw4q.fsf@gnus.org> Date: Sun, 20 Sep 2020 00:31:10 +0200 In-Reply-To: <87eemxsw4q.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 19 Sep 2020 16:01:57 +0200") Message-ID: <877dspxutt.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:N7izeVHxvGLWlsQ2hjYH5lqcA+FrFhzSbzYMqP7U5d50OjrHYYT J8/ran+3AgQ6QhrVgmoxvOROb2buqyoIg2/x7QSvc/uveq8zXVqFxudAFc1P6NHc6rgGbQ9 qgTfNEMuUNkpwufRDrEiJ4BgT/43uFBGS3oLw8lojxrXAn0wI91/Kw+EdNhK5uCcD4SIHgj 8lup0mjRlxDiCaoVAWXZQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zCnxg1oHHsc=:Df01o8jlxXB164Fy2Ya7Oy fO4iEuxCtfdNlWmI15bYhZcGooxEszSevXzrunqi/Ew6B3/24IFc4V3arhtg8/AFraKjAVLM2 lIQiZYTlzSl8WNBYj1OFw8cKqnOt8CWlvms2tiBx+QMOyC2JQKSc7ArH+b29+mJ64URdezhY/ q+LQU/M0h9Ka2nrHHsCLqPmYumCyFFMnP8N+CM57j9V3BgmT1uircX0AJZ0/8hrYt7u7+kWq/ GVSZ7eidGe4cS/7xL2hB6ss/IjkPMptEB++r3xl26k1bcw78/0uo8wKPFW/+OKD6HcuXhgaTK wb1xNzi0LwjqkgGALN3QmIqyzojWNhGHSAW/0m12Dgpu+s8yTtOFmlowTc6dkbbf8iN7GW3E5 iRM1MAb3c0H/3ofN14geNP89X1jhDP4YSQRgWIRlXuDaf6fZRMI2A4Ewl8AjtkrNM0mX/QcHQ fera5W4sWcc9GM5rdWOY2BHFRiOVc5mzvbhj2OmydTdQLKhtS9bVfmqUUAmhfTfmyVcU+aKS+ HAJVHQWmU0lSgrGlNxNfwcRFTl5Hn3/mxgJPB/bFHsNoEtMYMMoNw6Sf44Jw2dON+TAA+FomT rEh2JarQRDrJzjHIhICdWEWS16MCbdQV16knK2eDs8R6wC1mHMBbO61pDv4E6+6hDwIJXJDfd AWIm1AQQRu83lt0H8rnUBMV+lXH0DFpsNRrDv4geeKJdKy3UyY+lSTqX6VCauPQpqMsdnCr6v 16X5o9i/Ue7yJoOxjIhdpxZjzEFiGNA9rIYYNgcfvCHCDlK6sw7xBbJuXZSmtwNG7+VRJD9vM pWsYb3lwMXrDIimKTh/IdTEbmQSZ6s/OOKm62E3Q11H0NF3FiWa5fkJ/GOAvrZnGnkVqOat96 vx+IJVSxFf2iiuDT5yycHlNApBs2YxRxDt21+XBEkwdghCqo2FspTcZsaBFqx6513SAJ543jR 1DQDarlWVVi1JBUyL0Loy7sWd+2ZLhLIQfyNWpdYwAR+7wW8FxrQFlu024yJNleGLuFJuOwEs ZmmPMx7hsz1spJD5NZwYcdMjUSC1HuKVirlvi4noxnBnxnnAHyvLMh3/cbOkbeSqx4BQTR3dc ldNwQEvqdqnW7CZ+7Nm85YRhSYEqoZssr9fBoeOBjLIMCZwo4xEZCYKH+OojmZNaqbZ7ooPvc hcOvNhTp3mJA/I0Ez3J152Jleq2UbhSuV6cMjviQ1ugcGEOK+4GsQBArQ8dlLCFjB89WD+KG8 wMVGOggB9CQiPaPz0KeVfInffkCbQVda9D7k8HA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14957 Cc: sva-news@mygooglest.com, Eli Zaretskii , 14957@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: -1.7 (-) Lars Ingebrigtsen writes: > + local-map (keymap > + (mode-line keymap > + (mouse-1 . ispell-change-dictionary)))))) > > Which is kinda hacky, but... I guess you could use a symbol alternatively - or just define the whole lighter expression as a `defvar' instead? That might also make further changes easier. Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 19 18:34:15 2020 Received: (at 14957) by debbugs.gnu.org; 19 Sep 2020 22:34:15 +0000 Received: from localhost ([127.0.0.1]:48387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJlQt-0007Uy-6V for submit@debbugs.gnu.org; Sat, 19 Sep 2020 18:34:15 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJlQr-0007Uk-Io for 14957@debbugs.gnu.org; Sat, 19 Sep 2020 18:34:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+pUWg81C2osw3pZn3NwbdUsWbW2k0jjMeXKnZeUOtqc=; b=JBP88nhMO5WO6RqNeylAYs03rE 3IEoE8puF8t3Pc/fU8e1S1yr3e36BpSp8u/VCbsy/GcQp0zHEdN70xA9qNfU9fPnZNMU4WyGY7mkX f8IoP1QWr04aN3NpPKlpViDlb/XBEVf3I88UMww0kBJ4IH7vSJxyHf3HtwwSbi09XMt0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJlQi-0007NJ-9t; Sun, 20 Sep 2020 00:34:07 +0200 From: Lars Ingebrigtsen To: Michael Heerdegen Subject: Re: bug#14957: 24.3.50; Flyspell language visible in mode line References: <86y58teatq.fsf@missioncriticalit.com> <87wqmfz96x.fsf@web.de> <86a9hevcyl.fsf@somewhere.org> <87mwled1jc.fsf@web.de> <87v9gbf9rf.fsf@gnus.org> <87bli3xh8c.fsf@web.de> <87r1qzdssi.fsf@gnus.org> <83bli33x8h.fsf@gnu.org> <87eemxsw4q.fsf@gnus.org> <877dspxutt.fsf@web.de> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUoM2RORmJXIyWS Rz0pFhcgFBQhK1n///8YXJYjAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+QJExYfLOmU1IsAAAG6SURB VDjLbZNNjtwgEIWZTa3jG0RlvI/MBUakyLqFwGtW3P8IeQXYxiPTalri49Ufr435+sWr3R2vzu3M f8y0/LoxiwLh3zMQ5mgVWPEDFNI9CwcW75hDPBVVtxD9Frck3oY0ADWQk+W0ZREFZQ6VxYcckCfk f6aR2vagJOccUs4HdUULJUrw1XWUObno9QHaEY3k53WsDxkEo6FIPZjiz+iDevKEYHIqbiBYZ7Bj blC0zqb6EaoHWR2HG5TeOVZ0zvEFmoBuEB6hOvDcAd2dd7DyujcFTWMfAGNXsCzLOavQinLe2iuH 6UMUgUl2z9uzD4yDG9hD/p7fPEdYQYGVq49WVYIL/qIme3Xex04Jdos7XIUavodAH4XgqGBZXcen olZ1it9t9gIPsU3HDQx5FgAPIHBJKcVUBUR6wOy5ARzh/qkIaEQVCfbB/TuUTQynw9R42jLnYPgW Inj0U5tvq/4gB3pTgU3hU2o71HIr4zKnuGILRx1LVWw9UsddFRMohAxemkxmYBQAWdQb8gyMKmzr /Amovi0F5XzjJyD8I8qyfOFDD1CpvIbC0MwrqPqHe0/+XtbPMFe+/2td6gjK62nSAAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIwLTA5LTE5VDIyOjMxOjQzKzAwOjAwyrJWDAAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMC0wOS0xOVQyMjozMTo0MyswMDowMLvv7rAAAAAASUVORK5CYII= X-Now-Playing: Anne Pigalle's _Everything Could Be So Perfect..._: "He! Stranger..." Date: Sun, 20 Sep 2020 00:34:02 +0200 In-Reply-To: <877dspxutt.fsf@web.de> (Michael Heerdegen's message of "Sun, 20 Sep 2020 00:31:10 +0200") Message-ID: <878sd5jt0l.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Michael Heerdegen writes: > Lars Ingebrigtsen writes: > >> + local-map (keymap >> + (mode-line keymap >> + (mouse-1 . ispell-change-dictionary)))))) >> >> Which is kinda hacky, but... > > I guess you could use [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14957 Cc: Eli Zaretskii , 14957@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: -1.0 (-) Michael Heerdegen writes: > Lars Ingebrigtsen writes: > >> + local-map (keymap >> + (mode-line keymap >> + (mouse-1 . ispell-change-dictionary)))))) >> >> Which is kinda hacky, but... > > I guess you could use a symbol alternatively - or just define the whole > lighter expression as a `defvar' instead? That might also make further > changes easier. Oh, yeah, that should work -- define-minor-mode uses the form after :lighter verbatim, but a single-symbol value is also valid (i.e., it's used as a variable). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:43:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Oct 2020 11:24:10 +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