Skip to content

Commit 33f4a4d

Browse files
committed
Sharp-quote function references
1 parent 9d4b0fc commit 33f4a4d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

cabal-mode.el

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,19 +168,19 @@ it from list if one of the following conditions are hold:
168168
(setq-local font-lock-defaults
169169
'(cabal-font-lock-keywords t t nil nil))
170170
(add-to-list 'cabal-buffers (current-buffer))
171-
(add-hook 'change-major-mode-hook 'cabal-unregister-buffer nil 'local)
172-
(add-hook 'kill-buffer-hook 'cabal-unregister-buffer nil 'local)
171+
(add-hook 'change-major-mode-hook #'cabal-unregister-buffer nil 'local)
172+
(add-hook 'kill-buffer-hook #'cabal-unregister-buffer nil 'local)
173173
(setq-local comment-start "--")
174174
(setq-local comment-start-skip "--[ \t]*")
175175
(setq-local comment-end "")
176176
(setq-local comment-end-skip "[ \t]*\\(\\s>\\|\n\\)")
177-
(setq-local indent-line-function 'cabal-indent-line)
177+
(setq-local indent-line-function #'cabal-indent-line)
178178
(setq indent-tabs-mode nil))
179179

180180
(make-obsolete 'cabal-get-setting
181181
'cabal--get-field
182182
"March 14, 2016")
183-
(defalias 'cabal-get-setting 'cabal--get-field
183+
(defalias 'cabal-get-setting #'cabal--get-field
184184
"Try to read value of field with NAME from current buffer.
185185
Obsolete function. Defined for backward compatibility. Use
186186
`cabal--get-field' instead.")
@@ -213,7 +213,7 @@ Obsolete function. Defined for backward compatibility. Use
213213
(make-obsolete 'cabal-guess-setting
214214
'cabal-get-field
215215
"March 14, 2016")
216-
(defalias 'cabal-guess-setting 'cabal-get-field
216+
(defalias 'cabal-guess-setting #'cabal-get-field
217217
"Read the value of field with NAME from project's cabal file.
218218
Obsolete function. Defined for backward compatibility. Use
219219
`cabal-get-field' instead.")
@@ -561,7 +561,7 @@ resulting buffer-content."
561561
(defmacro cabal-each-line (&rest forms)
562562
"Execute FORMS on each line."
563563
`(save-excursion
564-
(while (< (point) (point-max))
564+
(while (eobp)
565565
,@forms
566566
(forward-line))))
567567

@@ -920,8 +920,8 @@ resulting buffer-content. Unmark line at the end."
920920

921921
(defun cabal-source-section-p (section)
922922
"Wheter given SECTION is a source section, so not a common section."
923-
(not (not (member (downcase (cabal-section-name section))
924-
cabal-source-bearing-sections))))
923+
(member (downcase (cabal-section-name section))
924+
cabal-source-bearing-sections))
925925

926926
(defun cabal-line-filename ()
927927
"Expand filename in current line according to the subsection type.
@@ -941,7 +941,7 @@ Source names from main-is and c-sources sections are left untouched."
941941

942942
(defun cabal-join-paths (&rest args)
943943
"Crude hack to replace f-join."
944-
(mapconcat 'identity args "/"))
944+
(mapconcat #'identity args "/"))
945945

946946
(defun cabal-find-or-create-source-file ()
947947
"Open the source file this line refers to."

0 commit comments

Comments
 (0)