From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Newsgroups: gmane.emacs.bugs Subject: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column Date: Fri, 02 Aug 2019 21:45:36 +0200 Message-ID: <87blx7cpwf.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223714"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: tastytea , Andreas Schwab , 36837@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 02 21:46:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htdVF-000vxs-HH for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Aug 2019 21:46:13 +0200 Original-Received: from localhost ([::1]:37216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htdV8-0001E5-SG for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Aug 2019 15:46:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52135) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htdV5-0001Dv-1H for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2019 15:46:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htdV3-0004j2-WD for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2019 15:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48952) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1htdV3-0004iw-SW for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2019 15:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1htdV3-0001se-PU for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2019 15:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Aug 2019 19:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36837 X-GNU-PR-Package: emacs Original-Received: via spool by 36837-submit@debbugs.gnu.org id=B36837.15647751457198 (code B ref 36837); Fri, 02 Aug 2019 19:46:01 +0000 Original-Received: (at 36837) by debbugs.gnu.org; 2 Aug 2019 19:45:45 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: <857e7v4bb2.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164388 Archived-At: 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