From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#44226: display-fill-column-indicator not ready for prime time Date: Mon, 26 Oct 2020 07:25:02 +0800 Message-ID: <875z6xj3ch.5.fsf@jidanni.org> 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="10090"; mail-complaints-to="usenet@ciao.gmane.io" To: 44226@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 26 00:47:38 2020 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 1kWpjd-0002XQ-TM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 00:47:38 +0100 Original-Received: from localhost ([::1]:58018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWpjc-0000qD-Ux for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Oct 2020 19:47:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWpj4-0000Xt-To for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2020 19:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWpj4-0005IZ-L8 for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2020 19:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kWpj4-0004fh-K7 for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2020 19:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Oct 2020 23:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44226 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160366961517927 (code B ref -1); Sun, 25 Oct 2020 23:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Oct 2020 23:46:55 +0000 Original-Received: from localhost ([127.0.0.1]:38027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWpiw-0004f5-NI for submit@debbugs.gnu.org; Sun, 25 Oct 2020 19:46:54 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWpis-0004ej-NT for submit@debbugs.gnu.org; Sun, 25 Oct 2020 19:46:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWpis-0000XE-Fr for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2020 19:46:50 -0400 Original-Received: from crocodile.elm.relay.mailchannels.net ([23.83.212.45]:41430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWpiq-0005Gh-P2 for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2020 19:46:50 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C71E3921717 for ; Sun, 25 Oct 2020 23:46:45 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a12.g.dreamhost.com (100-96-9-93.trex.outbound.svc.cluster.local [100.96.9.93]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 68A5D92108B for ; Sun, 25 Oct 2020 23:46:45 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a12.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Sun, 25 Oct 2020 23:46:45 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Tart-Interest: 40019c144210935d_1603669605640_652591183 X-MC-Loop-Signature: 1603669605639:771347513 X-MC-Ingress-Time: 1603669605639 Original-Received: from pdx1-sub0-mail-a12.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a12.g.dreamhost.com (Postfix) with ESMTP id 2E7D07E68B for ; Sun, 25 Oct 2020 16:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=OQTTEk+Ht3mGDKt1am XGhJ70eek=; b=SoiwqvmhBTWOkAPYrrgVnNReAYfjnE9Qh0iTPwiwyXlzxPTNzx 3TM27XUtD6aQAnbC6sHRJdcnIWH0a49vn39l0SwJWQhQKoOEQfStgnCC62IGuNLd +Bao5o/nC1vN7f9n4l87rct54lmxOnKHqPKI0hvL8a65vWoSltEJZEIXM= Original-Received: from jidanni.org (114-46-59-140.dynamic-ip.hinet.net [114.46.59.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a12.g.dreamhost.com (Postfix) with ESMTPSA id BEDAE7E689 for ; Sun, 25 Oct 2020 16:46:44 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a12 Received-SPF: pass client-ip=23.83.212.45; envelope-from=jidanni@jidanni.org; helo=crocodile.elm.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/25 19:46:46 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:191547 Archived-At: emacs-version "27.1" In 'GNU Emacs NEWS -- history of user-visible changes.' I saw ;; Customize the buffer-local user options 'display-fill-column-indicato= r' ;; and 'display-fill-column-indicator-character' to activate the ;; indicator. Sounds great. I'm hyped! Alas, for my average file.txt setting display-fill-column-indicator to t did nothing. OK describe-variable display-fill-column-indicator leads to (info "(emacs) Displaying Boundaries") OK, starting over, maybe I need to change display-fill-column-indicator- character user-error: Value =E2=80=98|=E2=80=99 does not match type choice of displ= ay-fill-column-indicator-character user-error: Value =E2=80=98x=E2=80=99 does not match type choice of displ= ay-fill-column-indicator-character OK checking the docs it says display-fill-column-indicator-character is a variable defined in =E2=80= =98C source code=E2=80=99. Its value is nil ^^^^^^^^^^^^^^^^ Automatically becomes buffer-local when set. Calls these functions when changed: (#) This variable is safe as a file local variable if its value satisfies the predicate =E2=80=98(lambda (value) (or (characterp val= ue) (null value)))=E2=80=99. You can customize this variable. This variable was introduced, or its default value was changed, in version 27.1 of Emacs. Documentation: Character to draw the indicator when =E2=80=98display-fill-column-indi= cator=E2=80=99 is non-nil. The default is U+2502 but a good alternative is (ascii 124) ^^^^^^^^^^^SO WHY IS IT STILL NIL? ^^^^^^^^^^ ALSO SAY '|= ' if the font in fill-column-indicator face does not support Unicode cha= racters. See Info node =E2=80=98Displaying Boundaries=E2=80=99 for details. OK, let's try some more. user-error: Value =E2=80=98U+2502=E2=80=99 does not match type choice of = display-fill-column-indicator-character user-error: Value =E2=80=98=E2=94=82=E2=80=99 does not match type choice = of display-fill-column-indicator-character Conclusion: why not, in the INFO manual, add a full example, of how to get started with display-fill-column-indicator. In fact, say so, of what to put in .emacs, to get it working globally.