summaryrefslogtreecommitdiff
path: root/completion-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-12-26 14:47:32 +0800
committerJSDurand <mmemmew@gmail.com>2021-12-26 14:47:32 +0800
commit20f73b0beebc71466b7be0dea537ab05e8f7be5c (patch)
tree65145eaf9035ad19a40230a8bf200891ce0b1fd6 /completion-conf.el
parentdb862fd1f045f3424a9b30990159abf7d3253e53 (diff)
Use defalias rather than fset
* common.el (durand-display-in-one-window) (durand-completion-scroll-up-or-go-to-minibuffer) (intentionally-disabled-bind): * completion-conf.el (durand-completion-toggle-display): * eww-conf.el (global-map): defalias has the advantage that one can find the file of the definition from the help buffer while fset cannot.
Diffstat (limited to 'completion-conf.el')
-rw-r--r--completion-conf.el34
1 files changed, 17 insertions, 17 deletions
diff --git a/completion-conf.el b/completion-conf.el
index e4190d3..1ed310a 100644
--- a/completion-conf.el
+++ b/completion-conf.el
@@ -131,25 +131,25 @@ minibuffer as usual."
;; nil))
;;;###autoload
-(fset
- 'durand-completion-toggle-display
- (make-byte-code
- 0
- (unibyte-string 192 9 62 ; determine if it is a member
- 131 14 0
- ;; memq
- 194 193 192 196 35 130 20 0
- ;; not memq
- 195 193 192 197 196 36
- 135)
- (vector #'durand-completion-display-after-change
- 'after-change-functions
- 'remove-hook 'add-hook t nil)
- 6
- "Toggle to display the list of completions after each input.
+(defalias
+ 'durand-completion-toggle-display
+ (make-byte-code
+ 0
+ (unibyte-string 192 9 62 ; determine if it is a member
+ 131 14 0
+ ;; memq
+ 194 193 192 196 35 130 20 0
+ ;; not memq
+ 195 193 192 197 196 36
+ 135)
+ (vector #'durand-completion-display-after-change
+ 'after-change-functions
+ 'remove-hook 'add-hook t nil)
+ 6
+ "Toggle to display the list of completions after each input.
\(fn)"
- nil))
+ nil))
;; (defun durand-completion-toggle-display ()
;; "Toggle to display the list of completions after each input."