From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wilnerthomas--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57459: Customisation before enabling display-fill-column-indicator-mode Date: Sun, 28 Aug 2022 17:06:54 +0200 (CEST) Message-ID: References: <83pmgkxxo6.fsf@gnu.org-NAZnbll----2> <83ler8xvgv.fsf@gnu.org-NAZyNBn----2> Reply-To: wilnerthomas@tutanota.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34146"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57459@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 28 17:08:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oSJtT-0008eS-70 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Aug 2022 17:08:11 +0200 Original-Received: from localhost ([::1]:56910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSJtS-0005ya-AF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Aug 2022 11:08:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSJtK-0005xQ-Dn for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2022 11:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSJtJ-0000tH-VK for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2022 11:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSJtJ-0001i5-Mh for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2022 11:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: wilnerthomas@tutanota.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Aug 2022 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57459 X-GNU-PR-Package: emacs Original-Received: via spool by 57459-submit@debbugs.gnu.org id=B57459.16616992226504 (code B ref 57459); Sun, 28 Aug 2022 15:08:01 +0000 Original-Received: (at 57459) by debbugs.gnu.org; 28 Aug 2022 15:07:02 +0000 Original-Received: from localhost ([127.0.0.1]:59513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSJsM-0001gq-Gp for submit@debbugs.gnu.org; Sun, 28 Aug 2022 11:07:02 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:50442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSJsK-0001gL-Tl for 57459@debbugs.gnu.org; Sun, 28 Aug 2022 11:07:01 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 03099FBF85C; Sun, 28 Aug 2022 15:06:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1661699214; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=4xhqFa2z40jpwR35iEIBfIj3thaieBaeytbzlyOOm/s=; b=X0Nouwzb8v7QYsKbtp6wkPg3lRbp2nMw9XyxYtlxZkTXLP4mSNa8+WRl/Y1HmP31 5ondmYGauHcgKuRbL2fmOhapurJ3A+tnzmPe1arjxPEBpLamRImRdFuel7v0r4OePaJ CvJ0PnRvjTjdEgRAlvXL5l2K1/f9bCBHtVPIBF2OOC2WugTmNcNGI0uqcyd//8qTDTG SrlG06QZ2Ysr7f1t1YxgqAYtvEoVjk7nbzVnSKuRqMbcUngn6k2EWYYj9hKM+oERaMH WqUNuoUM4T8ldkmH0AKaSLs4P4gY5PLZx0/K+SqtRVtatC2TyWkrpghKQ+OHjpjjq0O hDDi/BYNfw== In-Reply-To: <83ler8xvgv.fsf@gnu.org-NAZyNBn----2> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240990 Archived-At: Aug 28, 2022, 15:02 by eliz@gnu.org: >> Date: Sun, 28 Aug 2022 16:38:55 +0200 (CEST) >> From: wilnerthomas@tutanota.com >> Cc: 57459@debbugs.gnu.org >> >> Aug 28, 2022, 14:14 by eliz@gnu.org: >> >> > Please show how you tried doing that, starting from "emacs -Q". There >> > are many possible ways of customizing face attributes, and we need to >> > know which one you found not functioning in this case. >> > >> I made the following function >> >> (defun indicator-attributes () >> >> =C2=A0=C2=A0=C2=A0=C2=A0 (setq display-fill-column-indicator-character ?= \u2503) >> >> =C2=A0=C2=A0=C2=A0=C2=A0 (set-face-attribute 'fill-column-indicator nil = :background "green" :height 1.0)) >> >> I have another function to enable global-display-fill-column-indicator-m= ode >> >> (defun=C2=A0 colum-indicator ()=C2=A0 >> =C2=A0=C2=A0=C2=A0=C2=A0 (interactive) (global-display-fill-column-indic= ator-mode)) >> >> If I call (indicator-attributes) in my init file, then do "M-x colum-ind= icator" in a buffer, I get the old character. >> >> But if I change colum-indicator to include (indicator-attributes) after = setting the global mode, I get >> the correct wider character if I do "M-x colum-indicator" in a buffer. >> >> (defun=C2=A0 colum-indicator () >> =C2=A0 >> =C2=A0=C2=A0=C2=A0=C2=A0 (interactive) (global-display-fill-column-indic= ator-mode) (indicator-attributes)) >> > > It's the same issue as with fill-column: > display-fill-column-indicator-character is a variable that > automatically becomes buffer-local when set (see its doc string). So > your setq is in effect only for a single buffer: the one in which > Emacs loads and evaluates the init file. > > You should use setq-default instead. > > This is not a bug. > Thusly I have the same problem because for setq-default,=C2=A0 the new valu= e is seen in buffers that do not have their own values for the variable. But I want to change the value even if buffer has its own value.