diff options
| author | Juanma Barranquero | 2017-01-29 19:34:35 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2017-01-29 19:34:35 +0100 |
| commit | 2f90bbb5febd44bc9ff8dbff9267f535f907c307 (patch) | |
| tree | dd2b69ffaa8046b54172537f6330e100bc6fb413 /lisp/progmodes | |
| parent | 9bf94639b8f674d2c7894df35f26f09d0ecc67f5 (diff) | |
| download | emacs-2f90bbb5febd44bc9ff8dbff9267f535f907c307.tar.gz emacs-2f90bbb5febd44bc9ff8dbff9267f535f907c307.zip | |
lisp/*.el: Fix some warnings
* lisp/battery.el (dbus-get-property):
* lisp/dired-aux.el (format-spec): Declare function.
* lisp/net/zeroconf.el (zeroconf-list-service-names)
(zeroconf-list-service-types, zeroconf-list-services):
Mark unused lexical arg.
* lisp/progmodes/hideshow.el (hs-hide-block-at-point):
* lisp/progmodes/sql.el (sql-end-of-statement):
Pass LIMIT to 'looking-back'.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/hideshow.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/sql.el | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 0e4e67018ed..5328526abd9 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el | |||
| @@ -582,7 +582,7 @@ and then further adjusted to be at the end of the line." | |||
| 582 | (setq p (line-end-position))) | 582 | (setq p (line-end-position))) |
| 583 | ;; `q' is the point at the end of the block | 583 | ;; `q' is the point at the end of the block |
| 584 | (hs-forward-sexp mdata 1) | 584 | (hs-forward-sexp mdata 1) |
| 585 | (setq q (if (looking-back hs-block-end-regexp) | 585 | (setq q (if (looking-back hs-block-end-regexp nil) |
| 586 | (match-beginning 0) | 586 | (match-beginning 0) |
| 587 | (point))) | 587 | (point))) |
| 588 | (when (and (< p q) (> (count-lines p q) 1)) | 588 | (when (and (< p q) (> (count-lines p q) 1)) |
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 71563486ecd..88683431290 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -2790,7 +2790,7 @@ local variable." | |||
| 2790 | ;; Iterate until we've moved the desired number of stmt ends | 2790 | ;; Iterate until we've moved the desired number of stmt ends |
| 2791 | (while (not (= (cl-signum arg) 0)) | 2791 | (while (not (= (cl-signum arg) 0)) |
| 2792 | ;; if we're looking at the terminator, jump by 2 | 2792 | ;; if we're looking at the terminator, jump by 2 |
| 2793 | (if (or (and (> 0 arg) (looking-back term)) | 2793 | (if (or (and (> 0 arg) (looking-back term nil)) |
| 2794 | (and (< 0 arg) (looking-at term))) | 2794 | (and (< 0 arg) (looking-at term))) |
| 2795 | (setq n 2) | 2795 | (setq n 2) |
| 2796 | (setq n 1)) | 2796 | (setq n 1)) |