emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/raku-mode cf9d523c88 059/253: Use sharp quote (#') to quot


From: ELPA Syncer
Subject: [nongnu] elpa/raku-mode cf9d523c88 059/253: Use sharp quote (#') to quote function names
Date: Sat, 29 Jan 2022 08:28:42 -0500 (EST)

branch: elpa/raku-mode
commit cf9d523c88897ca19f05de4aa3bc94721e428240
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>

    Use sharp quote (#') to quote function names
    
    From The Emacs Lisp Style Guide:
    
        Use a sharp quote (#') when quoting function names. It's a good hint for
        the byte-compiler, which will warn you if the function is undefined.
        Some macros can also behave differently otherwise (like cl-labels)
    
    https://github.com/bbatsov/emacs-lisp-style-guide
---
 perl6-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/perl6-mode.el b/perl6-mode.el
index 43ba2f4266..67c5853a8d 100644
--- a/perl6-mode.el
+++ b/perl6-mode.el
@@ -46,9 +46,9 @@
 (define-derived-mode perl6-mode prog-mode "Perl6"
   "Major mode for editing Perl 6 code."
   ;; Syntaxification and font locking
-  (setq-local syntax-propertize-function 'perl6-syntax-propertize)
-  (add-hook 'syntax-propertize-extend-region-functions 
'syntax-propertize-multiline nil 'local)
-  (setq-local font-lock-syntactic-face-function 
'perl6-font-lock-syntactic-face)
+  (setq-local syntax-propertize-function #'perl6-syntax-propertize)
+  (add-hook 'syntax-propertize-extend-region-functions 
#'syntax-propertize-multiline nil 'local)
+  (setq-local font-lock-syntactic-face-function 
#'perl6-font-lock-syntactic-face)
   (setq-local font-lock-defaults '(perl6-font-lock-keywords nil nil))
   ;; Comments
   (setq-local comment-start "#")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]