Simpler expression

This commit is contained in:
Lucien Cartier-Tilet 2022-09-01 16:22:22 +02:00
parent e7c01d9dc8
commit 8633b3b83b
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -129,7 +129,7 @@ mode is `org-mode', when the buffer is not read-only, and if
\\='auto-id:t\\' is found in an #+OPTIONS line."
(interactive)
(when (and (eq major-mode 'org-mode)
(eq buffer-read-only nil)
(not buffer-read-only)
(save-excursion
(goto-char (point-min))
(let ((case-fold-search t))