From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#44232: (no subject) Date: Mon, 26 Oct 2020 17:51:04 +0100 Message-ID: <87o8kpx75z.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24076"; 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: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 26 17:52:23 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 1kX5jJ-00068Z-HF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 17:52:21 +0100 Original-Received: from localhost ([::1]:46394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX5jI-0004Z7-Ea for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 12:52:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX5j0-0004Y8-Md for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 12:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kX5j0-0004a8-E1 for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 12:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kX5j0-00060X-Cs for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 12:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2020 16:52: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.160373108523012 (code B ref 44232); Mon, 26 Oct 2020 16:52:02 +0000 Original-Received: (at 44232) by debbugs.gnu.org; 26 Oct 2020 16:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:41095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX5iO-0005z5-VI for submit@debbugs.gnu.org; Mon, 26 Oct 2020 12:51:25 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:45242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX5iG-0005yk-4V for 44232@debbugs.gnu.org; Mon, 26 Oct 2020 12:51:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Cc:To:From:Sender:Reply-To:Subject:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=O07+Y5HPJf773oHY7HIF4luLIxNrl4zsf0XT0lVATX8=; b=bpK9k98aa+sr/EcCKc9GsR4KDO peHM5esR+lv25Oud50HCCBsIrnoaJY6y2hKGaEJR9QSWtHJ5GhCkPXI80nWYodmSmJSu+cUI+L4g2 KGzeYHjHr9yCtXftLo2jblnxGGPXaHnBl3XA6CR5ZXDwcoG3IDJfsiS4yxw9PT/i567s=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX5i6-0002zH-3R; Mon, 26 Oct 2020 17:51:08 +0100 X-Now-Playing: Instant Life's _I turned my best friends into slaves_: "Flowerless" In-Reply-To: <87pn55eyb7.fsf@tcd.ie> (Basil L. Contovounesios's message of "Mon, 26 Oct 2020 16:39:40 +0000") 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:191609 Archived-At: "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. And the syntax for highlight-changes-global-modes was simpler than I thought when skimming -- it requires the `not' to be the first element, etc, so it's not really that flexible. Perhaps `define-globalized-minor-mode' should take a keyword to create one of these defcustoms (with semantics like I sketched previously)... then there'd be more opportunity for shared behaviour. I'll take a whack at writing that. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no