Fix warning about `in-string-p'
This commit is contained in:
parent
61976703e7
commit
eb0dd10126
1 changed files with 2 additions and 2 deletions
|
@ -939,11 +939,11 @@
|
|||
(defun oni:delete-string-contents ()
|
||||
(interactive)
|
||||
|
||||
(unless (in-string-p)
|
||||
(unless (nth 3 (syntax-ppss))
|
||||
(error "You must be in a string for this command to work"))
|
||||
|
||||
(save-excursion
|
||||
(while (in-string-p) (forward-char -1))
|
||||
(while (nth 3 (syntax-ppss)) (forward-char -1))
|
||||
|
||||
(let ((bos (point)))
|
||||
(forward-sexp)
|
||||
|
|
Loading…
Reference in a new issue