From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wilnerthomas--- via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Changing value for fill-column Date: Mon, 29 Aug 2022 10:39:50 +0200 (CEST) Message-ID: References: <83r110xxt5.fsf@gnu.org> <83mtboxwsv.fsf@gnu.org> <83ilmcxv8i.fsf@gnu.org> <83h71wxu1k.fsf@gnu.org> 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="23960"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 29 10:42:24 2022 Return-path: Envelope-to: geh-help-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 1oSaLg-00064L-AR for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 10:42:24 +0200 Original-Received: from localhost ([::1]:55992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSaLf-0001l4-2f for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 04:42:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSaJG-0001jZ-7t for help-gnu-emacs@gnu.org; Mon, 29 Aug 2022 04:39:54 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:55362) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSaJE-0007ce-Jh; Mon, 29 Aug 2022 04:39:53 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 72C0FFBF4F4; Mon, 29 Aug 2022 08:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1661762390; 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=4ofMSoZ30KSpdH6avHSD2a3UtIfmOgJQO7MzWgtJLNU=; b=i4AOWgrK2KA/27H0HGD/hEtKKEyjoxb0oW1GaBN6/bLdDcBgsKcjapmof/BnNPaK 5APiLAfJKohzWEPB9txzi3/Sd8eiljn+2symHTNZ+XMO30FJ1+6oWUsx+8D0Ae3gxyo CvpY0iIprt6NOfl/RkbnzrIcTOMwxS/lgmwKbwcfT30j1N5Ox3SUOVz74cS8iM1mFCH ui5DyUs2bPrhWvTCUXOfgg0SSjIC71kxhn9fISmzuiWy4caVX1qUCS1QrNtRUjpvrbv FChN+zHUOsqCbKleFxAYDP6IEFTSYPDtdPgUUe0+xoJsfGi15acqpQihxsdRuXd4WUX URzbMoLuww== In-Reply-To: <83h71wxu1k.fsf@gnu.org> Received-SPF: pass client-ip=81.3.6.162; envelope-from=wilnerthomas@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139145 Archived-At: Aug 28, 2022, 15:32 by eliz@gnu.org: >> Date: Sun, 28 Aug 2022 17:14:25 +0200 (CEST) >> From: wilnerthomas@tutanota.com >> Cc: help-gnu-emacs@gnu.org >> >> >> Aug 28, 2022, 15:07 by eliz@gnu.org: >> >> >> But I want to change the value even if buffer has its own value for f= ill-column >> >> >> > If you do that in your init file, no buffer will have a local value >> > yet. >> > >> How do these local values get set when users do not perform setq-default= in their init file? >> Some modes set them up if there is no mode-hook for it already? >> > > Modes don't set these variables; users do. > > setq-default sets the default value, and that default value will be in > effect in every new buffer, unless someone -- you -- changes the value > in that buffer. Since you want the same different value in all > buffers, you will probably not set the value in individual buffers, > and thus the default which you changed with setq-default will stay in > effect. > And once a user uses=C2=A0 setq-default=C2=A0 for a variable that variable = cannot be changed again. If users do not change fill-column, how does ruler-mode set the value? For the hook you mentioned, I have done as follows =C2=A0=C2=A0=C2=A0=C2=A0 (defun column-property ()=C2=A0 (setq fill-column = 72)) =C2=A0=C2=A0=C2=A0=C2=A0 (add-hook 'prog-mode-hook #'column-property)