Skip to content

Commit 1f90053

Browse files
tarsiusjrblevin
authored andcommitted
Declare variable aliases before their referent
Since Emacs 27 the byte-compiler tells us to do that. The warning is shown by `byte-compile-file-form-defvar-function', which contains a comment providing this justification: Variable aliases are better declared before the corresponding variable, since it makes it more likely that only one of the two vars has a value before the `defvaralias' gets executed, which avoids the need to merge values.
1 parent 115f77d commit 1f90053

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

markdown-mode.el

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,6 +2122,14 @@ Depending on your font, some reasonable choices are:
21222122
,@(when markdown-hide-markup
21232123
`(display ,markdown-footnote-display))))
21242124

2125+
(define-obsolete-variable-alias
2126+
'gfm-font-lock-keywords
2127+
'markdown-mode-font-lock-keywords "v2.4")
2128+
2129+
(define-obsolete-variable-alias
2130+
'markdown-mode-font-lock-keywords-basic
2131+
'markdown-mode-font-lock-keywords "v2.4")
2132+
21252133
(defvar markdown-mode-font-lock-keywords
21262134
`((markdown-match-yaml-metadata-begin . ((1 'markdown-markup-face)))
21272135
(markdown-match-yaml-metadata-end . ((1 'markdown-markup-face)))
@@ -2227,10 +2235,6 @@ Depending on your font, some reasonable choices are:
22272235
(markdown-match-wiki-link . ((0 'markdown-link-face prepend))))
22282236
"Syntax highlighting for Markdown files.")
22292237

2230-
(define-obsolete-variable-alias
2231-
'markdown-mode-font-lock-keywords-basic
2232-
'markdown-mode-font-lock-keywords "v2.4")
2233-
22342238
;; Footnotes
22352239
(defvar markdown-footnote-counter 0
22362240
"Counter for footnote numbers.")
@@ -9627,10 +9631,6 @@ rows and columns and the column alignment."
96279631
(setq-local markdown-table-at-point-p-function 'gfm--table-at-point-p)
96289632
(markdown-gfm-parse-buffer-for-languages))
96299633

9630-
(define-obsolete-variable-alias
9631-
'gfm-font-lock-keywords
9632-
'markdown-mode-font-lock-keywords "v2.4")
9633-
96349634

96359635
;;; Viewing modes =============================================================
96369636

0 commit comments

Comments
 (0)