Fixed toggle-word-case
This commit is contained in:
parent
89bbb4623d
commit
f22af77090
@ -140,7 +140,7 @@
|
|||||||
(setq $p1 (point))
|
(setq $p1 (point))
|
||||||
(skip-chars-forward "[:alpha:]")
|
(skip-chars-forward "[:alpha:]")
|
||||||
(setq $p2 (point))))
|
(setq $p2 (point))))
|
||||||
(let ((first-char-prop (get-char-code-property (char-after (point)) 'general-category)))
|
(let ((first-char-prop (get-char-code-property (char-after $p1) 'general-category)))
|
||||||
(cond ((string= "Ll" first-char-prop) ; Lower case
|
(cond ((string= "Ll" first-char-prop) ; Lower case
|
||||||
(upcase-region $p1 (+ $p1 1)))
|
(upcase-region $p1 (+ $p1 1)))
|
||||||
((string= "Lu" first-char-prop) ; Upper case
|
((string= "Lu" first-char-prop) ; Upper case
|
||||||
|
Loading…
x
Reference in New Issue
Block a user