From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Roman Decker Newsgroups: gmane.emacs.bugs Subject: bug#24904: 25.1; whitespace-mode ignores file- and dir-locals Date: Tue, 08 Nov 2016 18:59:19 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c1a07707e5a3b0540cebdf8 X-Trace: blaine.gmane.org 1478632224 3911 195.159.176.226 (8 Nov 2016 19:10:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2016 19:10:24 +0000 (UTC) To: 24904@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 08 20:10:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4Bme-0008EA-88 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2016 20:10:12 +0100 Original-Received: from localhost ([::1]:34945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4Bmh-0003Xy-8n for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2016 14:10:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4BmY-0003T9-GJ for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 14:10:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4BmU-0000XF-Gl for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 14:10:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34570) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4BmU-0000XB-DF for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 14:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c4BmU-00017m-5x for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 14:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Roman Decker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Nov 2016 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24904 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14786321814278 (code B ref -1); Tue, 08 Nov 2016 19:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Nov 2016 19:09:41 +0000 Original-Received: from localhost ([127.0.0.1]:49968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4Bm8-00016w-IF for submit@debbugs.gnu.org; Tue, 08 Nov 2016 14:09:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4BcT-0000r9-Pt for submit@debbugs.gnu.org; Tue, 08 Nov 2016 13:59:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4BcN-0005re-CN for submit@debbugs.gnu.org; Tue, 08 Nov 2016 13:59:36 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4BcN-0005rY-9o for submit@debbugs.gnu.org; Tue, 08 Nov 2016 13:59:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4BcL-00012n-Qz for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 13:59:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4BcK-0005qz-P1 for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 13:59:33 -0500 Original-Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:33094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4BcK-0005qI-GX for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 13:59:32 -0500 Original-Received: by mail-lf0-x22d.google.com with SMTP id c13so146887824lfg.0 for ; Tue, 08 Nov 2016 10:59:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=4mpmEOZrWclANj8fgmYWDQKPyytQWZTYC5Id2YJfpkc=; b=gtseh24zfkXHpP1AgL+G7SamBouxEAXG0+Uc1RYGXt/PozpHhjaw0NMyoGKS6NMqrx qUjl02nOBRA0gO2M+Zus/fqHdQWdIWCy6B1otmNsw8vJQDmRKUzOb56eBY3WNoXwxbsu 6J/jngQ4pF+1W60xSdn7HuRQvCs5Ds3KLf0hPr7Rve9r/T0svuPP0ZvNqtjZLpIcGZ5S uaSM+3x9lPbT+w1Z/giaWS7YQLeF1KGi0I/ZmkvyVOGoccEcvGr3GXlIHQ84fIiF+ZsO cbNI3HEdWoBI3G7Ex1YIR/cdLhBqjllh75YgCOu43YgQZq1vwZdy/Dl795HAHcd7ESbZ 32jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4mpmEOZrWclANj8fgmYWDQKPyytQWZTYC5Id2YJfpkc=; b=a+5bOmFPIDl6hRxsKwX09wTx1vzVb+Xu0A4HXyYZOIGTNPSeGT7yHR3z4JuvGlrkOU kdsQ1Cv1IZsDgkozEv4Pd9gxVg0gHEIvg9i9YAq1mAHYAVhCEvoWbWn0P2VtEbI1zMrM 65+SqNSUE5+j2Z5Ldn+OwT72E2oraHotJtpqT/NCf875uZtsxJulvugRA+g0HOxWCDE/ rkwgWDntmGOdAXseehGMkoyrmbOfAy/r7QBFsHCLnCpC4cV8cpTXFrJcrVi1JItp8jcQ Ga26pPJJ4fayzlg+mgcisHoY5RfYkQDhGR81GNENVbIgTc10+SPjLiubDJjJ/njzl58S 3eqw== X-Gm-Message-State: ABUngvcu044z0m5FY66MmcI6XsniWGd2pj2qc8W2lXaa9o6vJOKsPUY60JHBcpvO1EeHXKJDYAYkshPcH77tKQ== X-Received: by 10.25.203.148 with SMTP id b142mr6514547lfg.145.1478631570162; Tue, 08 Nov 2016 10:59:30 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 08 Nov 2016 14:09:39 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:125482 Archived-At: --94eb2c1a07707e5a3b0540cebdf8 Content-Type: text/plain; charset=UTF-8 whitespace-mode seems to ignore file- and dir-locals when enabled via `global-whitespace-mode`. To reproduce: 1. Create a file with the following contents (use everything between the dashes, the dashes themselves are not part of the file): -----------------------------test-file.txt-------------------------------------- Only open this file after global-whitespace-mode was enabled. This is where highlighting of the line should start if everyhing went as expected: right here ---->|<---- However, if whitespace-mode incorrectly used the default of 80: right here ---->|<---- ;; Local Variables: ;; whitespace-line-column: 100 ;; End: -------------------------------------------------------------------------------- Then: 2. Run `emacs -Q` 3. Execute the following commands from the scratch buffer: (setq whitespace-style '(face lines-tail)) (global-whitespace-mode) 4. Open the created file using `M-x find-file test-file.txt` whitespace-mode will highlight long lines starting at 80 characters instead of 100, which is what the file-local variable says. If whitespace-mode is enabled locally, after the file-local variables are set, everything works as expected. The same issue is explained here: http://emacs.stackexchange.com/questions/7743/whitespace-mode-ignores-whitespace-line-column I'm merely referring it to this bugtracker. --94eb2c1a07707e5a3b0540cebdf8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
whitespace-mode seems to ignore file- and dir-locals when enabled
=
via `global-whitespace-mode`.

To reproduce:

1. Create a file with the= following contents (use everything between the
=C2=A0 =C2=A0dashes, the dashes themselves are not part of the file):
-----------------------------test-file.txt-----= ---------------------------------
Only open t= his file after global-whitespace-mode was enabled.

This is where = highlighting of the line should start if everyhing went as expected: right = here =C2=A0---->|<----
However, if whit= espace-mode incorrectly used the default of 80: right here ---->|<---= -

;; Local Variables:
;; whitespace= -line-column: 100
;; End:
----------------------------------------------------------------= ----------------

Then:

2. Run `emacs -Q`

3. Execute the following= commands from the scratch buffer:

(setq whitespace-style = 9;(face lines-tail))
(global-whitespace-mode)=

4. Open the created file using `M-x find-file test-file.txt`

whitespace-mode will highlight long lines starting at 80 characters<= /div>
instead of 100, which is what the file-local = variable says.

=
If whitespace-mode is enabled locally, after the f= ile-local variables
are set, everything works= as expected.

<= div class=3D"gmail_msg">The same issue is explained here: http://emacs.stackexchan= ge.com/questions/7743/whitespace-mode-ignores-whitespace-line-column

I'm merely referring it to this bugtracker.

--94eb2c1a07707e5a3b0540cebdf8--