You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;;; Compatibility
(eval-and-compile
;; `setq-local' for Emacs 24.2 and below
(unless (fboundp 'setq-local)
(defmacro setq-local (var val)
"Set variable VAR to value VAL in current buffer."
`(set (make-local-variable ',var) ,val))))
No need to degrade the code, when the solution is so simple. Btw, you'd be crazy to supporting anything older than Emacs 24.1.
@bbatsov It's still bad practice to shim built-in functions/macros, generally speaking, for the reasons I described in the comments on melpa/melpa#1748. This isn't the most egregious example, though. :-)
Replace with
(set (make-local-variable ...) ...)
. This is compatible with older emacsen and will allow removal of the reimplementation ofsetq-local
.The text was updated successfully, but these errors were encountered: