unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Weird capitalisation in "<mode-name> enabled in current buffer"
@ 2022-08-31 11:34 Joost Kremers
  2022-08-31 16:20 ` Stephen Berman
  0 siblings, 1 reply; 3+ messages in thread
From: Joost Kremers @ 2022-08-31 11:34 UTC (permalink / raw)
  To: gnu-emacs-help

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-31 21:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-31 11:34 Weird capitalisation in "<mode-name> enabled in current buffer" Joost Kremers
2022-08-31 16:20 ` Stephen Berman
2022-08-31 21:42   ` Joost Kremers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).