From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#36861: 27.0.50; display-fill-column-indicator-mode in log-edit-mode Date: Sun, 04 Aug 2019 22:39:06 +0300 Organization: LINKOV.NET Message-ID: <87o914u65x.fsf@mail.linkov.net> References: <875znjntfe.fsf@mail.linkov.net> <83mugvhr66.fsf@gnu.org> <871ry6rksu.fsf@mail.linkov.net> <83zhksexvx.fsf@gnu.org> <87sgqhricg.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="140951"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 36861@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 04 21:51:30 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 1huMXS-000aXJ-Je for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 21:51:30 +0200 Original-Received: from localhost ([::1]:49382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huMXR-0005VI-MO for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 15:51:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58061) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huMX4-0004hO-Dj for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 15:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huMX3-0004xo-7P for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 15:51:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1huMX3-0004xg-3n for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 15:51:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1huMX3-0006DX-14 for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 15:51:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2019 19:51:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36861 X-GNU-PR-Package: emacs Original-Received: via spool by 36861-submit@debbugs.gnu.org id=B36861.156494826123864 (code B ref 36861); Sun, 04 Aug 2019 19:51:04 +0000 Original-Received: (at 36861) by debbugs.gnu.org; 4 Aug 2019 19:51:01 +0000 Original-Received: from localhost ([127.0.0.1]:34265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huMWz-0006Cn-2Z for submit@debbugs.gnu.org; Sun, 04 Aug 2019 15:51:01 -0400 Original-Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:18445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huMWx-0006Cf-Bf for 36861@debbugs.gnu.org; Sun, 04 Aug 2019 15:50:59 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 427061A0AF7; Sun, 4 Aug 2019 19:50:58 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a13.g.dreamhost.com (100-96-4-69.trex.outbound.svc.cluster.local [100.96.4.69]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A23D51A0993; Sun, 4 Aug 2019 19:50:57 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a13.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Sun, 04 Aug 2019 19:50:58 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Broad-Scare: 34b98fb9175d74ba_1564948257943_1373951969 X-MC-Loop-Signature: 1564948257942:2041285923 X-MC-Ingress-Time: 1564948257942 Original-Received: from pdx1-sub0-mail-a13.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTP id 6A6DF7FE4A; Sun, 4 Aug 2019 12:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=apHern8bZDB4YJfEwxXIk0GndCg=; b= S9hVdVEN77drE19UxsW19jxxXF+V/jsTwF5+LAgwE6SOecY7XZ1mpQea6Ig0Vt8a QUk6EfByUhKnN4BB48ybiHqWO41Mj7J6t9LLg2thGXg64mKBb000FRHFhWoP5AAv vO3fZnfeEWLNUGPmqgTzZzO1GxVJ683LiVOAWPJLTsM= Original-Received: from mail.jurta.org (m91-129-103-91.cust.tele2.ee [91.129.103.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTPSA id AF0807FE67; Sun, 4 Aug 2019 12:50:48 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a13 In-Reply-To: (Ergus's message of "Sun, 04 Aug 2019 02:51:04 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddthedgudeggecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepshhprggtihgssggrsegrohhlrdgtohhmnecuvehluhhsthgvrhfuihiivgepfe 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:164593 Archived-At: > Hi, sorry, I don't understand actually why is so complex this provided code > in the email. The initialization for display-fill-column-indicator makes > some checks to set the default character as described in the documentation, > so no extra code is needed for that in the user side. > In the initialization I see in this mail, they just set the column's value > to 78 which can be done also using the variable fill-column for the whole > major mode too. And actually dfci will recognize it by default and other > functionalities too so in the general scenario is better to use that one. > > (setq fill-column 78) > (display-fill-column-indicator t) > > Should work no matters the order. Maybe as you were setting the mode's > variable instead of calling the function with the same name; the mode > was not properly initialized. The problem is that is when the need is to enable dfci, it is simpler to avoid eval to enable this mode because dfci works fine without using dfci-mode, i.e. when only variables are set in Local Variables: ;;; Local Variables: ;;; display-fill-column-indicator: t ;;; display-fill-column-indicator-column: 78 ;;; End: or in .dir-locals.el: (display-fill-column-indicator . t) (display-fill-column-indicator-column . 78) But the display-fill-column-indicator-character can't be set in Local Variables because its value depends on the current display: either U+2502 or ?| if the font does not support Unicode characters. Do you think it would be possible to set the default value of display-fill-column-indicator-character without calling display-fill-column-indicator-mode?