From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 29 10:39:19 2019 Received: (at submit) by debbugs.gnu.org; 29 Jul 2019 14:39:19 +0000 Received: from localhost ([127.0.0.1]:48907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hs6o2-0001x6-FP for submit@debbugs.gnu.org; Mon, 29 Jul 2019 10:39:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:59332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hs1nB-0006WI-WE for submit@debbugs.gnu.org; Mon, 29 Jul 2019 05:18:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56155) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs1nA-0001u2-Ei for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2019 05:18:05 -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,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs1n8-0007IF-Sg for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2019 05:18:04 -0400 Received: from cryptoparty-celle.de ([5.189.176.217]:58633) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hs1n8-0007DH-D5 for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2019 05:18:02 -0400 Received: by cryptoparty-celle.de (Postfix, from userid 114) id CAAFAC0671; Mon, 29 Jul 2019 11:17:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cryptoparty-celle.de; s=mail; t=1564391879; bh=SFYzfO4mf9SGxns2TxF0s/MNHBbxysnoEyvg/yvoNmU=; h=Date:From:To:Subject:From; b=QMsns01uQsTfzNBw3AKYovmOsPyTZbLjTZxMb6ZyDArzbkctCllvQ3MUj4qgMl1Qr hrECpKcK9X7dX3CHtiKpj8NEKZWhs/bvREe/I9RuYPeC+XFV/Yso73jLk9+e4Z3okK Xf0fjE9+z826SbLBETz+SRluYwFKDMTT1+f2Vqs4= Received: from ventiloplattform.tastytea.de (p200300C0871B8C00AC8F2F1ABF8B8139.dip0.t-ipconnect.de [IPv6:2003:c0:871b:8c00:ac8f:2f1a:bf8b:8139]) by cryptoparty-celle.de (Postfix) with ESMTPSA id 28062C0090 for ; Mon, 29 Jul 2019 11:17:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cryptoparty-celle.de; s=mail; t=1564391879; bh=SFYzfO4mf9SGxns2TxF0s/MNHBbxysnoEyvg/yvoNmU=; h=Date:From:To:Subject:From; b=QMsns01uQsTfzNBw3AKYovmOsPyTZbLjTZxMb6ZyDArzbkctCllvQ3MUj4qgMl1Qr hrECpKcK9X7dX3CHtiKpj8NEKZWhs/bvREe/I9RuYPeC+XFV/Yso73jLk9+e4Z3okK Xf0fjE9+z826SbLBETz+SRluYwFKDMTT1+f2Vqs4= Date: Mon, 29 Jul 2019 11:17:56 +0200 From: tastytea To: bug-gnu-emacs@gnu.org Subject: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column Message-ID: <20190729111756.0665feb6@ventiloplattform.tastytea.de> Jabber-ID: tastytea@tastytea.de MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/3JJiUPLF9T1KxzVR4oODacA"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 5.189.176.217 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 29 Jul 2019 10:39:14 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --Sig_/3JJiUPLF9T1KxzVR4oODacA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable whitespace-mode will highlight long lines starting at 70 characters instead of what fill-column is set to, if whitespace-line-column is set to nil. To reproduce: 1. Create the file test.cfg with this as the first line: # -*- fill-column: 200 -*- 2. Run emacs -Q 3. Execute the following commands: (setq whitespace-line-column nil) (add-hook 'conf-mode-hook (lambda () (whitespace-mode))) 4. Open test.cfg and type more than 70 characters After disabling whitespace-mode and enabling it again, whitespace-line-column is set correctly to 200. In GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-07-02 built on ventiloplattform Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Gentoo Base System release 2.6 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. test.cfg has auto save data; consider M-x recover-this-file Making completion list... Configured using: 'configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc --localstatedir=3D/var/lib --disable-silent-rules --docdir=3D/usr/share/doc/emacs-26.2 --htmldir=3D/usr/share/doc/emacs-26.2/html --libdir=3D/usr/lib64 --program-suffix=3D-emacs-26 --includedir=3D/usr/include/emacs-26 --infodir=3D/usr/share/info/emacs-26 --localstatedir=3D/var --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=3Dinotify --enable-acl --with-dbus --with-modules --without-gameuser --with-gpm --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2 --without-mailutils --without-selinux --with-gnutls --without-libsystemd --with-threads --without-wide-int --with-zlib --with-sound=3Dno --with-x --without-ns --without-gconf --without-gsettings --with-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft --without-cairo --without-libotf --without-m17n-flt --with-x-toolkit=3Dgtk3 --with-xwidgets 'CFLAGS=3D-march=3Dnative -O2 -pipe' CPPFLAGS=3D 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed'' Configured features: XPM JPEG TIFF GIF PNG RSVG GPM DBUS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LCMS2 Important settings: value of $LC_CTYPE: de_DE.utf8 value of $LC_TIME: en_DK.UTF-8 value of $LANG: de_DE.utf8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Conf[Space] Minor modes in effect: whitespace-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils disp-table whitespace conf-mode edmacro kmacro cl-loaddefs cl-lib elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 100238 7390) (symbols 48 20661 1) (miscs 40 61 129) (strings 32 29484 1113) (string-bytes 1 794338) (vectors 16 15267) (vector-slots 8 515682 9350) (floats 8 51 66) (intervals 56 351 0) (buffers 992 14)) --Sig_/3JJiUPLF9T1KxzVR4oODacA Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXT65xAAKCRDPw5SX8bJu B0F5AP9/VaEN6Xzr7UTznN96sNjLz3DaF3jwsuFBLHSTuuOxVgD+IbYDv5xOVCDi dThatprs7WVKmej+pb3PUOgLVeZ4P6o= =Kocf -----END PGP SIGNATURE----- --Sig_/3JJiUPLF9T1KxzVR4oODacA-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 10:57:46 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 14:57:46 +0000 Received: from localhost ([127.0.0.1]:57560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZ06-0004l3-GI for submit@debbugs.gnu.org; Fri, 02 Aug 2019 10:57:46 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:32778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZ04-0004kr-Jq for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 10:57:45 -0400 Received: by mail-wm1-f53.google.com with SMTP id h19so1652174wme.0 for <36837@debbugs.gnu.org>; Fri, 02 Aug 2019 07:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=9LT07QFBn3uxat+97mdaiKiESRZmb661nJZcnoK0ZGk=; b=E6zBPMeAwF/B/N2EY1x7iWTBDf681ONvtRYtx9ljUNT9rJgPHFjR8j9jPImffDBzBy OVpDLWa2xXZyagca6B1WO4UEeOiBGKhYqG2ePNjxV8yJ7YVy+3JNb/duKQa4GBRdnx+L VzKO9esvjDlzV6vclhRrsV4+4Ao7Y/slZFp7MVGU59vyo8O79tq+mx4l+YgbboZj9SlG Yg6e+4vTY+kFezFrXLf1imLy7FjaKwpOleeg9SfbcZbeQFURz8W7QCukQzmfNluSEtT8 ExYPma7b2n8HiftYCKhuHhihnv8HHpIHYwPw6HzHcvyquCJwR5I6WFHwELEku5OmQlWR lr6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=9LT07QFBn3uxat+97mdaiKiESRZmb661nJZcnoK0ZGk=; b=B7GnE9mOvT0dM4zGjxuKuosnml6JKx6o6bNSuMReZpsU9LhNAlCzXcpM4dF2lU9M92 Fn4IXnHNrSDyPe+NjqBPUPAzCALh+sRca35BCge6pkjchy1SSSWbtDUEoZpR/bebajtZ pk9I4PI6Wdl2YSmV055mnh92qwybCq+XsU+/wsGxiSivRIpOCo03zxnJF0+zsGvkoekn nsDaTV8JIB1F250MNu8Tn8A4Nkt04FtovqQ+YE0yrrtSJ4Npfp9bdcMqZkJ+pvodqwFD h/7mnuTBdliVTeGA2UZDCBh9IPBVmhJsaNuQUPclnHFeopGnTmLBpuuAU9mDYvOqhq0v gYIA== X-Gm-Message-State: APjAAAWZhRgwWLk9c0GK23DHocs82VRSkHvUw+bA7EdVUZQ05Vjx54uM kSzbLGSVmkhz0Z2Vfqc/Bu8= X-Google-Smtp-Source: APXvYqzOpXOcLRx9VUgDHNnfwlsEP0j4PrFA+FIk+hT4l9juy38KUCKxNpeRNBDM1bpPS3KPHkPFQA== X-Received: by 2002:a1c:ddc1:: with SMTP id u184mr4739906wmg.158.1564757858733; Fri, 02 Aug 2019 07:57:38 -0700 (PDT) Received: from localhost ([185.112.167.114]) by smtp.gmail.com with ESMTPSA id x6sm80229905wrt.63.2019.08.02.07.57.38 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 07:57:38 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: tastytea Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <20190729111756.0665feb6@ventiloplattform.tastytea.de> (tastytea@tastytea.de's message of "Mon, 29 Jul 2019 11:17:56 +0200") References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Fri, 02 Aug 2019 16:57:37 +0200 Message-ID: <87k1bvfwda.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: 36837@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 (-) On Mon, 29 Jul 2019 11:17:56 +0200 tastytea@tastytea.de wrote: > whitespace-mode will highlight long lines starting at 70 characters > instead of what fill-column is set to, if whitespace-line-column is set > to nil. > > To reproduce: > > 1. Create the file test.cfg with this as the first line: > > # -*- fill-column: 200 -*- > > 2. Run emacs -Q > > 3. Execute the following commands: > > (setq whitespace-line-column nil) > (add-hook 'conf-mode-hook > (lambda () (whitespace-mode))) > > 4. Open test.cfg and type more than 70 characters > > After disabling whitespace-mode and enabling it again, > whitespace-line-column is set correctly to 200. Yes, unfortunately, file-local variables are only setup (via `hack-local-variables') _after_ the mode hooks are run (cf. `run-mode-hooks'), so `whitespace-color-on' still sees the original `fill-column' the first time. Intuitively this order seems backwards to me, but I assume there must be a (good?) reason? I'd like to hear it, in any case. You can work around this by hacking^W having `hack-local-variables' also run in your hook function: (add-hook 'conf-mode-hook=20 (lambda () (hack-local-variables) (whitespace-mode)) BTW, it's usually better (e.g. for debugging purposes, removal/modification etc.) not to put lambdas into hooks. If you only need a particular mode, i.e. a single function/command, the lambda is redundant anyway: (add-hook 'some-hook #'some-mode) If you need more I suggest defining a named function. HTH, --=20 =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 11:04:40 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 15:04:40 +0000 Received: from localhost ([127.0.0.1]:57564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZ6m-0004wl-8r for submit@debbugs.gnu.org; Fri, 02 Aug 2019 11:04:40 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:35885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZ6k-0004wc-Cw for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 11:04:39 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 460VnK0XHbz1rQBT; Fri, 2 Aug 2019 17:04:36 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 460VnJ4j3Jz1qqkH; Fri, 2 Aug 2019 17:04:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id CnbT9cxSfAHA; Fri, 2 Aug 2019 17:04:35 +0200 (CEST) X-Auth-Info: IXX0Dyk9+/6decZggg5t0J4q4E+lTfPnKZuwVESxmjuNMSmU7nxsEr9eZVYbFdBg Received: from igel.home (ppp-46-244-186-159.dynamic.mnet-online.de [46.244.186.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 2 Aug 2019 17:04:35 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 434292C0F1C; Fri, 2 Aug 2019 17:04:35 +0200 (CEST) From: Andreas Schwab To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> X-Yow: Life is selling REVOLUTIONARY HAIR PRODUCTS! Date: Fri, 02 Aug 2019 17:04:35 +0200 In-Reply-To: <87k1bvfwda.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Fri, 02 Aug 2019 16:57:37 +0200") Message-ID: <874l2zvcak.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@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.5 (-) On Aug 02 2019, Štěpán Němec wrote: > Yes, unfortunately, file-local variables are only setup (via > `hack-local-variables') _after_ the mode hooks are run (cf. > `run-mode-hooks'), so `whitespace-color-on' still sees the original > `fill-column' the first time. > > Intuitively this order seems backwards to me, but I assume there must be > a (good?) reason? I'd like to hear it, in any case. I'd guess the reason is that file local variables should override mode stettings. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 11:11:48 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 15:11:48 +0000 Received: from localhost ([127.0.0.1]:57572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZDg-00057T-Dd for submit@debbugs.gnu.org; Fri, 02 Aug 2019 11:11:48 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:38322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZDe-000578-RR for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 11:11:47 -0400 Received: by mail-wm1-f47.google.com with SMTP id s15so45324027wmj.3 for <36837@debbugs.gnu.org>; Fri, 02 Aug 2019 08:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=BAiMvulbd7/1DvVO/NRzf0TUDBKW69AZiet40qooNKs=; b=TNupB69YvxOZmQscliinnjrMKL6M4OAqdb99sOCGvW1J6vkECN7DxJakmPAcpzyCro b6q8rqT1xXCozj770FVg05IRJd0Pm4T3hYdESuAv0dZAsu6wlVMIGCJv+yegyrofxLD4 6wt/DfO1wAhnSqmjbSNLYGKZVuGCGXwLPUB9YhdH7FrYTht5cvyvU0o4uaODa2BsuEZk D4nfnieu/Vj+F5Uos+YLxP+zQKIPb8l2A4PTZIe2E1Ww2lHHP13bWNU4f4rz5bzvi2mu qPoCveLoA5UWgms9p22qQtbkjg1oxkq0hO8bj6lpVo3wpplvXymqNQ8AHm4OI+/z2T5I oXxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=BAiMvulbd7/1DvVO/NRzf0TUDBKW69AZiet40qooNKs=; b=ObtTSiNCc0aCFrhzgbNqvQcAWxzGebpOPWcFYz/JMSv38029Ipq1MY/kSYL4a+myNZ +sZmTx+ecapwI5narTIA68J2nH6bZWvYCRfZCo3zdiBsyAwk+Hj77SPh4pw8IYyeQiXt Vmlf7KkBdkDdwvt8Dxn9kSn7wMbmT4LC0xumEvYOVyRg/0be93RUQ4a0ki+NgVZT95lW vel6UmEOHOwzs1rOyzPyva1isJTdk8FKCLElaaOEKEqlvf1SvWcPJuaJQKTZsN/MsnMQ xzcAG6bZSCdiADJ3XmZN6E8UVjhyoD/njK1hZeBqr3RQNdeqL9RkHlGZrvkK+mRXKJEw us5w== X-Gm-Message-State: APjAAAVvih7avaYsBdVm9FEiqNRByaEflR3Chz3KEkV2bcb/A/TuEyv+ 9Mn590tv9E9t/3u8yy1Rxyc= X-Google-Smtp-Source: APXvYqxbSNMvitRTjlcAxUPf4QO6cWuWs8cmzDDaVEN7OMd5Xe/TLl7cuYuAYi2KTdqnzwzX3u8VvQ== X-Received: by 2002:a05:600c:1007:: with SMTP id c7mr4691070wmc.161.1564758701020; Fri, 02 Aug 2019 08:11:41 -0700 (PDT) Received: from localhost ([185.112.167.114]) by smtp.gmail.com with ESMTPSA id g19sm90112114wmg.10.2019.08.02.08.11.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 08:11:40 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Andreas Schwab Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <874l2zvcak.fsf@igel.home> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu) Date: Fri, 02 Aug 2019 17:11:39 +0200 Message-ID: <87ftmjfvpw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@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 (-) On Fri, 02 Aug 2019 17:04:35 +0200 Andreas Schwab wrote: > On Aug 02 2019, =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec wrot= e: > >> Yes, unfortunately, file-local variables are only setup (via >> `hack-local-variables') _after_ the mode hooks are run (cf. >> `run-mode-hooks'), so `whitespace-color-on' still sees the original >> `fill-column' the first time. >> >> Intuitively this order seems backwards to me, but I assume there must be >> a (good?) reason? I'd like to hear it, in any case. > > I'd guess the reason is that file local variables should override mode > stettings. Sure, but isn't that precisely an argument for the reverse order? Typically those settings are in defvars/defcustoms and thus if set before loading the library the user value is respected. And on the other hand those variables are often used for setup (during loading) which is not automatically redone when modifying the value after the library is loaded (such as is the very case of this report), unless using some of the customize machinery, typically interactively. --=20 =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 11:15:12 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 15:15:12 +0000 Received: from localhost ([127.0.0.1]:57581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZGy-0005DR-6f for submit@debbugs.gnu.org; Fri, 02 Aug 2019 11:15:12 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:55590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZGv-0005DG-Ib for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 11:15:10 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 460W1S32D1z1rQBg; Fri, 2 Aug 2019 17:15:08 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 460W1S2ltFz1qqkd; Fri, 2 Aug 2019 17:15:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 7SVrMpd__YSZ; Fri, 2 Aug 2019 17:15:07 +0200 (CEST) X-Auth-Info: zlb5PTU7xN/ckbXmXgQTTT9hDRkl6KGbm4R7JjYxKG37kGpSaAiWmsOjsUDi4Wwn Received: from igel.home (ppp-46-244-186-159.dynamic.mnet-online.de [46.244.186.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 2 Aug 2019 17:15:07 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 1CCF32C0099; Fri, 2 Aug 2019 17:15:07 +0200 (CEST) From: Andreas Schwab To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> X-Yow: I'm also against BODY-SURFING!! Date: Fri, 02 Aug 2019 17:15:07 +0200 In-Reply-To: <87ftmjfvpw.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Fri, 02 Aug 2019 17:11:39 +0200") Message-ID: <87zhkrtx8k.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@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.5 (-) On Aug 02 2019, Štěpán Němec wrote: > On Fri, 02 Aug 2019 17:04:35 +0200 > Andreas Schwab wrote: > >> On Aug 02 2019, Štěpán Němec wrote: >> >>> Yes, unfortunately, file-local variables are only setup (via >>> `hack-local-variables') _after_ the mode hooks are run (cf. >>> `run-mode-hooks'), so `whitespace-color-on' still sees the original >>> `fill-column' the first time. >>> >>> Intuitively this order seems backwards to me, but I assume there must be >>> a (good?) reason? I'd like to hear it, in any case. >> >> I'd guess the reason is that file local variables should override mode >> stettings. > > Sure, but isn't that precisely an argument for the reverse order? No. File local variables should have the last say. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 11:20:31 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 15:20:31 +0000 Received: from localhost ([127.0.0.1]:57591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZM6-0005Le-Kr for submit@debbugs.gnu.org; Fri, 02 Aug 2019 11:20:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZM5-0005LS-5A for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 11:20:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1htZLv-0007IS-31; Fri, 02 Aug 2019 11:20:20 -0400 Received: from [176.228.60.248] (port=2358 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1htZLu-00089f-7K; Fri, 02 Aug 2019 11:20:18 -0400 Date: Fri, 02 Aug 2019 18:20:13 +0300 Message-Id: <83a7crfvbm.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= In-reply-to: <87ftmjfvpw.fsf@gmail.com> (stepnem@gmail.com) Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36837 Cc: tastytea@tastytea.de, 36837@debbugs.gnu.org, schwab@linux-m68k.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: Štěpán Němec > > Date: Fri, 02 Aug 2019 17:11:39 +0200 > Cc: tastytea , 36837@debbugs.gnu.org > > On Fri, 02 Aug 2019 17:04:35 +0200 > Andreas Schwab wrote: > > > I'd guess the reason is that file local variables should override mode > > settings. > > Sure, but isn't that precisely an argument for the reverse order? No. The logic here is that a mode hook is more general than file-local variables (because a mode hook affects _all_ files that are visited with that mode). From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 11:22:32 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 15:22:33 +0000 Received: from localhost ([127.0.0.1]:57604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZO4-0005PX-Mv for submit@debbugs.gnu.org; Fri, 02 Aug 2019 11:22:32 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:41566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZO3-0005PK-5m for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 11:22:31 -0400 Received: by mail-wr1-f41.google.com with SMTP id c2so74359450wrm.8 for <36837@debbugs.gnu.org>; Fri, 02 Aug 2019 08:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=gWL24NrnJT2a5/29MPKsAXHQEpl5ZKsmDeRsKChNnzM=; b=ZV1KPjbl/bG1WRV9YYU2KPNKu4xeHFxPVTVYraQgogd2bwHDupcpJxHAvcMdZMb712 WpfPd8XFD3Nh1P6Tab5VVF35cAW65oUkQ55ee4CoopBJmQqa42G4oy1Fnzg6n/11NMpe YVAkHlz3b740Z7xv2DKeHhFmrkKddXTqCodCjRbuAbE+WN83fpP4xkkzNP/55Ljnqi49 2yFyn0pblQ/vsHZFUeYnP3kkm5styLvxjP5t09KgDkEv0G9U6J12lRv/bXXnWxlycExW z2Ksj1c5hb+9B3lOY7831uf4/ruxNpPaGkbK6sHMSyXgJeyCx4kOJlXkOj95Sk00BqhS hI/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=gWL24NrnJT2a5/29MPKsAXHQEpl5ZKsmDeRsKChNnzM=; b=ndBodglLwf0lPlR8mS2V83UTFWqyWQhd6N1spGKAtQlaJZy+egtHaH19ZqDzgjxOb3 6HVgwi88/hnKHA3/2EWDlhIAhkV84InXK0QtwtJcZDBaE5Hx1E+pMuViwsfP6ikF4qlE 0Or+yFNqXFcZ751cqk14k9McYn8qLf9D/ijP3UYQFv6OT+vTiFzr9OYNgz95DCoNHMDU d2AUo3yP+3RXMYwP9U8nYBQgPvo7mJwMPRkC38jw15fUeBfaLSAOtttu7AdP4c9aWRT/ LCl5n40FHHjAZE0O3DhGOtvE5u9ERd2x393kOqML/XomoqVEyND9zgQnqoMBbuV5NpAu dvDA== X-Gm-Message-State: APjAAAXmzwrYAbp2ZYbabSYJlEaNg1rKZboF+zXhVxQamMRtJyBU4NK0 sSmTRkskKxyyor2+FXjRUz8= X-Google-Smtp-Source: APXvYqy3n9INRnw66AuHYthTLEML33artYhEajPUA8wNiB9QSr0sPTogK/x0u2HWlcc5LhJbw6KDZg== X-Received: by 2002:adf:df90:: with SMTP id z16mr7325829wrl.331.1564759345345; Fri, 02 Aug 2019 08:22:25 -0700 (PDT) Received: from localhost ([185.112.167.114]) by smtp.gmail.com with ESMTPSA id k124sm127359573wmk.47.2019.08.02.08.22.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 08:22:24 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Andreas Schwab Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <87zhkrtx8k.fsf@igel.home> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <87zhkrtx8k.fsf@igel.home> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu) Date: Fri, 02 Aug 2019 17:22:24 +0200 Message-ID: <87blx7fv7z.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@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 (-) On Fri, 02 Aug 2019 17:15:07 +0200 Andreas Schwab wrote: >> Sure, but isn't that precisely an argument for the reverse order? > > No. File local variables should have the last say. Right. As illustrated by this bug report. :-D --=20 =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 11:30:51 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 15:30:51 +0000 Received: from localhost ([127.0.0.1]:57609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZW6-0005dC-Gx for submit@debbugs.gnu.org; Fri, 02 Aug 2019 11:30:50 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:36730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZW4-0005cx-I6 for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 11:30:48 -0400 Received: by mail-wr1-f43.google.com with SMTP id n4so77692337wrs.3 for <36837@debbugs.gnu.org>; Fri, 02 Aug 2019 08:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=MBmFRq2Likvaspje4enYTbCTHMvzWIHAD40tMS0lmSU=; b=glVF8tBVWIITZNftwBr4+gASYZnShj/YiIWHfKw6O+sF1j7kwMsPWiD/fqG0xE5fTT F7EEmumSk27cuv/RIDne5NW5VUOK6rL+o5dV9r83UBtdIUOnqcz873tKeuBtKG7+ebGe UTRXBsIbw2xUSnYTYsD5UDliccZLuC+uZLnyaVUNmrv8y/0Z6+OaQj9t/vDP0eccG85+ VZECGxCghvXjMcsDeuZ/UUY9fsIAUV7VStiV+JAYllTiZ/8nhOkmfqfKbw88Gt3Sz5WU Tdu1bwLtRs+2vgnM2DVqKHqL+gZre/YPtBS8DYDzZTnVuB+hVBQDXgZ59IJYDbeMofXD 3/HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=MBmFRq2Likvaspje4enYTbCTHMvzWIHAD40tMS0lmSU=; b=Jy93XdFBu8A/5UbEX3Uc30kNI5jgmJhAbD25nI8lTksdSJHbZ9Fe0iCHSZ9gpEB1a0 uyloK6/a4yQ3q3IarmdWLGszx9bdMfqmqtN0/7ZZ8bWzPcPdoA4wBgbe4wJafIlBuR6w 11uHnFph2sW+lcXrgE9HrnzJ+bmEVjK7rCG+Koc+MIyUPC9a+Jr7g+3dzPf8Suyv22rN PNut7c+Gk8qmFZVdhxGKdUgVXpUMd4YL6WnxqhtzqsrzJJvUUQ7PEp+0ue4ibzOKJLzg 0kTtMMIap9Cf9cc1FwQyYJ57V+gCFVfkqSS5fMcwFdQpj/cHOycz5CHCWcN+74goJYq3 EWVw== X-Gm-Message-State: APjAAAV/7beL1pyACxX9iAump4CTK2hmbUtjQHIPk5mvOFZ6yhfdAiVQ wWvlAp+5B/eOj5d0rbJtdsM= X-Google-Smtp-Source: APXvYqyAsdPdqN532jNGij6c+h8oyELn4aUYUQb6bBM1goQrCqMHM+VyvVEJNIy8OYDrVbiCnAyKPQ== X-Received: by 2002:a5d:4d81:: with SMTP id b1mr67636303wru.27.1564759842785; Fri, 02 Aug 2019 08:30:42 -0700 (PDT) Received: from localhost ([185.112.167.114]) by smtp.gmail.com with ESMTPSA id f70sm104366562wme.22.2019.08.02.08.30.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 08:30:42 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Eli Zaretskii Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <83a7crfvbm.fsf@gnu.org> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <83a7crfvbm.fsf@gnu.org> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu) Date: Fri, 02 Aug 2019 17:30:41 +0200 Message-ID: <877e7vfuu6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea@tastytea.de, 36837@debbugs.gnu.org, schwab@linux-m68k.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 (-) On Fri, 02 Aug 2019 18:20:13 +0300 Eli Zaretskii wrote: >> Sure, but isn't that precisely an argument for the reverse order? > > No. The logic here is that a mode hook is more general than > file-local variables (because a mode hook affects _all_ files that are > visited with that mode). Precisely. Maybe I'm being thick, but have you (and Andreas) actually read what I wrote? I.e., instead of restating the obvious (mode hooks are more general and should be overridden by file-local variables; no disagreement there), could you provide some concrete counter-arguments to my arguments? --=20 =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 11:33:06 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 15:33:06 +0000 Received: from localhost ([127.0.0.1]:57613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZYI-0005gp-4Z for submit@debbugs.gnu.org; Fri, 02 Aug 2019 11:33:06 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:58833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htZYF-0005gf-Fi for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 11:33:04 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 460WQ62h9Hz1rQBC; Fri, 2 Aug 2019 17:33:02 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 460WQ62JC3z1qqkG; Fri, 2 Aug 2019 17:33:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id lmrs-Tb7pnTv; Fri, 2 Aug 2019 17:33:01 +0200 (CEST) X-Auth-Info: gCgxealhLkRPF/z2IxaPuN0ZPoBHU8g/oyT6Et3X59bVmScjRupJZ9kuYHFlUu6W Received: from igel.home (ppp-46-244-186-159.dynamic.mnet-online.de [46.244.186.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 2 Aug 2019 17:33:01 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 1ABF72C0099; Fri, 2 Aug 2019 17:33:01 +0200 (CEST) From: Andreas Schwab To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <87zhkrtx8k.fsf@igel.home> <87blx7fv7z.fsf@gmail.com> X-Yow: YUGGA-HUGGA-BUGGA-TUGGA!! HEY-HEY!! A TRAIN STATION!! No, a POST OFFICE!! An OCEAN LINER!! No, I think it's a CAFETERIA!!! Date: Fri, 02 Aug 2019 17:33:01 +0200 In-Reply-To: <87blx7fv7z.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Fri, 02 Aug 2019 17:22:24 +0200") Message-ID: <87v9vftweq.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@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.5 (-) On Aug 02 2019, Štěpán Němec wrote: > Right. As illustrated by this bug report. :-D No. It has nothing to do with file-local variables. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 14:52:08 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 18:52:08 +0000 Received: from localhost ([127.0.0.1]:57702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htcet-0004eN-VC for submit@debbugs.gnu.org; Fri, 02 Aug 2019 14:52:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htcer-0004dq-N7 for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 14:52:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1htcel-00084w-0j; Fri, 02 Aug 2019 14:51:59 -0400 Received: from [176.228.60.248] (port=3288 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1htceh-0004UL-U1; Fri, 02 Aug 2019 14:51:57 -0400 Date: Fri, 02 Aug 2019 21:51:51 +0300 Message-Id: <838ssbfliw.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= In-reply-to: <877e7vfuu6.fsf@gmail.com> (message from =?utf-8?B?xaB0xJtw?= =?utf-8?B?w6FuIE7Em21lYw==?= on Fri, 02 Aug 2019 17:30:41 +0200) Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <83a7crfvbm.fsf@gnu.org> <877e7vfuu6.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36837 Cc: tastytea@tastytea.de, 36837@debbugs.gnu.org, schwab@linux-m68k.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: Štěpán Němec > Cc: schwab@linux-m68k.org, tastytea@tastytea.de, 36837@debbugs.gnu.org > Date: Fri, 02 Aug 2019 17:30:41 +0200 > > Maybe I'm being thick, but have you (and Andreas) actually read what > I wrote? Do you realize how rude this kind of question sounds? > I.e., instead of restating the obvious (mode hooks are more general > and should be overridden by file-local variables; no disagreement > there), could you provide some concrete counter-arguments to my > arguments? We just did, both of us. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 15:10:45 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 19:10:45 +0000 Received: from localhost ([127.0.0.1]:57728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htcwu-0007GY-JL for submit@debbugs.gnu.org; Fri, 02 Aug 2019 15:10:44 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htcws-0007GI-9q for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 15:10:42 -0400 Received: by mail-wr1-f65.google.com with SMTP id r1so78189017wrl.7 for <36837@debbugs.gnu.org>; Fri, 02 Aug 2019 12:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=MNi9mzXBoaIPXLuQJOI7MxaJemQOxxBNuNzn85/f3uY=; b=mT069qDsvQmphlL/D3wM23vnQHYCUVy9u6LNxbz1Y66nj9wL27k0C22XbYk316wsPU TQEAkMQe56xjK9hIxAp4IDcOThMMLMRU4ZGtMfAW333zwHkbJJHUaQtgY8pbmN4fRysw GWMGOr+m0ZHnZWL6vjAPxqNmat0NgDNDk+M7l4Yec6HzbWGPS4XIm0WlX4hMooAxeWa3 afNY1il+trthc6LA3Cz85mBJvKzYAf33X6bcm8SCdWwjVwyklSpbM6KS6t3l9+FTqyY9 LwfgHOz5NbtgVGD0aeoAgfuN6v1/DJkEplHTbQJNBegZBz5FCrXfmfFsLrBY5K5OsRyL sHpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=MNi9mzXBoaIPXLuQJOI7MxaJemQOxxBNuNzn85/f3uY=; b=phsv/qitkm3Dvm58hJsBOEe8XG1njBv5CggoVkwLiwKlvhLJqjtDVcns9RuhkFzHAx +gJ6W3g22BVFEwEpO5mlnbzMcrRUoTu1ahyk3UgNdRfgr81jtE/G30lolRMNg36J3EgZ 0GbU0sOs3kdpj/+zML2L0q5l/eawNWpFWQuREBprtWHaLBSFEMf74WhGy/Vp6/pasirl v279KaB9k+NACi8iB+fDVmhZ/LmLz0eiFkJLYRphcMfTXiAYKEp9BHO9S/9+L3R3e/cW e20QH2lAYeM0qrHi5R6VJN4C9ML+CI3BXRN7aBPOQAorwV3e+TVhNzIeg4sCWiDY7fG4 z6og== X-Gm-Message-State: APjAAAUKjlaeXaRu8BM61Ezxa4Et7N9r6a2SMSlYsjGknq6js+5mhjN8 93diw1cHmz4AxT4lhycIh/E= X-Google-Smtp-Source: APXvYqyAnwg8WJNxd7SFiSFcb/r9eDO86e3MhpAsqtoVVV5pJmg9fmwEQJaxcXHjPQf56yw40LvuIg== X-Received: by 2002:adf:e8cb:: with SMTP id k11mr63494764wrn.244.1564773036506; Fri, 02 Aug 2019 12:10:36 -0700 (PDT) Received: from localhost ([185.112.167.114]) by smtp.gmail.com with ESMTPSA id n8sm63707674wro.89.2019.08.02.12.10.35 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 12:10:35 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Eli Zaretskii Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <838ssbfliw.fsf@gnu.org> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <83a7crfvbm.fsf@gnu.org> <877e7vfuu6.fsf@gmail.com> <838ssbfliw.fsf@gnu.org> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu) Date: Fri, 02 Aug 2019 21:10:34 +0200 Message-ID: <87ftmjcrit.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea@tastytea.de, 36837@debbugs.gnu.org, schwab@linux-m68k.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 (-) On Fri, 02 Aug 2019 21:51:51 +0300 Eli Zaretskii wrote: >> Maybe I'm being thick, but have you (and Andreas) actually read what >> I wrote? > > Do you realize how rude this kind of question sounds? If I did I definitely wouldn't have posed it that way and I'm sorry if that upset you. I simply stated what I (still) mean: it seems to me that your and Andreas's response did not address what I wrote, and I can only think of two possible explanations: either you actually really did and somehow I don't realize it (i.e., I'm stupid, thick or however one might call it, or simply misunderstanding), or you must be misunderstanding what I wrote. >> I.e., instead of restating the obvious (mode hooks are more general >> and should be overridden by file-local variables; no disagreement >> there), could you provide some concrete counter-arguments to my >> arguments? > > We just did, both of us. OK. I don't see it that way or just don't get it, I'm sorry. No need to assume ill will or offense, I have no idea why I should want to waste our time that (or any other) way. --=20 =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 15:28:11 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 19:28:11 +0000 Received: from localhost ([127.0.0.1]:57757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdDm-0007jP-RX for submit@debbugs.gnu.org; Fri, 02 Aug 2019 15:28:11 -0400 Received: from mail-io1-f48.google.com ([209.85.166.48]:34269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdDk-0007iy-S2 for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 15:28:09 -0400 Received: by mail-io1-f48.google.com with SMTP id k8so154601844iot.1 for <36837@debbugs.gnu.org>; Fri, 02 Aug 2019 12:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=/VcuDPJUUxF1V3yLEtTe9SaX2uyO+v7uYkkDLuL5ahk=; b=itdwNPx2Jp5F49uRjm50s8OxG9aE4obtlJPeLWxnG+BKVeo9D2V6Qu0KsSmnWBBVqL wiTAdL6JxrTa/iIoSLH11JYGWEEenCLmDl3dZuoievc+67SPVRvXmVjlPdMCGmHznjYA awjlpeuu58sSEoWJiQCwGwBotSFxmFEAttrZyab0iBpw1Inaqve8W2d1p4r2D1pC5FIR pyKJVwA5voaf88BE4k8sDQAIsnjGpw/cU/d3cXth8Mhtuus+Zj7HVlUBjZWZuADFPSn6 452/dhQNrbtoA/TQp2ngv6VXRgUtT+5cHGHd9vVRMFj14M8XpQWx3teIFcDua4Q2sq2v C+rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=/VcuDPJUUxF1V3yLEtTe9SaX2uyO+v7uYkkDLuL5ahk=; b=uN3XAhabmQDVCI5SQsn28rF80+duf8174635wfYMB9miKzn9E6TsX2yBL3udLfSPPg jati6nlKkjZTZfAEtEZoDsJPJ0JZWI1p1itujxzf4o5RiOVcukDOC1rFJW6CstsGmGHm hl01LawhiOZ2hwLLLl+IuM8twiSBQoUkWT6ffJLq/YXdzmyY2wEvvkisAg7GrIVHVsTy izZyl+9AIM9LvMG1ul9wrdNiZHsqfB/BMPtl4ORpPeGDcXfUBxDZOVVeC9nQXiOC8Spi M6Zj6sqsyZA+0vLGJ1G2arI0GHhVtDslpc/fMD7q8gelTIOKx3cBK1cWBzjjo6VbOP7M 6bAw== X-Gm-Message-State: APjAAAVxgSt9sy9oILlm1QOV5Zgt35vVeYTInlCH0hqV8iCc2PnlBZEO Iw/QxTRvlx/r3ezgLyggdvEV+oNh X-Google-Smtp-Source: APXvYqzfXy3MbykNnZWR+fvAzWlBtFOHXZxgpwuwarqs/jbwykuWmC1WEWnVPoD2quRmS56MfxItcg== X-Received: by 2002:a6b:f406:: with SMTP id i6mr55568007iog.110.1564774082188; Fri, 02 Aug 2019 12:28:02 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id d25sm62592284iom.52.2019.08.02.12.28.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Aug 2019 12:28:01 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> Date: Fri, 02 Aug 2019 15:28:01 -0400 In-Reply-To: <87ftmjfvpw.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Fri, 02 Aug 2019 17:11:39 +0200") Message-ID: <857e7v4bb2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@debbugs.gnu.org, Andreas Schwab 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 (-) =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > On Fri, 02 Aug 2019 17:04:35 +0200 > Andreas Schwab wrote: > >> On Aug 02 2019, =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec wro= te: >> >>> Yes, unfortunately, file-local variables are only setup (via >>> `hack-local-variables') _after_ the mode hooks are run >> >> I'd guess the reason is that file local variables should override mode >> stettings. > > Sure, but isn't that precisely an argument for the reverse order? > Typically those settings are in defvars/defcustoms and thus if set > before loading the library the user value is respected. It sounds like you are confusing defcustom settings with file-local variable settings. Those are two very different things. At any rate, there is no "library being loaded" here. See also (info "(emacs) File Variables") From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 15:39:41 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 19:39:41 +0000 Received: from localhost ([127.0.0.1]:57768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdOv-0001iS-8d for submit@debbugs.gnu.org; Fri, 02 Aug 2019 15:39:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdOt-0001iF-H7 for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 15:39:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1htdOg-0006Xl-6c; Fri, 02 Aug 2019 15:39:28 -0400 Received: from [176.228.60.248] (port=2241 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1htdOe-0007Td-1u; Fri, 02 Aug 2019 15:39:26 -0400 Date: Fri, 02 Aug 2019 22:39:18 +0300 Message-Id: <834l2zfjbt.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= In-reply-to: <87ftmjcrit.fsf@gmail.com> (message from =?utf-8?B?xaB0xJtw?= =?utf-8?B?w6FuIE7Em21lYw==?= on Fri, 02 Aug 2019 21:10:34 +0200) Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <83a7crfvbm.fsf@gnu.org> <877e7vfuu6.fsf@gmail.com> <838ssbfliw.fsf@gnu.org> <87ftmjcrit.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36837 Cc: tastytea@tastytea.de, 36837@debbugs.gnu.org, schwab@linux-m68k.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: Štěpán Němec > Cc: schwab@linux-m68k.org, tastytea@tastytea.de, 36837@debbugs.gnu.org > Date: Fri, 02 Aug 2019 21:10:34 +0200 > > >> I.e., instead of restating the obvious (mode hooks are more general > >> and should be overridden by file-local variables; no disagreement > >> there), could you provide some concrete counter-arguments to my > >> arguments? > > > > We just did, both of us. > > OK. I don't see it that way or just don't get it, I'm sorry. Once again: file-local variables is a way for a file to override _every_ other possible setting. That includes any user customizations and everything else, because all of the other means to give variables non-default values are not specific to one file, they always affect more than one. If that doesn't address your arguments, please consider elaborating those arguments. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 15:45:45 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 19:45:45 +0000 Received: from localhost ([127.0.0.1]:57772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdUn-0001s1-1O for submit@debbugs.gnu.org; Fri, 02 Aug 2019 15:45:45 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:36448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdUl-0001ro-AE for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 15:45:43 -0400 Received: by mail-wm1-f41.google.com with SMTP id g67so63265864wme.1 for <36837@debbugs.gnu.org>; Fri, 02 Aug 2019 12:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=oGZ2VRXbyQvM69EpW7ZbyeLVr0hYNbdW/rWNoRbv+Nc=; b=eLGxcgEkXAi00tFH/L/qTOXhaomoLxRR2+CWV8V7+s3uhAn8kFOeI2+3nTnlh1MLEU 8jHxeCD3/ZfZqFYWmbJSP/ETzlmQ2/P+wK7mLSmIN6sRcYT507MGJlEI4RTh0Q696VY3 8CwTTqT66jVs3McpEAnO5tZrG+MLfJ2zBPv+KH8uPJcSPc7P/Tlke4Hyv8fThjaqz4qe hmwIhtGoqu97epmQqxwWhysCge5RuvbC8sPqDrfhJnA8fw+5kZC8DhX7Dg/px+EAEx7F EuUUHR80wUufnQXod76+egjnjZVJG0yiLYIvkB+86lTUPFSVm210TfvLLYPXMrJJUJu4 gM3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=oGZ2VRXbyQvM69EpW7ZbyeLVr0hYNbdW/rWNoRbv+Nc=; b=WkEb7sRlf/RwTpJSIHyRMrNg3Z7ALiAk10Pijpjtr0fEcxxot1Tgw7EtxSxq95EKn/ cZfe+TfESWTfbVw/gIQirnRVhddNxuFg1PmmkAAz1Z56yzU/HdxaeG3HyZep1k5gnjqu szVGZGGH+I5WmMxB8pFjeS+GIlUx2JctzJuy7+LfAn3MgupINytpKUqXoan8K7tR1rgN vYGrKxxUc7Q+NMaiiTTw9IOF6eNC0HCDf66KucJs/5H6sktVgX9zlVi1exA5yT99t2Uc VmlB/u9Cg+hf6rdALoKYZ62YHkssI0A9kcPnEp0/YLfC0VYVpSrjoTXb1jkmHDVZavjk ehcw== X-Gm-Message-State: APjAAAU7xOaNwlM270CwjL4afgRvFgAiT/k0mc7BEzg4RHByZYhAwicy eW2ejhgpTy/zsNf09ZEqiaY= X-Google-Smtp-Source: APXvYqzTPNAb31RTxZggyVoDSIW+u/75f1updj1H4rfT19NI9/gy04sJv4E+qxYn95TnHyb7BI5q7g== X-Received: by 2002:a1c:99ca:: with SMTP id b193mr5459867wme.31.1564775137350; Fri, 02 Aug 2019 12:45:37 -0700 (PDT) Received: from localhost ([185.112.167.114]) by smtp.gmail.com with ESMTPSA id n2sm51826261wmi.38.2019.08.02.12.45.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 12:45:36 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Noam Postavsky Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <857e7v4bb2.fsf@gmail.com> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <857e7v4bb2.fsf@gmail.com> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu) Date: Fri, 02 Aug 2019 21:45:36 +0200 Message-ID: <87blx7cpwf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@debbugs.gnu.org, Andreas Schwab 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 (-) On Fri, 02 Aug 2019 15:28:01 -0400 Noam Postavsky wrote: > It sounds like you are confusing defcustom settings with file-local > variable settings. Those are two very different things. At any rate, > there is no "library being loaded" here. > > See also (info "(emacs) File Variables") I'm not sure what you mean. For me there are two issues here: the particular case described in this bug report, and the (related) general issue of ordering modes and file-local variable settings inside `run-mode-hooks'. You seem to be responding to the latter part of what I wrote. Whether a library will need to be loaded or not depends on whether the feature required by a particular hook or variable value (e.g. in case of "eval" file-local variables) is already provided or not. In this particular case, if you follow OP's recipe (emacs -Q), `whitespace-mode' is autoloaded, so the whitespace library will be loaded only at the point the hook is run. Really, isn't this how we all customize all kinds of variables? In your init file you have (setq some-var some-value) (or the equivalent customize forms if you're into that) even before the relevant feature is provided (by loading the library), and the defvar form in the pertinent library will of course not clobber the user-specified value. Unless I'm missing something, it works the same way if you `hack-local-variables' before loading the whitespace.el library in this particular case. --=20 =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 17:14:42 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 21:14:42 +0000 Received: from localhost ([127.0.0.1]:57924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htess-0004Md-5i for submit@debbugs.gnu.org; Fri, 02 Aug 2019 17:14:42 -0400 Received: from mail-io1-f41.google.com ([209.85.166.41]:36267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htesq-0004MR-6P for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 17:14:40 -0400 Received: by mail-io1-f41.google.com with SMTP id o9so51554025iom.3 for <36837@debbugs.gnu.org>; Fri, 02 Aug 2019 14:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=419tY8zFf1jVZkBTuB32y/1gh1ad78sldaMXVO7v97I=; b=bv9gjRDHrdgvynyXK8BbfppDcxMPppZh/VSUd0mlL4PUEZB+3a7u3Hkg1gC8wA9lpl jBQR5QLLq+kAvVI4apGbqFGUi++4NPSVqM+ZDDDCJKpT/LN+o5gFxEbHgdb/pHM3y03J rjWT/gQQzeAIWuCQSPh12hlYiOebaEGXPYj4bUD+UVt86lWSMKkBbOaSVVD3/WHY4WPY byNaFAeDYfcdkWKUR/G3vGgPS92h8OCkcxXlkUO4E9wWaEF1RwGSbA+o3ZaDk1m948Fm ovHCtAUi3LgEIZOlphWwR1Wa2g8D+7wBT7OM3J3p7VtD83o3g3ZKBvWaoVA/agN++f4X H2Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=419tY8zFf1jVZkBTuB32y/1gh1ad78sldaMXVO7v97I=; b=KBXxzodlBEWzNZMv9w+1FR/OmCYry7Yq3k5Y3a8cTjFkuf+KMSXXgy1bfQ2C+K+AeV 16js6ryR/LXIJ6Jw5lMtA+sWF++waZVWkDnR4nIrpiG6TJrn+j6+rfoF0THTF8O3tYds lv+h92Aj8Ao+Y7n1jkYg/oVNUVugIvo7jWHRdgKE8W3bE/xf4VvfaEpEl3UqPr1N0Whv egZuPeddrmjZfx1LQQ7pLZrsG7PUAvEQt7jh+QbI2X1g5SlRN+Ke9gVl0GQBODWuyP/f 49Hz4k6/jZ2GMVrpAi2ShRoUPGVhX/JDyxxBVzHkTvg47hxsuxEOEMXLprMDwdDR3hsE fppg== X-Gm-Message-State: APjAAAX4YG25KhfUidTOK5n1X1KshhJ6PWh7y6mq9pfRpG/ROpAZ7oy5 JLlp7zeOvVEAqfMjyK9hYKE= X-Google-Smtp-Source: APXvYqw7phcC+fikYAF3FVU0sw69HQr2TE4pBcprpdOTbr+cOInybA3x92GV/dLkUiMoU6vhF2I8Fw== X-Received: by 2002:a5d:994b:: with SMTP id v11mr81453476ios.165.1564780474621; Fri, 02 Aug 2019 14:14:34 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id y17sm57678586ioa.40.2019.08.02.14.14.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Aug 2019 14:14:34 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <857e7v4bb2.fsf@gmail.com> <87blx7cpwf.fsf@gmail.com> Date: Fri, 02 Aug 2019 17:14:34 -0400 In-Reply-To: <87blx7cpwf.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Fri, 02 Aug 2019 21:45:36 +0200") Message-ID: <85y30b2rt1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , Andreas Schwab , 36837@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 (-) =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > On Fri, 02 Aug 2019 15:28:01 -0400 > Noam Postavsky wrote: > >> It sounds like you are confusing defcustom settings with file-local [...] > > I'm not sure what you mean. I think it was me who was confused about what you meant. See the last section of this message. > Whether a library will need to be loaded or not depends on whether the > feature required by a particular hook or variable value (e.g. in case > of "eval" file-local variables) is already provided or not. > > In this particular case, if you follow OP's recipe (emacs -Q), > `whitespace-mode' is autoloaded, so the whitespace library will be > loaded only at the point the hook is run. You are right that, strictly speaking, whitespace.el does get loaded while opening the file (via running conf-mode-hook). But if I modify the OP's recipe by adding a require: (require 'whitespace) (setq whitespace-line-column nil) (add-hook 'conf-mode-hook (lambda () (whitespace-mode))) I get the same result. So I don't think the autoloading is relevant. > Really, isn't this how we all customize all kinds of variables? In your > init file you have (setq some-var some-value) (or the equivalent > customize forms if you're into that) even before the relevant feature is > provided (by loading the library), and the defvar form in the pertinent > library will of course not clobber the user-specified value. Unless I'm > missing something, it works the same way if you `hack-local-variables' > before loading the whitespace.el library in this particular case. Oh, the digression into the defvars/defcustom thing was just an analogy? Ignore my previous message then. If I've now understood correctly, you are assuming the file-local setting is a kind of default setting, like (defvar foo DEFAULT) which you expect to override from your init file. But the intended usage is that you do: (setq some-var some-value) in your init file as a global setting, (add-hook some-mode-hook (lambda () (setq some-var another-value)) as a mode-specific seting, and -*- some-var: yet-another-value -*- as a file-specific setting. So they go in that order: global may be overridden by mode-specific, which may be overriden by file-specific. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 17:50:28 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 21:50:28 +0000 Received: from localhost ([127.0.0.1]:57941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htfRU-0005JY-31 for submit@debbugs.gnu.org; Fri, 02 Aug 2019 17:50:28 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:54641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htfRT-0005JM-33 for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 17:50:27 -0400 Received: by mail-wm1-f43.google.com with SMTP id p74so69224604wme.4 for <36837@debbugs.gnu.org>; Fri, 02 Aug 2019 14:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=wrZb9QlsAvXGnHELUnt7q6CUMn3EtEYU5f4TYzsvQmQ=; b=k1ef68Oh4qHLdS4SCwOp1clTY/Jmn5/ex1neYqa1tAWsB61r9zkH1aqvGU7J7b970H bHhXhWVivCx8TLe5YH/3z0aUXWz50k3DDi+yPwhXqndA9v3vUZw01HMvRB7gHVk4RH7h 4rK5fSJy+LuROrSoBhLcr5uPQ+zZIw1cdNjMyccOvx/M3QhWzvj0mz9MM1gUtPixCifh 18FKrvMuDY0fNqszAWJ+2aop08UCgaaqFqrAnU41p7SbBlzKQeYcO2irzDNxOlBF8uTR 3LpxOwrsesyOFAXTwc5TfXT/aYCUQkZquJBhWDBgGk1pPu8wPrLjoc/AXl6sSJ2lhOP/ uNAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=wrZb9QlsAvXGnHELUnt7q6CUMn3EtEYU5f4TYzsvQmQ=; b=W/thy80D/6iNT4wJactQxwWyttO865XH3PVUAksnykO04GgDzAlZ5XgTDW3QT/qr8R OWsk6n4wS95TyTJqsD2mfgnWtSl2QD7MtjeuE54M0+dujdJbdIpooPkFeRP5PIHM0ww7 fe8ECNAA+ZdYf9a+IHwf4FvKkH30Itaa4iTEoakzkxFZLn47Ut1dDU3tzshy9UDtb9IP QIXHgaJkE9vbi0mf2R3RWEx8HsPyj5cnE9flL0tcF34sbTFm8xb/FYOatBVdLrJ14jhr gG3/RX8ADq6kDcgkTmgPbJdhfJG5og9YOijCKWiz0IsXuD76emp/B52KHsCWVcChq0el skMQ== X-Gm-Message-State: APjAAAXrj2Jd8bBEC89HCIDaWbT/iiSVSAlJDj7eFUEZPa9MDNW1U379 n2m/OMjaD8Ze/jT70fsRcyo= X-Google-Smtp-Source: APXvYqzJ+mpkvnUSUFt0+We/uFrdYW+NJip5dVZ7+qSLh69O8oym/YykokNPgSqBIsDeLd2xBhyhdQ== X-Received: by 2002:a1c:acc8:: with SMTP id v191mr5973572wme.177.1564782621253; Fri, 02 Aug 2019 14:50:21 -0700 (PDT) Received: from localhost ([185.112.167.114]) by smtp.gmail.com with ESMTPSA id v23sm66730157wmj.32.2019.08.02.14.50.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 14:50:20 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Noam Postavsky Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <85y30b2rt1.fsf@gmail.com> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <857e7v4bb2.fsf@gmail.com> <87blx7cpwf.fsf@gmail.com> <85y30b2rt1.fsf@gmail.com> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu) Date: Fri, 02 Aug 2019 23:50:19 +0200 Message-ID: <877e7vck4k.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , Andreas Schwab , 36837@debbugs.gnu.org, Eli Zaretskii 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 (-) On Fri, 02 Aug 2019 17:14:34 -0400 Noam Postavsky wrote: > (setq some-var some-value) in your init file as a global setting, > (add-hook some-mode-hook (lambda () (setq some-var another-value)) as > a mode-specific seting, and > -*- some-var: yet-another-value -*- as a file-specific setting. > > So they go in that order: global may be overridden by mode-specific, > which may be overriden by file-specific. Yes, but OP's case is a bit more subtle, as I described in my very first e-mail. Maybe a more visual representation will help. Here's what happens (simplified) when visiting test.cfg during OP's recipe: 1. fill-column is at default value 2. `run-mode-hooks' is called 3. `conf-mode-hook' is run 4. `whitespace-mode' is called 5. `whitespace-color-on' is called, which sets up whitespace-font-lock-keyw= ords, still with the default value of fill-column 6. `hack-local-variables' is called to parse and apply file-local settings 7. fill-column is set to 200 If what's really intended is that file-local settings prevail as much as possible, this is a failure. That's why I'm wondering whether reversing the order wouldn't actually work better, for reasons I detailed in the reply to Andreas. As this case illustrates, libraries often do all kinds of setup during load or mode activation, so unless the relevant settings are applied before that, they don't really take the desired effect. Sure, if the order _was_ reversed and the mode hooks run _after_ `hack-local-variables', they could override file-local variable settings, but I'm wondering how likely such conflicts really are or if that's really a bad thing at all, given typical usage. --=20 =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 17:54:26 2019 Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 21:54:26 +0000 Received: from localhost ([127.0.0.1]:57949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htfVJ-0005QF-U1 for submit@debbugs.gnu.org; Fri, 02 Aug 2019 17:54:26 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:59560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htfVH-0005Q2-Qc for 36837@debbugs.gnu.org; Fri, 02 Aug 2019 17:54:25 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 460gt65c7Tz1rKJ3; Fri, 2 Aug 2019 23:54:22 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 460gt63tzKz1qqkd; Fri, 2 Aug 2019 23:54:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id s67d49LfgRII; Fri, 2 Aug 2019 23:54:21 +0200 (CEST) X-Auth-Info: BK7InrwflCfdOSaXI2alJGls4SgRdv+sqA/KBuAfxXDN5qUXMMnOuSw9UQLghzUr Received: from igel.home (ppp-46-244-186-159.dynamic.mnet-online.de [46.244.186.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 2 Aug 2019 23:54:21 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 0DF2A2C0F1C; Fri, 2 Aug 2019 23:54:21 +0200 (CEST) From: Andreas Schwab To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <874l2zvcak.fsf@igel.home> <87ftmjfvpw.fsf@gmail.com> <857e7v4bb2.fsf@gmail.com> <87blx7cpwf.fsf@gmail.com> <85y30b2rt1.fsf@gmail.com> <877e7vck4k.fsf@gmail.com> X-Yow: My polyvinyl cowboy wallet was made in Hong Kong by Montgomery Clift! Date: Fri, 02 Aug 2019 23:54:21 +0200 In-Reply-To: <877e7vck4k.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Fri, 02 Aug 2019 23:50:19 +0200") Message-ID: <87r263ter6.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , Eli Zaretskii , 36837@debbugs.gnu.org, Noam Postavsky 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.5 (-) On Aug 02 2019, Štěpán Němec wrote: > Yes, but OP's case is a bit more subtle, as I described in my very > first e-mail. Maybe a more visual representation will help. Here's > what happens (simplified) when visiting test.cfg during OP's recipe: > > 1. fill-column is at default value > 2. `run-mode-hooks' is called > 3. `conf-mode-hook' is run > 4. `whitespace-mode' is called > 5. `whitespace-color-on' is called, which sets up whitespace-font-lock-keywords, > still with the default value of fill-column > 6. `hack-local-variables' is called to parse and apply file-local settings > 7. fill-column is set to 200 > > If what's really intended is that file-local settings prevail as much > as possible, this is a failure. It's a failure in whitespace-mode, not in hack-local-variables. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 03 05:23:37 2019 Received: (at 36837) by debbugs.gnu.org; 3 Aug 2019 09:23:38 +0000 Received: from localhost ([127.0.0.1]:58292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htqGH-00027j-Je for submit@debbugs.gnu.org; Sat, 03 Aug 2019 05:23:37 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:39247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htqGF-00027W-Kl for 36837@debbugs.gnu.org; Sat, 03 Aug 2019 05:23:36 -0400 Received: by mail-wr1-f41.google.com with SMTP id x4so26400290wrt.6 for <36837@debbugs.gnu.org>; Sat, 03 Aug 2019 02:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=QwYlChfbrpLu0LW5e2tcCE5UCRdfxp+7b94EY+A7IjQ=; b=Mb0I9OjiKwG5xt9quwgehHMzkalCaQdQ1AisjB92mHNglGb2LmZOVpXgTex3KSqoJw 98MuKUTFDTH9T8IXq66LYYRnm6bMnP2Cbckb8tfveWGnEdjZPdSIvKZM7mNxIT9yPULB ikbJyFMWRqHogvHkvmkgp7YjqG5Ppdr3g9GyhfKKk1dku8cOFTIFo2uueff9xMGEkr0x meBQpdSyiU3zAZ85RYu8VpHdOawk3XbklFj6GKT8A+Vk2WZT20YnWcCLCSH7/yYkq2FW F9MZ6dMl40vyOy0K98HDtfE10mhUsrRWVE2791zvo9k6TnUQIPkOhWwlKlIuKZ5Kx7do S7+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=QwYlChfbrpLu0LW5e2tcCE5UCRdfxp+7b94EY+A7IjQ=; b=itE2O1P3S9qFKfLwDynpRgdTezfCrBbHW41Tch8xr5UylCSCd5BBXd2HQzByaa6gDI uZjUz927CSMh0qydE5aPFkPd6PJxbwX4sK/XapXviVcv/2GFN4p7aZ7BgU5UnVBtr8AO S4hSngl2mesKvRCRvkj9XNjtreZCSBHd6+iIiqCzCY+df189CDP8vfYovyBozY9RQ7F2 SY2zwgCJONAkNH6nKWQkyXf9VQMRj8pfiPKz4cLwNilOBhP8QVL4/OaMwBmBdvGkvsNQ YaJf+aj8np5Y91TxssvWb8yV+3PZBZI//Vn0G25Q8B3jX2Q7FoH8VVWgeMcGaN8oWiJP 6lhg== X-Gm-Message-State: APjAAAXYcJ0f0O5IR4tqluyb4dPOfpVmyALOalMMy5YhSGRLZofLIBRZ pOwU0R7Vjvdi2eyHz8qOTCM= X-Google-Smtp-Source: APXvYqzzVeNA7d6v4KeSRywgGqSNN901swg2i7H6WqHh2gx9Lcq0E7Kb+AzRTvBiKHjwDcuJgRogGw== X-Received: by 2002:adf:f005:: with SMTP id j5mr101718339wro.251.1564824209833; Sat, 03 Aug 2019 02:23:29 -0700 (PDT) Received: from localhost ([185.112.167.114]) by smtp.gmail.com with ESMTPSA id c4sm63100249wrt.86.2019.08.03.02.23.29 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 03 Aug 2019 02:23:29 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: tastytea Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <20190803095056.75166d14@ventiloplattform.tastytea.de> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <20190803095056.75166d14@ventiloplattform.tastytea.de> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu) Date: Sat, 03 Aug 2019 11:23:27 +0200 Message-ID: <87imrebo1c.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: 36837@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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, 03 Aug 2019 09:50:56 +0200 tastytea@tastytea.de wrote: > Maybe whitespace-mode could watch fill-column for changes, at least > until the file-local variables are loaded? > There is also the possibility that fill-column is changed afterwards by > the user, but I guess that's not too common=E2=80=A6 Ah, the new variable watcher thing. I suppose that would be a possibility, though so far its use in Emacs seems to be quite limited. Less avant-garde perhaps would be to do what's being done for some of the other regexps already: turn it into a function: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=whitespace.diff diff --git a/lisp/whitespace.el b/lisp/whitespace.el index d0368b54a8..a67e5efee5 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el @@ -2066,16 +2066,7 @@ whitespace-color-on ,@(when (or (memq 'lines whitespace-active-style) (memq 'lines-tail whitespace-active-style)) ;; Show "long" lines. - `((,(let ((line-column (or whitespace-line-column fill-column))) - (format - "^\\([^\t\n]\\{%s\\}\\|[^\t\n]\\{0,%s\\}\t\\)\\{%d\\}%s\\(.+\\)$" - tab-width - (1- tab-width) - (/ line-column tab-width) - (let ((rem (% line-column tab-width))) - (if (zerop rem) - "" - (format ".\\{%d\\}" rem))))) + `((,#'whitespace-lines-regexp ,(if (memq 'lines whitespace-active-style) 0 ; whole line 2) ; line tail @@ -2176,6 +2167,19 @@ whitespace-trailing-regexp (setq status nil))) ;; end of buffer status)) +(defun whitespace-lines-regexp (limit) + (re-search-forward + (let ((line-column (or whitespace-line-column fill-column))) + (format + "^\\([^\t\n]\\{%s\\}\\|[^\t\n]\\{0,%s\\}\t\\)\\{%d\\}%s\\(.+\\)$" + tab-width + (1- tab-width) + (/ line-column tab-width) + (let ((rem (% line-column tab-width))) + (if (zerop rem) + "" + (format ".\\{%d\\}" rem))))) + limit t)) (defun whitespace-empty-at-bob-regexp (limit) "Match spaces at beginning of buffer which do not contain the point at \ --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 03 11:18:01 2019 Received: (at 36837) by debbugs.gnu.org; 3 Aug 2019 15:18:01 +0000 Received: from localhost ([127.0.0.1]:59777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htvnE-0007W6-KA for submit@debbugs.gnu.org; Sat, 03 Aug 2019 11:18:01 -0400 Received: from cryptoparty-celle.de ([5.189.176.217]:51943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htoog-0008Fe-Cv for 36837@debbugs.gnu.org; Sat, 03 Aug 2019 03:51:03 -0400 Received: by cryptoparty-celle.de (Postfix, from userid 114) id 6C14CC0305; Sat, 3 Aug 2019 09:51:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cryptoparty-celle.de; s=mail; t=1564818660; bh=hpBkHlGI7zupIiWpIdsgbCNTkh7W5lQC/s9UDdUQw04=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Gj06eWoWDBsM7tyuV1Z/OpLrWdwiGCj8fk3w67DnqbvONMCOUqFY5+EnfLXSdM6PJ wl4HNZ5nAnoIocnodYJh/NEwEomVHaYwTwzOVz3VacjeW47yVOO9nHF5ctG0v93XSh si7cds4Lkx+eFK93E2etLJt4qsKW4Jszb7VIUIew= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tzend.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham autolearn_force=no version=3.4.2 Received: from ventiloplattform.tastytea.de (p200300C0871B8C000D10C5C691FA32F8.dip0.t-ipconnect.de [IPv6:2003:c0:871b:8c00:d10:c5c6:91fa:32f8]) by cryptoparty-celle.de (Postfix) with ESMTPSA id F06F8C00DD; Sat, 3 Aug 2019 09:50:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cryptoparty-celle.de; s=mail; t=1564818660; bh=hpBkHlGI7zupIiWpIdsgbCNTkh7W5lQC/s9UDdUQw04=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Gj06eWoWDBsM7tyuV1Z/OpLrWdwiGCj8fk3w67DnqbvONMCOUqFY5+EnfLXSdM6PJ wl4HNZ5nAnoIocnodYJh/NEwEomVHaYwTwzOVz3VacjeW47yVOO9nHF5ctG0v93XSh si7cds4Lkx+eFK93E2etLJt4qsKW4Jszb7VIUIew= Date: Sat, 3 Aug 2019 09:50:56 +0200 From: tastytea To: =?UTF-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column Message-ID: <20190803095056.75166d14@ventiloplattform.tastytea.de> In-Reply-To: <87k1bvfwda.fsf@gmail.com> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> Jabber-ID: tastytea@tastytea.de MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/aaZlaczrLs2GVkfNHfKgpPh"; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 36837 X-Mailman-Approved-At: Sat, 03 Aug 2019 11:17:59 -0400 Cc: 36837@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 (-) --Sig_/aaZlaczrLs2GVkfNHfKgpPh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 02 Aug 2019 16:57:37 +0200=20 =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec wrote: > On Mon, 29 Jul 2019 11:17:56 +0200 > tastytea@tastytea.de wrote: >=20 > > whitespace-mode will highlight long lines starting at 70 characters > > instead of what fill-column is set to, if whitespace-line-column is > > set to nil. > > [=E2=80=A6] >=20 > Yes, unfortunately, file-local variables are only setup (via > `hack-local-variables') _after_ the mode hooks are run (cf. > `run-mode-hooks'), so `whitespace-color-on' still sees the original > `fill-column' the first time. Maybe whitespace-mode could watch fill-column for changes, at least until the file-local variables are loaded? There is also the possibility that fill-column is changed afterwards by the user, but I guess that's not too common=E2=80=A6 > You can work around this by hacking^W having `hack-local-variables' > also run in your hook function: >=20 > (add-hook 'conf-mode-hook=20 > (lambda () (hack-local-variables) (whitespace-mode)) Thanks, that's a better workaround than my solution of setting whitespace-line-column and restarting whitespace-mode in find-file-hook. :-) Kind regards, tastytea --Sig_/aaZlaczrLs2GVkfNHfKgpPh Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXUU84AAKCRDPw5SX8bJu B1YxAP9KSEVruJpW6KLPB+BU+v0/15XZhbDWGMhVWbrdWgknhQD+Og/BTk8/a5Bp veB9yv0U8Iu+9o0DGPqrTh147g9wJ+0= =bxjH -----END PGP SIGNATURE----- --Sig_/aaZlaczrLs2GVkfNHfKgpPh-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 14:56:36 2020 Received: (at 36837) by debbugs.gnu.org; 24 Feb 2020 19:56:36 +0000 Received: from localhost ([127.0.0.1]:54144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6JqF-0001aq-To for submit@debbugs.gnu.org; Mon, 24 Feb 2020 14:56:36 -0500 Received: from mail-qk1-f170.google.com ([209.85.222.170]:34763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6JqB-0001aR-W9; Mon, 24 Feb 2020 14:56:32 -0500 Received: by mail-qk1-f170.google.com with SMTP id 11so5711216qkd.1; Mon, 24 Feb 2020 11:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=al5pTJPnfVGqdIg3UW2NLzVRb6VSYVKHZFzq54jvJjw=; b=obYgTpgHXa/zCNUiCZ6HdKr813MY5JRnF5mm90JbR3PKWOXT2gB0zCZi8EkponWQG9 xME9t33iVXOziJ3p3DvutPzF7rztIvewsQTJfRhBTcsR36Eq78BVHoNCNhCVwlCDB/ys bbBdlh2HSdAGnkrsOj0C6wsQMJaWO6BP60sUTnaj0ARSuqVun1oEn7/HOrHvqlkc0sXL 0w2aB19c1FKfcvirBqeRY1mUtQNiPyevS8UqNYWtGJeMo5lW8zrooYmDXBrD96C+bo5E 3YaRy7QHws9/SSOA90WNxItlDxB1pk6/tO7YOHq0lXqPzJ/ZpqEcAPrD7Mt1cp07/HUh EE6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=al5pTJPnfVGqdIg3UW2NLzVRb6VSYVKHZFzq54jvJjw=; b=JIQaOHqmameqfMMzeFnxTaazKysBmVn7CJLnzqY3UjOWZZqiEw1whHSPPlHOy/2Y7Q MalaAqmbfAnJ7JOKBdh5D6RsIwgRi2pJQY/Eho8QPI8xwkOe8MVLPWTuMi610WxpwvYR L7BBHhYZAZVgHrrSK65KilfpZzorDNHV5CNqzyN8eGh2PYJRgHMis0CF9elKM5+9hUU9 LXhyxVzXa9/xJ+90D3sb5TLshrRxkuY/HKjtbGMF4nIqgyoXWZFUuynm18aY1Qninw0Q Rp4OL/Ya8x+QDB0pT8iHuMY7W1n4Im9oBrcpPcvZW4BNTHPAXBkwfOJcivMl1rlmTs1A R04w== X-Gm-Message-State: APjAAAWOASqOnH3wQHd7Ud/iq9PQYaZ5pQT8x6GkfmgNa2nGTe/WLng1 9CZGTt21dun7xeUC3spERXO7K280FH0= X-Google-Smtp-Source: APXvYqzJy3+yYkwCr1+JNX1IioIV/r0b1HuONgYCGoWbrShfw2LbPCyblp0CQ6IHxKuy1ch9Zmt8/g== X-Received: by 2002:a37:4b4b:: with SMTP id y72mr49991166qka.175.1582574186267; Mon, 24 Feb 2020 11:56:26 -0800 (PST) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.38.42]) by smtp.gmail.com with ESMTPSA id f7sm6399363qtj.92.2020.02.24.11.56.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Feb 2020 11:56:25 -0800 (PST) From: Noam Postavsky To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <20190803095056.75166d14@ventiloplattform.tastytea.de> <87imrebo1c.fsf@gmail.com> Date: Mon, 24 Feb 2020 14:56:25 -0500 In-Reply-To: <87imrebo1c.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Sat, 03 Aug 2019 11:23:27 +0200") Message-ID: <85imjvahee.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@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 (-) severity 36837 minor severity 39427 minor quit =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > On Sat, 03 Aug 2019 09:50:56 +0200 > tastytea@tastytea.de wrote: > >> Maybe whitespace-mode could watch fill-column for changes, at least >> until the file-local variables are loaded? >> There is also the possibility that fill-column is changed afterwards by >> the user, but I guess that's not too common=E2=80=A6 > > Ah, the new variable watcher thing. I suppose that would be a > possibility, though so far its use in Emacs seems to be quite limited. It's intended mainly for debugging. > Less avant-garde perhaps would be to do what's being done for some of > the other regexps already: turn it into a function: I think this would make more sense, and also fix #39427 "whitespace-mode doesn't track fill-column changes". From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 15:12:04 2020 Received: (at 36837) by debbugs.gnu.org; 24 Feb 2020 20:12:04 +0000 Received: from localhost ([127.0.0.1]:54152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6K5E-0003zd-AE for submit@debbugs.gnu.org; Mon, 24 Feb 2020 15:12:04 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:51234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6K5C-0003z8-EH for 36837@debbugs.gnu.org; Mon, 24 Feb 2020 15:12:02 -0500 Received: by mail-wm1-f52.google.com with SMTP id t23so632941wmi.1 for <36837@debbugs.gnu.org>; Mon, 24 Feb 2020 12:12:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=cm3Y5tgjQmjZve1+HRYES3ww/sz0Yr8mBKu4zTXJ7Js=; b=YpXo68NtuBjGXwus1hK4zwz2Ilf0/yQwFf68+Z5jLTZvGRPEJBsvOOyYqjImXfe8Sr RGZlcdqSCxYOZEGR9hKZ50E+YWZZTbIJWP07QmN7YYA7pvEttvvkJdKQ42GGcMUextwm co2XRsG44KWIPG2RwYvAR5PYgpkXrKJKw5eZ/xffoY9YmsJe6MSv/fN7oaGoecxKXD0P U7Rd6enMdwz50R8n2lzxnVzb7GEaWrabpAS5TAm8vXQi/L+5poCnJ4//Tx8cighdqWMb QYLuohhBSol733yfTZpOi9VkNOHGqt1wG4vZc2VtjXzRchA2BqLjEpHffFwhMkM0Vobc Lznw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=cm3Y5tgjQmjZve1+HRYES3ww/sz0Yr8mBKu4zTXJ7Js=; b=HMm44x9Zh0p+wPUxh4Z7lJlcpHpq3FFOks+s3htui2R4+MgHaAXxN6UZClha31w3kb gUjwooZWprJBOqKwJ+//+jjvnJkVnJWJI/qMu8H+GKXkrmvKg1rtosfaNmWjz5Wc4RuM vutBZ5rm/ugyh5VMcOcSQdpS00w9vpUqY4jjJC7YKO6SkwzdKsuzS9LOQT55qOg5R8WJ equnN8IXGD70hWPqdcwwCe0KknuGWwKQ3suFr8/ZVShWM/CgUC+badl94JTmP9cnW//K 04kfEOtsDOoPEScHkWuIZGw/BqvHRqgDyJpXXprJhu+VRZUgGRyqX0pZ5g4wG971C6f8 ZiJA== X-Gm-Message-State: APjAAAUr0xKC4KTFyGLVapj+aRssdjLDlqpadhiFXJLlwdbeB4lTME9x +Ia62+5gsYB+vbtvsrNAwEQ= X-Google-Smtp-Source: APXvYqxLFki88Bec1xK6otxNMFgPw4Jkq5Z+XO+jFGDcfdqlEV5x8Wc4QO+YpDprO9SdQvd88V8s9A== X-Received: by 2002:a1c:8095:: with SMTP id b143mr670430wmd.7.1582575116617; Mon, 24 Feb 2020 12:11:56 -0800 (PST) Received: from localhost ([185.112.167.59]) by smtp.gmail.com with ESMTPSA id w7sm715957wmi.9.2020.02.24.12.11.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 12:11:55 -0800 (PST) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Noam Postavsky Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <85imjvahee.fsf@gmail.com> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <20190803095056.75166d14@ventiloplattform.tastytea.de> <87imrebo1c.fsf@gmail.com> <85imjvahee.fsf@gmail.com> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu) Date: Mon, 24 Feb 2020 21:12:03 +0100 Message-ID: <87zhd7219o.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tags 36837 patch thanks On Mon, 24 Feb 2020 14:56:25 -0500 Noam Postavsky wrote: >> Less avant-garde perhaps would be to do what's being done for some of >> the other regexps already: turn it into a function: > > I think this would make more sense, and also fix #39427 "whitespace-mode > doesn't track fill-column changes". FWIW, I have been running with this change ever since I suggested it. Here it is as proper patch with a commit message on top of recent master. Let me know if anything else is needed (I've been a bit out of the loop lately but I think it could still go to emacs-27, and doesn't warrant a NEWS entry?). --=20 =C5=A0t=C4=9Bp=C3=A1n --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-whitespace-Turn-long-lines-regexp-into-a-function-bu.patch >From a4fe6400e6a5ddf3f63d6f059058ed2abf04f1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Thu, 29 Aug 2019 19:32:08 +0200 Subject: [PATCH] whitespace: Turn long lines regexp into a function (bug#36837) * lisp/whitespace.el (whitespace-color-on): Turn long lines regexp into a function to ensure it uses current 'whitespace-line-column' and 'fill-column' values. (Bug#36837) (whitespace-lines-regexp): New function. --- lisp/whitespace.el | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/lisp/whitespace.el b/lisp/whitespace.el index 0137ddcf04..47434bf3d2 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el @@ -2067,16 +2067,7 @@ whitespace-color-on ,@(when (or (memq 'lines whitespace-active-style) (memq 'lines-tail whitespace-active-style)) ;; Show "long" lines. - `((,(let ((line-column (or whitespace-line-column fill-column))) - (format - "^\\([^\t\n]\\{%s\\}\\|[^\t\n]\\{0,%s\\}\t\\)\\{%d\\}%s\\(.+\\)$" - tab-width - (1- tab-width) - (/ line-column tab-width) - (let ((rem (% line-column tab-width))) - (if (zerop rem) - "" - (format ".\\{%d\\}" rem))))) + `((,#'whitespace-lines-regexp ,(if (memq 'lines whitespace-active-style) 0 ; whole line 2) ; line tail @@ -2177,6 +2168,19 @@ whitespace-trailing-regexp (setq status nil))) ;; end of buffer status)) +(defun whitespace-lines-regexp (limit) + (re-search-forward + (let ((line-column (or whitespace-line-column fill-column))) + (format + "^\\([^\t\n]\\{%s\\}\\|[^\t\n]\\{0,%s\\}\t\\)\\{%d\\}%s\\(.+\\)$" + tab-width + (1- tab-width) + (/ line-column tab-width) + (let ((rem (% line-column tab-width))) + (if (zerop rem) + "" + (format ".\\{%d\\}" rem))))) + limit t)) (defun whitespace-empty-at-bob-regexp (limit) "Match spaces at beginning of buffer which do not contain the point at \ -- 2.25.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 19:38:30 2020 Received: (at 36837) by debbugs.gnu.org; 26 Feb 2020 00:38:31 +0000 Received: from localhost ([127.0.0.1]:56271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6kic-0003by-MY for submit@debbugs.gnu.org; Tue, 25 Feb 2020 19:38:30 -0500 Received: from mail-qt1-f182.google.com ([209.85.160.182]:45939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6kia-0003bj-NX for 36837@debbugs.gnu.org; Tue, 25 Feb 2020 19:38:29 -0500 Received: by mail-qt1-f182.google.com with SMTP id d9so1025638qte.12 for <36837@debbugs.gnu.org>; Tue, 25 Feb 2020 16:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=V9ou2o2yvboKa7rcnQMvTcOCB40OtChE4IYBWnnbLos=; b=Vd3OchBi7KupTyq2rVNImlIK0gjE9625d7/BabFyIpaH5Vxbyi7f/Vi8PUR7svsmUO Q+cae3Kbr0mBOnUqKZMGXBmIx4OJFRIGJsi3GmoYdxauAXz2D27OF6Ghngt4zKrne3pM +kVTPs0hzE1PpJltAJUB5h4tMCU6ZniOGSHKEtJYmnmd4a4AzdbZP8SKBKmyCoU6WCpI KcWx+lz3CVj6YgzK0lokIDT03OLPpnacTb6oK28t1dsb52LXV8fz/Fn4UA61t/n14Qu4 rpA8eggiRFzJY3na8vybf+v+p0RZCpnXaL3rImjNvss6Bzt11RADGkD+ib8hhnH/1hgG aX3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=V9ou2o2yvboKa7rcnQMvTcOCB40OtChE4IYBWnnbLos=; b=Yb+65xgJlTPG5DRjlqUepNUH+phTgbCAIqYvr9oLvVytCYXbhiTERwrTIZjKu/sv6L 9qXvJkBmGbYaKhK+ymwx6hxqu9KspzG3jevdi3Gy6viiE2UtDvv4c3NjWJILMNII4DTL XsK5BkmyK3hoeq6u4CHqh/Pvah0URzLxNaZkUt7kJ2Y4mHOBsrRGYq/d86jEK959Mqgv awDWj7uN/p7mAApbKdeJm3LrxBFxVbBRpZESh/0IExDjd52CBLkakvtd3DKHVSjP8uBe zc7XQu7DcWlwWUxhgOfkSJTlWJ/U59miXRdusOVtFfPOsAnJCzeDEojw5KTiMGwUoQ8f avjg== X-Gm-Message-State: APjAAAUEHZmbT02Xeqxgn1urcgQhEU9bJ8niqZxR6hjxVQpmp7z4HWcK I1lqxQc0ryG+k650cxv1T84eATDB6Zg= X-Google-Smtp-Source: APXvYqyBl16GwgBTg6eehBE6apSHqDzQJ2YdORX1pxvC1gu38ObE4sgAl6BP7xZOqyQQxacEc4guMA== X-Received: by 2002:aed:3e13:: with SMTP id l19mr1760188qtf.103.1582677503063; Tue, 25 Feb 2020 16:38:23 -0800 (PST) Received: from minid (cbl-45-2-119-47.yyz.frontiernetworks.ca. [45.2.119.47]) by smtp.gmail.com with ESMTPSA id g2sm177919qka.42.2020.02.25.16.38.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Feb 2020 16:38:22 -0800 (PST) From: Noam Postavsky To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <20190803095056.75166d14@ventiloplattform.tastytea.de> <87imrebo1c.fsf@gmail.com> <85imjvahee.fsf@gmail.com> <87zhd7219o.fsf@gmail.com> Date: Tue, 25 Feb 2020 19:38:21 -0500 In-Reply-To: <87zhd7219o.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Mon, 24 Feb 2020 21:12:03 +0100") Message-ID: <87zhd69o8y.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea , 36837@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 (-) =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > Here it is as proper patch with a commit message on top of recent > master. Let me know if anything else is needed (I've been a bit out of > the loop lately but I think it could still go to emacs-27, and doesn't > warrant a NEWS entry?). I've been somewhat out of things as well, but I believe emacs-27 is still open for bug fixes. And I would classify this as a bug fix, so no NEWS needed. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 28 00:01:42 2020 Received: (at 36837) by debbugs.gnu.org; 28 Feb 2020 05:01:42 +0000 Received: from localhost ([127.0.0.1]:60532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7XmQ-0000NB-1d for submit@debbugs.gnu.org; Fri, 28 Feb 2020 00:01:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7XmN-0000Mz-S5 for 36837@debbugs.gnu.org; Fri, 28 Feb 2020 00:01:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j7XmI-0008EA-AM; Fri, 28 Feb 2020 00:01:34 -0500 Received: from [176.228.60.248] (port=2499 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j7XmG-0003by-Nv; Fri, 28 Feb 2020 00:01:33 -0500 Date: Fri, 28 Feb 2020 07:01:18 +0200 Message-Id: <83mu93gva9.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87zhd69o8y.fsf@gmail.com> (message from Noam Postavsky on Tue, 25 Feb 2020 19:38:21 -0500) Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <20190803095056.75166d14@ventiloplattform.tastytea.de> <87imrebo1c.fsf@gmail.com> <85imjvahee.fsf@gmail.com> <87zhd7219o.fsf@gmail.com> <87zhd69o8y.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea@tastytea.de, 36837@debbugs.gnu.org, stepnem@gmail.com 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 (-) > From: Noam Postavsky > Date: Tue, 25 Feb 2020 19:38:21 -0500 > Cc: tastytea , 36837@debbugs.gnu.org > > Štěpán Němec writes: > > > Here it is as proper patch with a commit message on top of recent > > master. Let me know if anything else is needed (I've been a bit out of > > the loop lately but I think it could still go to emacs-27, and doesn't > > warrant a NEWS entry?). > > I've been somewhat out of things as well, but I believe emacs-27 is > still open for bug fixes. And I would classify this as a bug fix, so no > NEWS needed. I won't argue if this is a bug fix or not, but why is it urgent to have this in Emacs 27? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 28 03:14:06 2020 Received: (at 36837) by debbugs.gnu.org; 28 Feb 2020 08:14:06 +0000 Received: from localhost ([127.0.0.1]:60616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7amc-0005lm-Kh for submit@debbugs.gnu.org; Fri, 28 Feb 2020 03:14:06 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42279) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7ama-0005l0-Ro; Fri, 28 Feb 2020 03:14:05 -0500 Received: by mail-wr1-f66.google.com with SMTP id p18so1864724wre.9; Fri, 28 Feb 2020 00:14:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=NrI7yQDFOHoamV8pi5ckrfw6Ha74iAs5VruWrre12HI=; b=S4FQfTtIEeU/EZZ1tQns0y2KCJ/uv0xKhdG5xelI7XB9xnNSm5+/3z6kadKwG5PEhX +VTN+kvuBFsh6RyHvLNgtaPXAGQRMSnJqIStkM41DRHOsrop7kSRh+pFM/UJLEjjMEDB 51CRPUg/HTGmylCW63vtcB85C4dav6PWPJgHc02mBS1s1XV0LGjVRp1aDU4ZHUYEwrds mamrwUujCquzNrdmC7Jkwg2gw8L28HgpSe2KjU+wU5Ao2nfzv8a8HVR7ZROwE+hCg0cN xuplq2XfU+Xczl4H7/KaZLuhMI14WpUReqdB5X4tXXyR/OfuTSZtpMp6NAFHTfV5CaZK hOOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=NrI7yQDFOHoamV8pi5ckrfw6Ha74iAs5VruWrre12HI=; b=G/irJ+tQhFvhq3J34xfRezGNZNfw4hKWmTVqXS4aaU1hZyhBoAooxVA3IV3uA9EBqU 0bUIP0NnB9+nphv9pih4iRlxgnHwxPDYELVEMcKUErddumTwAZc6zB+MK8UuMIKIx7bt 2KwNfqAVET8CkdWqkmfKVUlr0VnSm7ncmfQbgBfbC445b8rJHOwLS8z0IzZwJFW4mGmZ legd+7vt0+cYxi8q0AHbu7BBjP5lMdDcaRelAjlwC8n7+YKvqVKF7mLuJEynUlsbKEV+ wIg11qM88+39WrIlyUjh9pMXWlQFb14kEaZxQqw8PsVHnKgk/JcnJhsI7UyywdHYil4p iq5A== X-Gm-Message-State: APjAAAUIZLZS1+1RNADQNniWJLonpud1dXyrBzQRC9bQ+VK9aKJyvufC slXseJ2nOZ7oHlwrN46Gs8Y= X-Google-Smtp-Source: APXvYqyfFNAyBe/houJkUq8f/cQOOWne5kAvx/2voC0Q7JSBSiHFF4EDXFaxoBlBivg0Z5nkfnuh4g== X-Received: by 2002:adf:f091:: with SMTP id n17mr3466814wro.387.1582877639030; Fri, 28 Feb 2020 00:13:59 -0800 (PST) Received: from localhost ([185.112.167.59]) by smtp.gmail.com with ESMTPSA id d7sm1196580wmc.6.2020.02.28.00.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 00:13:58 -0800 (PST) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Eli Zaretskii , Noam Postavsky Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column In-Reply-To: <83mu93gva9.fsf@gnu.org> References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <20190803095056.75166d14@ventiloplattform.tastytea.de> <87imrebo1c.fsf@gmail.com> <85imjvahee.fsf@gmail.com> <87zhd7219o.fsf@gmail.com> <87zhd69o8y.fsf@gmail.com> <83mu93gva9.fsf@gnu.org> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu) Date: Fri, 28 Feb 2020 09:14:11 +0100 Message-ID: <87eeufb030.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36837 Cc: tastytea@tastytea.de, 39427@debbugs.gnu.org, 36837@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 (-) On Fri, 28 Feb 2020 07:01:18 +0200 Eli Zaretskii wrote: >> From: Noam Postavsky >> I've been somewhat out of things as well, but I believe emacs-27 is >> still open for bug fixes. And I would classify this as a bug fix, so no >> NEWS needed. > > I won't argue if this is a bug fix or not, but why is it urgent to > have this in Emacs 27? I find that question hard to address (isn't the "bug fix or not", and of course _your_ and other maintainers' personal definition of "bug fix" and "urgent" precisely the crucial factors for answering it?). Personally I don't see any reason not to consider behaviours observed in both bug reports bugs, but "urgent" certainly sounds more dramatic than I feel about it. IOW, I don't feel strongly about having to have this in 27, especially in case of any doubts on maintainers' part. --=20 =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 01 22:59:05 2020 Received: (at 36837) by debbugs.gnu.org; 2 Mar 2020 03:59:05 +0000 Received: from localhost ([127.0.0.1]:37133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8cES-0002yu-TR for submit@debbugs.gnu.org; Sun, 01 Mar 2020 22:59:05 -0500 Received: from mail-qv1-f43.google.com ([209.85.219.43]:45328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8cER-0002yF-IV; Sun, 01 Mar 2020 22:59:04 -0500 Received: by mail-qv1-f43.google.com with SMTP id r8so719836qvs.12; Sun, 01 Mar 2020 19:59:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=dxAw/Akj7+NF6wcHh32bANd0jd1LivybsptZnvwEbl4=; b=BnfXmf4Sg9Ir4z11EtXFffhJAU/YrTtalVcVbCwwbUUPwjkeGRFUEq6uVNrVQacclH ne+uZ5TKZBpQzr364Vm5R65QCVwL7ZfRwolgBGElb7JXQGptsMb8o5H4KO86snlIim10 6ok1pAvMny7+symbwxW06NLATEgan/E5jYFOzFjbqWb9FdrQWgEgzRcK7zZpyUHgo8Oi yZ8d8Qjkx+w2f09CkbasqXPgnteNdaNkRtiMOoESpu+PBCffTi7ebbe58d9vRbquL6CI IvK010Ai0K6ti+BnY2qQuTpihdVf6cAxqYRQ8NmmcDoyavzzaPLpeSODwOYL7P410qtj LuZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=dxAw/Akj7+NF6wcHh32bANd0jd1LivybsptZnvwEbl4=; b=NqO/glrdMIbZhGJNoF2JJEqlVmG7YJ9MToBeWZam85t/KzY5peVMLCmpJWY22pKEdb gRSRVkaLGwd9Wpf6vn8VONY0P+3xD6MjAKJYkWIt/Esj6CTpfarnoe0h+I7UcrxRd2eE xk1HxlM83pO79Yq048y+ELrfWRVU9bYYDtHIthmPtKK+9BERMLZbEhcuSnvP/fHTjQo1 iSXDdNFuziH6uv2Rq9hSTr1HfNuwXeCczmKi4gBLzZ8TItZz9gR3t83OquiaZclp0l+U J8lEqoVFJkNpvnG3h5r3ZMZGcf/sgXt5JaFgjhAPWlSsimglEqqqk0J80b853YQMsrmg nYfw== X-Gm-Message-State: APjAAAWyZLuQ6Rgs4xf4DGXj7y6LqwgrATL5zZDERGkLmeKxe/RYt7n5 l5QCsveAhNAkHMuqYo0lfXmVIEE45vM= X-Google-Smtp-Source: APXvYqyI08OK4LxikLwfY0kL8xqwjckQaT0BdZhpdyJxHPpwZMNn7rP6wsx6Ypj5rzcEGfzvkYc9eA== X-Received: by 2002:ad4:5491:: with SMTP id q17mr13622177qvy.88.1583121537802; Sun, 01 Mar 2020 19:58:57 -0800 (PST) Received: from minid (cbl-45-2-119-47.yyz.frontiernetworks.ca. [45.2.119.47]) by smtp.gmail.com with ESMTPSA id x1sm9258685qkf.38.2020.03.01.19.58.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 01 Mar 2020 19:58:57 -0800 (PST) From: Noam Postavsky To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column References: <20190729111756.0665feb6@ventiloplattform.tastytea.de> <87k1bvfwda.fsf@gmail.com> <20190803095056.75166d14@ventiloplattform.tastytea.de> <87imrebo1c.fsf@gmail.com> <85imjvahee.fsf@gmail.com> <87zhd7219o.fsf@gmail.com> <87zhd69o8y.fsf@gmail.com> <83mu93gva9.fsf@gnu.org> <87eeufb030.fsf@gmail.com> Date: Sun, 01 Mar 2020 22:58:52 -0500 In-Reply-To: <87eeufb030.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Fri, 28 Feb 2020 09:14:11 +0100") Message-ID: <87tv378l1f.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 36837 Cc: tastytea@tastytea.de, Eli Zaretskii , 36837@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: -2.5 (--) close 36837 28.1 close 39427 28.1 quit =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > Personally I don't see any reason not to consider behaviours observed in > both bug reports bugs, but "urgent" certainly sounds more dramatic than > I feel about it. IOW, I don't feel strongly about having to have this in > 27, especially in case of any doubts on maintainers' part. Yeah, I don't think it's really important enough to spend more time thinking about where to put it. I've just gone ahead and pushed to master. [1: 1939f7580b]: 2020-03-01 22:54:32 -0500 whitespace: Turn long lines regexp into a function (bug#36837) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D1939f7580bd28328= 6dce8be7c99ab5dec1bb0814 From unknown Sun Jun 22 11:43:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 30 Mar 2020 11:24:05 +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