Make sure 'denote--menu-contents' has a string as its first element

This fixes the bug where 'denote-context-menu' would completely
disable the 'context-menu-mode', as reported by artelse in issue 592:
<https://github.com/protesilaos/denote/issues/592>.
This commit is contained in:
Lucas Quintana 2025-05-05 08:12:15 +03:00 committed by Protesilaos Stavrou
parent 77371ac78a
commit 34103b2b3a
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -6080,7 +6080,8 @@ This command is meant to be used from a Dired buffer."
;;;; Define menu
(defvar denote--menu-contents
'(["Create a note" denote
'("Denote"
["Create a note" denote
:help "Create a new note in the `denote-directory'"]
["Create a note with given file type" denote-type
:help "Create a new note with a given file type in the `denote-directory'"]