Skip to content

Commit e8b0682

Browse files
committed
Set read-symbol-shorthands in individual libraries
When the source file is loaded, then the value set in ".dir-locals.el" for `read-symbol-shorthands' is not honored. For byte-compiled files, settings in that file are honored. Closes #757.
1 parent 33b074f commit e8b0682

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.dir-locals.el

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
((emacs-lisp-mode
2-
(indent-tabs-mode . nil)
3-
(read-symbol-shorthands
4-
("partial" . "llama--left-apply-partially")
5-
("rpartial" . "llama--right-apply-partially")))
2+
(indent-tabs-mode . nil))
63
(git-commit-mode
74
(git-commit-major-mode . git-commit-elisp-text-mode))
85
(makefile-gmake-mode

lisp/forge-github.el

+5
Original file line numberDiff line numberDiff line change
@@ -911,5 +911,10 @@
911911
:callback callback :errorback errorback))
912912

913913
;;; _
914+
;; Local Variables:
915+
;; read-symbol-shorthands: (
916+
;; ("partial" . "llama--left-apply-partially")
917+
;; ("rpartial" . "llama--right-apply-partially"))
918+
;; End:
914919
(provide 'forge-github)
915920
;;; forge-github.el ends here

lisp/forge-gitlab.el

+5
Original file line numberDiff line numberDiff line change
@@ -682,5 +682,10 @@
682682
:errorback (or errorback (and callback t))))
683683

684684
;;; _
685+
;; Local Variables:
686+
;; read-symbol-shorthands: (
687+
;; ("partial" . "llama--left-apply-partially")
688+
;; ("rpartial" . "llama--right-apply-partially"))
689+
;; End:
685690
(provide 'forge-gitlab)
686691
;;; forge-gitlab.el ends here

lisp/forge-topic.el

+5
Original file line numberDiff line numberDiff line change
@@ -1773,5 +1773,10 @@ modify `bug-reference-bug-regexp' if appropriate."
17731773
(add-hook hook #'forge-bug-reference-setup)))
17741774

17751775
;;; _
1776+
;; Local Variables:
1777+
;; read-symbol-shorthands: (
1778+
;; ("partial" . "llama--left-apply-partially")
1779+
;; ("rpartial" . "llama--right-apply-partially"))
1780+
;; End:
17761781
(provide 'forge-topic)
17771782
;;; forge-topic.el ends here

0 commit comments

Comments
 (0)