mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
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'.
This commit is contained in:
parent
9bf94639b8
commit
2f90bbb5fe
@ -542,6 +542,9 @@ The following %-sequences are provided:
|
||||
(t "N/A"))))))
|
||||
|
||||
|
||||
(declare-function dbus-get-property "dbus.el"
|
||||
(bus service path interface property))
|
||||
|
||||
;;; `upowerd' interface.
|
||||
(defsubst battery-upower-prop (pname &optional device)
|
||||
(dbus-get-property
|
||||
|
@ -987,6 +987,8 @@ corresponding command.
|
||||
Within CMD, %i denotes the input file(s), and %o denotes the
|
||||
output file. %i path(s) are relative, while %o is absolute.")
|
||||
|
||||
(declare-function format-spec "format-spec.el" (format specification))
|
||||
|
||||
;;;###autoload
|
||||
(defun dired-do-compress-to ()
|
||||
"Compress selected files and directories to an archive.
|
||||
|
@ -256,7 +256,7 @@ supported keys depend on the service type.")
|
||||
"Returns all discovered Avahi service names as list."
|
||||
(let (result)
|
||||
(maphash
|
||||
(lambda (key value) (add-to-list 'result (zeroconf-service-name value)))
|
||||
(lambda (_key value) (add-to-list 'result (zeroconf-service-name value)))
|
||||
zeroconf-services-hash)
|
||||
result))
|
||||
|
||||
@ -264,7 +264,7 @@ supported keys depend on the service type.")
|
||||
"Returns all discovered Avahi service types as list."
|
||||
(let (result)
|
||||
(maphash
|
||||
(lambda (key value) (add-to-list 'result (zeroconf-service-type value)))
|
||||
(lambda (_key value) (add-to-list 'result (zeroconf-service-type value)))
|
||||
zeroconf-services-hash)
|
||||
result))
|
||||
|
||||
@ -276,7 +276,7 @@ The service type is one of the returned values of
|
||||
format of SERVICE."
|
||||
(let (result)
|
||||
(maphash
|
||||
(lambda (key value)
|
||||
(lambda (_key value)
|
||||
(when (equal type (zeroconf-service-type value))
|
||||
(add-to-list 'result value)))
|
||||
zeroconf-services-hash)
|
||||
|
@ -582,7 +582,7 @@ and then further adjusted to be at the end of the line."
|
||||
(setq p (line-end-position)))
|
||||
;; `q' is the point at the end of the block
|
||||
(hs-forward-sexp mdata 1)
|
||||
(setq q (if (looking-back hs-block-end-regexp)
|
||||
(setq q (if (looking-back hs-block-end-regexp nil)
|
||||
(match-beginning 0)
|
||||
(point)))
|
||||
(when (and (< p q) (> (count-lines p q) 1))
|
||||
|
@ -2790,7 +2790,7 @@ local variable."
|
||||
;; Iterate until we've moved the desired number of stmt ends
|
||||
(while (not (= (cl-signum arg) 0))
|
||||
;; if we're looking at the terminator, jump by 2
|
||||
(if (or (and (> 0 arg) (looking-back term))
|
||||
(if (or (and (> 0 arg) (looking-back term nil))
|
||||
(and (< 0 arg) (looking-at term)))
|
||||
(setq n 2)
|
||||
(setq n 1))
|
||||
|
Loading…
Reference in New Issue
Block a user