From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers Date: Mon, 26 Oct 2020 17:15:03 +0000 Message-ID: <87v9ewewo8.fsf_-_@tcd.ie> References: <87imax2zyx.5.fsf@jidanni.org> <87mu092r5a.fsf@gnus.org> <87blgpmegd.5.fsf@jidanni.org> <875z6x2q4s.fsf@gnus.org> <83eellf1px.fsf@gnu.org> <87sga1x8mq.fsf@gnus.org> <87pn55eyb7.fsf@tcd.ie> <87o8kpx75z.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13481"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44232@debbugs.gnu.org, jidanni@jidanni.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 26 18:24:45 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 1kX6Ec-0003Nc-9z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 18:24:42 +0100 Original-Received: from localhost ([::1]:45876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX6Eb-0006nH-Bj for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 13:24:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX66E-0004fB-Np for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 13:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kX66E-00084d-Bh for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 13:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kX66E-0000IS-6l for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 13:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2020 17:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44232 X-GNU-PR-Package: emacs Original-Received: via spool by 44232-submit@debbugs.gnu.org id=B44232.16037325131076 (code B ref 44232); Mon, 26 Oct 2020 17:16:02 +0000 Original-Received: (at 44232) by debbugs.gnu.org; 26 Oct 2020 17:15:13 +0000 Original-Received: from localhost ([127.0.0.1]:41152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX65R-0000HI-7w for submit@debbugs.gnu.org; Mon, 26 Oct 2020 13:15:13 -0400 Original-Received: from mail-wm1-f47.google.com ([209.85.128.47]:36299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX65O-0000H2-Ol for 44232@debbugs.gnu.org; Mon, 26 Oct 2020 13:15:11 -0400 Original-Received: by mail-wm1-f47.google.com with SMTP id e2so13298476wme.1 for <44232@debbugs.gnu.org>; Mon, 26 Oct 2020 10:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=+V8jkD+kEukW0yljnM0tTpslFh7/fyIGOGexxydQgJQ=; b=uQ0+eS5/0kU2U4Zh2fnx3dpFWCkgdHwHz6IznhFJnunJZB0naJBb7BdvLIJ73Ndt9s PG/jkmq3msfKfcCqYCSmJpRka55RqiQ4V5h7cqYlMQDk7f+KiITQ0wrk0eDMmFUtqiO1 bXCVnpC6uNsD37xIlGkFgk5gF5Agqm9Js6jDGPMBbkU8S5gF2AOkphzfK1Zo39MB68Mz O0vMFlbmVPElBbKZ2hmN86VyPIHR7qQYXQaiVPsiHvt4ZMYCQp8oUbDUY5LCbIYKdijq XGH8Cg+WhpMrpKbEJk8ukPJd/+PS5I1eB3+LKiq8rC3QFV/vBi6o14ErcQVUbj1++QMF Or7w== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=+V8jkD+kEukW0yljnM0tTpslFh7/fyIGOGexxydQgJQ=; b=l6Xy0Q+ZriRdkatO92xaIiJhCdO8l9k2Y/YEMzOmbpP37nq1ixBoZwg7xlVEi1ARn6 hharyNI5tfD0x2OLztwwpa2BqXagKWzK5xsGNEx9DzWZ0836AaPNKQlqsHQbLxJQpmLl 1iRUqw2hhOzftd1DHgiQ9TMyzCXcC5tuWN/70hJT9n+nrCN8KaX6ELkfLMPGRTQrClnL A9PEH1oIiAYSs4wla2MBmpwQTz8t3V/w4evk6Yj6e5YU8E1n0pZs27On4RBHI7s5tSPV f/WVfBQpisdJfBxVSDW0IaYA4o2PHFCLvS4HdocfYnJ7//46UvbcIAOBYo1eAK5q97ds +LRg== X-Gm-Message-State: AOAM532Oj+aj80bfXnOwbvwr56DyhyAzpalH8OjW14SdjJOBBxpuJE01 CX5JrXnsbZaT+szQUdHoayGKaA== X-Google-Smtp-Source: ABdhPJx710HH3AUFhUksU3xMA+W9eZuKYrHbFRyOzDLP0sbWeUYnnVt3ZmrJr7y7MjvdGKhy0UV+lw== X-Received: by 2002:a05:600c:2246:: with SMTP id a6mr1999681wmm.135.1603732504898; Mon, 26 Oct 2020 10:15:04 -0700 (PDT) Original-Received: from localhost ([109.78.145.8]) by smtp.gmail.com with ESMTPSA id u6sm19957769wmj.40.2020.10.26.10.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 10:15:04 -0700 (PDT) In-Reply-To: <87o8kpx75z.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 26 Oct 2020 17:51:04 +0100") 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:191618 Archived-At: Lars Ingebrigtsen writes: > "Basil L. Contovounesios" writes: > >> Lars Ingebrigtsen writes: >> >>> Eli Zaretskii writes: >>> >>>> As for the specific suggestion: it sounds somewhat kludgey to me. Why >>>> not take the Emacsy way: add a defcustom that lists major modes whose >>>> users are unlikely to want this mode turned on, and let the default >>>> value include the modes you think belong to that group. >>> >>> Is this how other globalized minor modes work? I tried poking around >>> but couldn't really see any patterns... >> >> Does whitespace-enable-predicate fit the bill? > > That's basically the same as highlight-changes-global-modes, but with > the added > > ;; ...the buffer is not internal (name starts with a space) > (not (eq (aref (buffer-name) 0) ?\ )) > ;; ...the buffer is not special (name starts with *) > (or (not (eq (aref (buffer-name) 0) ?*)) > > So that's kinda kludgy. It's not quite the same thing, because whitespace-enable-predicate only takes on function values, and is explicitly intended to be customised with the existing DSL of add-function, rather than a new ad-hoc DSL. [Not that I'd argue for the superiority of whitespace-enable-predicate over other customisation approaches.] -- Basil