GNU bug report logs - #38111
27.0.50; globalized-minor-mode not enabled on get-buffer-create

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Juri Linkov <juri@HIDDEN>; Keywords: notabug; Done: Juri Linkov <juri@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 38111 <at> debbugs.gnu.org:


Received: (at 38111) by debbugs.gnu.org; 13 Nov 2019 21:50:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 13 16:50:00 2019
Received: from localhost ([127.0.0.1]:60258 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iV0WU-0007ou-Cj
	for submit <at> debbugs.gnu.org; Wed, 13 Nov 2019 16:50:00 -0500
Received: from bongo.elm.relay.mailchannels.net ([23.83.212.21]:35328)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iV0WR-0007oi-7b
 for 38111 <at> debbugs.gnu.org; Wed, 13 Nov 2019 16:49:55 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 2D92634232D;
 Wed, 13 Nov 2019 21:49:54 +0000 (UTC)
Received: from pdx1-sub0-mail-a44.g.dreamhost.com
 (100-96-187-103.trex.outbound.svc.cluster.local [100.96.187.103])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 92656342363;
 Wed, 13 Nov 2019 21:49:53 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a44.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.18.5); Wed, 13 Nov 2019 21:49:54 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Stupid-Shrill: 580b699761b19412_1573681793847_404957779
X-MC-Loop-Signature: 1573681793847:197912859
X-MC-Ingress-Time: 1573681793847
Received: from pdx1-sub0-mail-a44.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a44.g.dreamhost.com (Postfix) with ESMTP id 5D38185225;
 Wed, 13 Nov 2019 13:49:48 -0800 (PST)
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=6BmnB9kBIwVOtlMy/AZBLS0ireg=; b=
 JK+512utcZhZJ+UFA7Qso1DhW96LVt3xxp7Qw33VTwsT97K8xYk0HcXqGZrFcuY8
 vYDBDw5ww9Cw5lmjKEksrpukMrh+pcFW9Q3VkdGfgykKWw0S+lKQ73iM22pp7rPp
 5aS4Aeqry9LAncObc/koGocNyhv4drSK5v+slCS7HxQ=
Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a44.g.dreamhost.com (Postfix) with ESMTPSA id CF39D85224;
 Wed, 13 Nov 2019 13:49:45 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a44
From: Juri Linkov <juri@HIDDEN>
To: Phil Sainty <psainty@HIDDEN>
Subject: Re: bug#38111: 27.0.50; globalized-minor-mode not enabled on
 get-buffer-create
Organization: LINKOV.NET
References: <87sgmzqs5z.fsf@HIDDEN> <83y2wqd7ec.fsf@HIDDEN>
 <b7a4b75aa812be3d838ca95975686a61@HIDDEN>
Date: Wed, 13 Nov 2019 23:12:29 +0200
In-Reply-To: <b7a4b75aa812be3d838ca95975686a61@HIDDEN> (Phil
 Sainty's message of "Wed, 13 Nov 2019 11:42:07 +1300")
Message-ID: <871rubmqf6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38111
Cc: Eli Zaretskii <eliz@HIDDEN>, 38111 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> Sounds like globalized-minor-mode machinery somehow doesn't support
>> the latter method of creating a buffer?
>
> Yep, globalized modes use `after-change-major-mode-hook' to call the
> buffer-local minor mode, and that hook is not triggered in these cases
> because, although new buffers are in `fundamental-mode' by default,
> the `fundamental-mode' function is not actually called, and so no mode
> change occurs.
>
> I believe this has cropped up in past discussion, but I don't recall
> where offhand.
>
> I agree that it's surprising when you are expecting the global mode(s)
> to be enabled (I first realised it when attempting to use a globalized
> mode for my custom key bindings, and discovering they were not being
> enabled in various buffers).
>
> If this were changed then there *might* be undesirable consequences to
> having lots of created-behind-the-scenes buffers suddenly doing things
> they never did before.
>
> If the current behaviour is kept, the documentation for globalized
> modes and for creating buffers should probably say something about the
> matter.

Thanks for referring to the documentation.  It already explains this in
(info "(elisp) Defining Minor Modes")

 -- Macro: define-globalized-minor-mode global-mode mode turn-on
          keyword-args... body...
...
     Globally enabling the mode also affects buffers subsequently
     created by visiting files, and buffers that use a major mode other
     than Fundamental mode; but it does not detect the creation of a new
     buffer in Fundamental mode.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38111; Package emacs. Full text available.

Message received at 38111 <at> debbugs.gnu.org:


Received: (at 38111) by debbugs.gnu.org; 12 Nov 2019 22:42:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 12 17:42:15 2019
Received: from localhost ([127.0.0.1]:58600 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iUerX-0008US-5F
	for submit <at> debbugs.gnu.org; Tue, 12 Nov 2019 17:42:15 -0500
Received: from smtp-2.orcon.net.nz ([60.234.4.43]:38567)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <psainty@HIDDEN>) id 1iUerU-0008UI-Sd
 for 38111 <at> debbugs.gnu.org; Tue, 12 Nov 2019 17:42:13 -0500
Received: from [10.253.37.70] (port=44636 helo=webmail.orcon.net.nz)
 by smtp-2.orcon.net.nz with esmtpa (Exim 4.90_1)
 (envelope-from <psainty@HIDDEN>)
 id 1iUerP-00052l-HB; Wed, 13 Nov 2019 11:42:07 +1300
Received: from wlgwil-nat-office.catalyst.net.nz ([202.78.240.7])
 via [10.253.37.253] by webmail.orcon.net.nz
 with HTTP (HTTP/1.1 POST); Wed, 13 Nov 2019 11:42:07 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 13 Nov 2019 11:42:07 +1300
From: Phil Sainty <psainty@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#38111: 27.0.50; globalized-minor-mode not enabled on
 get-buffer-create
In-Reply-To: <83y2wqd7ec.fsf@HIDDEN>
References: <87sgmzqs5z.fsf@HIDDEN> <83y2wqd7ec.fsf@HIDDEN>
Message-ID: <b7a4b75aa812be3d838ca95975686a61@HIDDEN>
X-Sender: psainty@HIDDEN
User-Agent: Orcon Webmail
X-GeoIP: --
X-Spam_score: -2.9
X-Spam_score_int: -28
X-Spam_bar: --
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 38111
Cc: 38111 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 2019-11-08 22:50, Eli Zaretskii wrote:
> Sounds like globalized-minor-mode machinery somehow doesn't support
> the latter method of creating a buffer?

Yep, globalized modes use `after-change-major-mode-hook' to call the
buffer-local minor mode, and that hook is not triggered in these cases
because, although new buffers are in `fundamental-mode' by default,
the `fundamental-mode' function is not actually called, and so no mode
change occurs.

I believe this has cropped up in past discussion, but I don't recall
where offhand.

I agree that it's surprising when you are expecting the global mode(s)
to be enabled (I first realised it when attempting to use a globalized
mode for my custom key bindings, and discovering they were not being
enabled in various buffers).

If this were changed then there *might* be undesirable consequences to
having lots of created-behind-the-scenes buffers suddenly doing things
they never did before.

If the current behaviour is kept, the documentation for globalized
modes and for creating buffers should probably say something about the
matter.


-Phil





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38111; Package emacs. Full text available.
bug closed, send any further explanations to 38111 <at> debbugs.gnu.org and Juri Linkov <juri@HIDDEN> Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) notabug. Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 38111 <at> debbugs.gnu.org:


Received: (at 38111) by debbugs.gnu.org; 12 Nov 2019 21:10:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 12 16:10:35 2019
Received: from localhost ([127.0.0.1]:58476 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iUdQo-0002KB-Lq
	for submit <at> debbugs.gnu.org; Tue, 12 Nov 2019 16:10:35 -0500
Received: from caracal.birch.relay.mailchannels.net ([23.83.209.30]:61727)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>)
 id 1iUdQm-0002Jz-1b; Tue, 12 Nov 2019 16:10:32 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id BE2E8340D45;
 Tue, 12 Nov 2019 21:10:30 +0000 (UTC)
Received: from pdx1-sub0-mail-a75.g.dreamhost.com
 (100-96-187-103.trex.outbound.svc.cluster.local [100.96.187.103])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 06A99341193;
 Tue, 12 Nov 2019 21:10:30 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a75.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.18.5); Tue, 12 Nov 2019 21:10:30 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Descriptive-Robust: 073ad0f743734d29_1573593030275_4154737843
X-MC-Loop-Signature: 1573593030275:1589436402
X-MC-Ingress-Time: 1573593030275
Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id 4E8999D7C6;
 Tue, 12 Nov 2019 13:10:25 -0800 (PST)
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:content-transfer-encoding; s=linkov.net; bh=E6jqiK
 inrEHhXNT6xlTAEQgA7N4=; b=I3I04Xq1VVp6JBOunCmQd1349AIR/9Q+FGEViu
 +jA5UUkvtyAxjjd6piiVUXWkX73zzwKDmL1Q0CWxn0x3tn1CLN1MMQry4SbLKlyN
 70YmZI25nG5h8cgqoslNI+ubOFZT8Bnddr7CqMgFiltufbMmzVF/cRzofAPybulU
 re11w=
Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTPSA id 4D5D79D7C5;
 Tue, 12 Nov 2019 13:10:22 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a75
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#38111: 27.0.50; globalized-minor-mode not enabled on
 get-buffer-create
Organization: LINKOV.NET
References: <87sgmzqs5z.fsf@HIDDEN> <83y2wqd7ec.fsf@HIDDEN>
Date: Tue, 12 Nov 2019 22:33:35 +0200
In-Reply-To: <83y2wqd7ec.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 08 Nov
 2019 11:50:03 +0200")
Message-ID: <87r22dm83s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38111
Cc: 38111 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

tags 38111 + notabug
close 38111
quit

>> This looks like a bug.  I found this issue while using global-tab-line=
-mode,
>> but to confirm that it's unrelated to tab-line, this bug report uses a=
nother
>> globalized minor-mode global-display-fill-column-indicator-mode:
>>
>> 0. emacs -Q
>> 1. M-x global-display-fill-column-indicator-mode RET
>> 2. C-x b test1 RET
>> 3. RET  ;; this inserts newline to show column indicator
>>         ;; that confirms this mode is enabled in the buffer
>>
>> 4. M-: (switch-to-buffer (get-buffer-create "test2")) RET
>> 5. RET  ;; no column indicator, mode not enabled
>> 6. C-h v display-fill-column-indicator-mode RET
>>    ;; confirms its value is nil
>
> Sounds like globalized-minor-mode machinery sdomehow doesn't support
> the latter method of creating a buffer?  Does the turn-on function of
> the mode get called in that scenario?

'C-x b' (switch-to-buffer) uses =E2=80=98window-normalize-buffer-to-switc=
h-to=E2=80=99
to call after 'get-buffer-create' explicitly:

  (set-buffer-major-mode buffer)

It seems this is not a problem in practice, since callers
can add set-buffer-major-mode, so closing.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38111; Package emacs. Full text available.

Message received at 38111 <at> debbugs.gnu.org:


Received: (at 38111) by debbugs.gnu.org; 8 Nov 2019 09:50:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 08 04:50:27 2019
Received: from localhost ([127.0.0.1]:44627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iT0uO-0006NC-Om
	for submit <at> debbugs.gnu.org; Fri, 08 Nov 2019 04:50:25 -0500
Received: from eggs.gnu.org ([209.51.188.92]:59267)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iT0uM-0006Mt-Le
 for 38111 <at> debbugs.gnu.org; Fri, 08 Nov 2019 04:50:23 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:60668)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iT0uE-0004i6-Kg; Fri, 08 Nov 2019 04:50:14 -0500
Received: from [176.228.60.248] (port=4863 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iT0uD-0003xz-Us; Fri, 08 Nov 2019 04:50:14 -0500
Date: Fri, 08 Nov 2019 11:50:03 +0200
Message-Id: <83y2wqd7ec.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <87sgmzqs5z.fsf@HIDDEN> (message from Juri Linkov on
 Thu, 07 Nov 2019 23:53:04 +0200)
Subject: Re: bug#38111: 27.0.50;
 globalized-minor-mode not enabled on get-buffer-create
References: <87sgmzqs5z.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38111
Cc: 38111 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Date: Thu, 07 Nov 2019 23:53:04 +0200
> 
> This looks like a bug.  I found this issue while using global-tab-line-mode,
> but to confirm that it's unrelated to tab-line, this bug report uses another
> globalized minor-mode global-display-fill-column-indicator-mode:
> 
> 0. emacs -Q
> 1. M-x global-display-fill-column-indicator-mode RET
> 2. C-x b test1 RET
> 3. RET  ;; this inserts newline to show column indicator
>         ;; that confirms this mode is enabled in the buffer
> 
> 4. M-: (switch-to-buffer (get-buffer-create "test2")) RET
> 5. RET  ;; no column indicator, mode not enabled
> 6. C-h v display-fill-column-indicator-mode RET
>    ;; confirms its value is nil

Sounds like globalized-minor-mode machinery sdomehow doesn't support
the latter method of creating a buffer?  Does the turn-on function of
the mode get called in that scenario?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38111; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Nov 2019 22:58:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 07 17:58:22 2019
Received: from localhost ([127.0.0.1]:44087 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSqjN-0005fL-N4
	for submit <at> debbugs.gnu.org; Thu, 07 Nov 2019 17:58:22 -0500
Received: from lists.gnu.org ([209.51.188.17]:53276)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iSqjJ-0005f0-9J
 for submit <at> debbugs.gnu.org; Thu, 07 Nov 2019 17:58:18 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51320)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <juri@HIDDEN>) id 1iSqjI-0006FY-1b
 for bug-gnu-emacs@HIDDEN; Thu, 07 Nov 2019 17:58:17 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_NONE,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <juri@HIDDEN>) id 1iSqjF-0004bF-Os
 for bug-gnu-emacs@HIDDEN; Thu, 07 Nov 2019 17:58:15 -0500
Received: from chocolate.birch.relay.mailchannels.net ([23.83.209.35]:42795)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1iSqjD-0004UO-HC
 for bug-gnu-emacs@HIDDEN; Thu, 07 Nov 2019 17:58:13 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 2A213E0878
 for <bug-gnu-emacs@HIDDEN>; Thu,  7 Nov 2019 22:58:07 +0000 (UTC)
Received: from pdx1-sub0-mail-a69.g.dreamhost.com
 (100-96-45-192.trex.outbound.svc.cluster.local [100.96.45.192])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 78F4AE0D18
 for <bug-gnu-emacs@HIDDEN>; Thu,  7 Nov 2019 22:58:06 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a69.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.18.5); Thu, 07 Nov 2019 22:58:06 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Lettuce-Lonely: 4953a09548be8397_1573167486710_2647561983
X-MC-Loop-Signature: 1573167486710:725945840
X-MC-Ingress-Time: 1573167486709
Received: from pdx1-sub0-mail-a69.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a69.g.dreamhost.com (Postfix) with ESMTP id 106A28A997
 for <bug-gnu-emacs@HIDDEN>; Thu,  7 Nov 2019 14:58:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to
 :subject:date:message-id:mime-version:content-type; s=
 linkov.net; bh=TBA1DN3hEiJ8HKX/ST8VApBQyEg=; b=3hfBqa9EhnMrQ02v0
 +swIM8r+MAQUlVhb2wekvrdUfadYO2Rn77HokvCzytZo9UQDZkki9MQNmLpPYd1h
 VkmOHInXSgHYAmaqHdm96sDYRTYmBC9U12nCFBqGVyWbSqAotgvli0yx4T+bY2+M
 93aLGC1x+QlvtdhfdLT7Eb7pHI=
Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a69.g.dreamhost.com (Postfix) with ESMTPSA id 5F1588AA50
 for <bug-gnu-emacs@HIDDEN>; Thu,  7 Nov 2019 14:58:01 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a69
From: Juri Linkov <juri@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; globalized-minor-mode not enabled on get-buffer-create
Organization: LINKOV.NET
Date: Thu, 07 Nov 2019 23:53:04 +0200
Message-ID: <87sgmzqs5z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 23.83.209.35
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

This looks like a bug.  I found this issue while using global-tab-line-mode,
but to confirm that it's unrelated to tab-line, this bug report uses another
globalized minor-mode global-display-fill-column-indicator-mode:

0. emacs -Q
1. M-x global-display-fill-column-indicator-mode RET
2. C-x b test1 RET
3. RET  ;; this inserts newline to show column indicator
        ;; that confirms this mode is enabled in the buffer

4. M-: (switch-to-buffer (get-buffer-create "test2")) RET
5. RET  ;; no column indicator, mode not enabled
6. C-h v display-fill-column-indicator-mode RET
   ;; confirms its value is nil




Acknowledgement sent to Juri Linkov <juri@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#38111; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 13 Nov 2019 22:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.