Skip to content

Commit ad1e66b

Browse files
authored
Merge pull request #1718 from SequentialDesign/change-hypher-to-hyper
change `hypher` to `hyper` across lem repo
2 parents 8937771 + d580f7f commit ad1e66b

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

src/internal-packages.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
:key-ctrl
9595
:key-meta
9696
:key-super
97-
:key-hypher
97+
:key-hyper
9898
:key-shift
9999
:key-sym
100100
:match-key

src/key.lisp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@
2323
(ctrl nil :type boolean)
2424
(meta nil :type boolean)
2525
(super nil :type boolean)
26-
(hypher nil :type boolean)
26+
(hyper nil :type boolean)
2727
(shift nil :type boolean)
2828
(sym 0 :type string))
2929

3030
(defmethod print-object ((object key) stream)
31-
(with-slots (ctrl meta super hypher shift sym) object
31+
(with-slots (ctrl meta super hyper shift sym) object
3232
(write-string (key-to-string :ctrl ctrl
3333
:meta meta
3434
:super super
35-
:hypher hypher
35+
:hyper hyper
3636
:shift shift
3737
:sym sym)
3838
stream)))
3939

40-
(defun key-to-string (&key ctrl meta super hypher shift sym)
40+
(defun key-to-string (&key ctrl meta super hyper shift sym)
4141
(with-output-to-string (stream)
42-
(when hypher (write-string "H-" stream))
42+
(when hyper (write-string "H-" stream))
4343
(when super (write-string "S-" stream))
4444
(when meta (write-string "M-" stream))
4545
(when ctrl (write-string "C-" stream))
@@ -54,35 +54,35 @@
5454

5555
(defvar *key-constructor-cache* (make-hash-table :test 'equal))
5656

57-
(defun convert-key (&rest args &key ctrl meta super hypher shift sym)
57+
(defun convert-key (&rest args &key ctrl meta super hyper shift sym)
5858
(let ((elt (assoc (apply #'key-to-string args) *key-conversions* :test #'equal)))
5959
(if elt
6060
(let ((key (first (parse-keyspec (cdr elt)))))
6161
(list :ctrl (key-ctrl key)
6262
:meta (key-meta key)
6363
:super (key-super key)
64-
:hypher (key-hypher key)
64+
:hyper (key-hyper key)
6565
:shift (key-shift key)
6666
:sym (key-sym key)))
6767
(list :ctrl ctrl
6868
:meta meta
6969
:super super
70-
:hypher hypher
70+
:hyper hyper
7171
:shift shift
7272
:sym sym))))
7373

74-
(defun make-key (&rest args &key ctrl meta super hypher shift sym)
75-
(declare (ignore ctrl meta super hypher shift sym))
74+
(defun make-key (&rest args &key ctrl meta super hyper shift sym)
75+
(declare (ignore ctrl meta super hyper shift sym))
7676
(let ((hashkey (apply #'convert-key args)))
7777
(or (gethash hashkey *key-constructor-cache*)
7878
(setf (gethash hashkey *key-constructor-cache*)
7979
(apply #'%make-key args)))))
8080

81-
(defun match-key (key &key ctrl meta super hypher shift sym)
81+
(defun match-key (key &key ctrl meta super hyper shift sym)
8282
(and (eq (key-ctrl key) ctrl)
8383
(eq (key-meta key) meta)
8484
(eq (key-super key) super)
85-
(eq (key-hypher key) hypher)
85+
(eq (key-hyper key) hyper)
8686
(eq (key-shift key) shift)
8787
(equal (key-sym key) sym)))
8888

src/keymap.lisp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ Example: (define-key *global-keymap* \"C-'\" 'list-modes)"
8080
(labels ((fail ()
8181
(editor-error "parse error: ~A" string))
8282
(parse (str)
83-
(loop :with ctrl :and meta :and super :and hypher :and shift
83+
(loop :with ctrl :and meta :and super :and hyper :and shift
8484
:do (cond
8585
((ppcre:scan "^[cmshCMSH]-" str)
8686
(ecase (char-downcase (char str 0))
8787
((#\c) (setf ctrl t))
8888
((#\m) (setf meta t))
8989
((#\s) (setf super t))
90-
((#\h) (setf hypher t)))
90+
((#\h) (setf hyper t)))
9191
(setf str (subseq str 2)))
9292
((ppcre:scan "^[sS]hift-" str)
9393
(setf shift t)
@@ -107,7 +107,7 @@ Example: (define-key *global-keymap* \"C-'\" 'list-modes)"
107107
(return (make-key :ctrl ctrl
108108
:meta meta
109109
:super super
110-
:hypher hypher
110+
:hyper hyper
111111
:shift shift
112112
:sym (or (named-key-sym-p str)
113113
str))))))))

tests/self-insert-command.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
(ok "aaaa" (execute-self-insert (make-key :ctrl t :sym "u") (make-key :sym "a")))
1818
(handler-case
1919
(progn
20-
(execute-key-sequence (list (make-key :super t :meta t :hypher t :sym "a")))
20+
(execute-key-sequence (list (make-key :super t :meta t :hyper t :sym "a")))
2121
(fail "unreachable"))
2222
(editor-error (e)
2323
(ok (search "Key not found: " (princ-to-string e)))))))

0 commit comments

Comments
 (0)