From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Weird capitalisation in " enabled in current buffer" Date: Wed, 31 Aug 2022 13:34:12 +0200 Message-ID: <87a67k63r4.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14835"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.3; emacs 28.1.91 To: gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 31 13:43:22 2022 Return-path: Envelope-to: geh-help-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 1oTM7h-0003CE-BG for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 13:43:11 +0200 Original-Received: from localhost ([::1]:42502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTM7g-0001Oc-DD for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 07:43:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTM5f-0001Kr-4A for help-gnu-emacs@gnu.org; Wed, 31 Aug 2022 07:41:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36444) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTM5e-0004KW-7a for help-gnu-emacs@gnu.org; Wed, 31 Aug 2022 07:41:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50298) by fencepost.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTM5W-0002v0-CU for gnu-emacs-help@gnu.org; Wed, 31 Aug 2022 07:40:57 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:53225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTM5T-0003rz-8K for gnu-emacs-help@gnu.org; Wed, 31 Aug 2022 07:40:53 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 1CD215C012E for ; Wed, 31 Aug 2022 07:39:48 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 31 Aug 2022 07:39:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t= 1661945988; x=1662032388; bh=w4YbG26Bc32VQ9jvrSi4bEUEsnhrmrrb9Hg GeK6K1JA=; b=Tf24bFpsCem5wtiz6mdI4ZcNaz+qk8g5BZNI0B9xLw++b6Xp/bB Cl1DSsOff6Rx6rpsEM/C153rITXbg0DMSEaP+Kv+Y174LR218rouVoJ0T+zd+XKk ETM0i76e+/QEkEPfjF9A28WUEAHBNaLy84ERz2/3hB1RK7ayEfjIyzJRMbKL+FW/ Krk13Kj3IRd3D6MDX0XNAvLptoTCD6JQ02qTxpPGo3ldfiBAf1ePa19z5fuNZP1H gHXqnIj1SB5wbKAGBwKyh4jsaAwmTsC41XLxsFvRU+HbvkGQ3nn7zYwEm+HOarXe mQlySIG1kcjv0GZXaCRBVmRugzLzgoqsfAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661945988; x= 1662032388; bh=w4YbG26Bc32VQ9jvrSi4bEUEsnhrmrrb9HgGeK6K1JA=; b=L P2IaxF3L/3/sdqNvvR/KYQvv0yGCNGGPeIOB6M1yHqCmZKoiKk/Bv6pYf1xbmx5V l4pwLMFGhKg8EHMa2sa61fSRKM8I5zy1gsMHy7vR4c8ENbJX4yQfWMbZxWa3DoKi FLTUgTKfZ5f2uGE7iQU+cx4ettqihE+mLAHl1T/s85pAkqoOnlR/E0ROqQz0wfp1 ub70BxnOtkylzFQrXAaDJz4vFMhgrOeCOEg90wdtmBMzXPfe+bhlPtZlQI1JhomO vdy7Aya7LpNFVa+H7eHuGPCkpYQeuEGG5hzHMCiM8eW+hRp0go9GnC9kryNuvj2g WGdZGsjpnOJicl0IYYlPA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekiedgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvufffkfggtgesthdtredttd ertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghr shesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepudeufedttefgleekhe eihfegtdelvdeutddvvedukedtieffiefhgfdvhfdtudefnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrg hsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 31 Aug 2022 07:39:46 -0400 (EDT) Received-SPF: pass client-ip=66.111.4.26; envelope-from=joostkremers@fastmail.fm; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139194 Archived-At: Hi list, I "wrote" a teeny-tiny minor mode `dedicated-mode` inspired by the same-name mode available on Melpa. It's basically just a single line: ``` (define-minor-mode dedicated-mode "Minor mode to dedicate a window to its buffer." :init-value nil :lighter " D" :global nil (set-window-dedicated-p nil dedicated-mode)) ``` Now, never mind that this shouldn't be a minor mode at all, since it should be linked to the window, not the buffer. What's strange is that when I activate this mode, the message in the echo area reads: DeDicateD moDe enabled in current buffer Note the capital Ds in the words "DeDicateD moDe". Same thing happens when I deactivate the mode. Funny thing is, if I change the :lighter in the mode definition to lower case "d", the capitalisation does not happen. So, what should I file this under? Bug or joke? :D -- Joost Kremers Life has its moments