aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc
diff options
context:
space:
mode:
authorDaniel Hackney2013-09-04 23:30:07 -0400
committerStefan Monnier2013-09-04 23:30:07 -0400
commit6c42fc3efbbf590fca00b866859fbfa13d34b70a (patch)
tree0519b227a10215d99c1bc1373130c993ff93c623 /lisp/vc
parent4c528aabaa750d9a4e739dde482b307b734dcd62 (diff)
downloademacs-6c42fc3efbbf590fca00b866859fbfa13d34b70a.tar.gz
emacs-6c42fc3efbbf590fca00b866859fbfa13d34b70a.zip
* lisp/dired-x.el:
* lisp/net/ange-ftp.el: * lisp/net/browse-url.el: * lisp/net/dbus.el: * lisp/net/eudc.el: * lisp/net/eudcb-ldap.el: * lisp/net/eww.el: * lisp/net/imap.el: * lisp/printing.el: * lisp/vc/ediff-diff.el: * lisp/vc/ediff-init.el: * lisp/vc/ediff-merg.el: * lisp/vc/ediff-mult.el: * lisp/vc/ediff-util.el: * lisp/vc/ediff-wind.el: * lisp/vc/ediff.el: * lisp/vc/emerge.el: * lisp/vc/pcvs.el: * vc/vc-annotate.el: Prefix unused arguments with `_' to silence byte compiler. Remove some unused let-bound variables.
Diffstat (limited to 'lisp/vc')
-rw-r--r--lisp/vc/ediff-diff.el4
-rw-r--r--lisp/vc/ediff-init.el4
-rw-r--r--lisp/vc/ediff-merg.el4
-rw-r--r--lisp/vc/ediff-mult.el4
-rw-r--r--lisp/vc/ediff-util.el6
-rw-r--r--lisp/vc/ediff-wind.el10
-rw-r--r--lisp/vc/ediff.el2
-rw-r--r--lisp/vc/emerge.el6
-rw-r--r--lisp/vc/pcvs.el6
9 files changed, 23 insertions, 23 deletions
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el
index 3e64250d1a7..3f0ef3a7a61 100644
--- a/lisp/vc/ediff-diff.el
+++ b/lisp/vc/ediff-diff.el
@@ -211,7 +211,7 @@ one optional arguments, diff-number to refine.")
211;; ediff-setup-diff-regions is called via a funcall to 211;; ediff-setup-diff-regions is called via a funcall to
212;; ediff-setup-diff-regions-function, which can also have the value 212;; ediff-setup-diff-regions-function, which can also have the value
213;; ediff-setup-diff-regions3, which takes 4 arguments. 213;; ediff-setup-diff-regions3, which takes 4 arguments.
214(defun ediff-setup-diff-regions (file-A file-B file-C) 214(defun ediff-setup-diff-regions (file-A file-B _file-C)
215 ;; looking for '-c', '-i', '-u', or 'c', 'i', 'u' among clustered non-long options 215 ;; looking for '-c', '-i', '-u', or 'c', 'i', 'u' among clustered non-long options
216 (if (string-match "^-[ciu]\\| -[ciu]\\|\\(^\\| \\)-[^- ]+[ciu]" 216 (if (string-match "^-[ciu]\\| -[ciu]\\|\\(^\\| \\)-[^- ]+[ciu]"
217 ediff-diff-options) 217 ediff-diff-options)
@@ -1223,7 +1223,7 @@ delimiter regions"))
1223;; like shell-command-sentinel but doesn't print an exit status message 1223;; like shell-command-sentinel but doesn't print an exit status message
1224;; we do this because diff always exits with status 1, if diffs are found 1224;; we do this because diff always exits with status 1, if diffs are found
1225;; so shell-command-sentinel displays a confusing message to the user 1225;; so shell-command-sentinel displays a confusing message to the user
1226(defun ediff-process-sentinel (process signal) 1226(defun ediff-process-sentinel (process _signal)
1227 (if (and (memq (process-status process) '(exit signal)) 1227 (if (and (memq (process-status process) '(exit signal))
1228 (buffer-name (process-buffer process))) 1228 (buffer-name (process-buffer process)))
1229 (progn 1229 (progn
diff --git a/lisp/vc/ediff-init.el b/lisp/vc/ediff-init.el
index 075775923a5..c9f3583a437 100644
--- a/lisp/vc/ediff-init.el
+++ b/lisp/vc/ediff-init.el
@@ -810,7 +810,7 @@ TYPE-OF-EMACS is either 'xemacs or 'emacs."
810 (ediff-overlay-put extent 'face face) 810 (ediff-overlay-put extent 'face face)
811 (ediff-overlay-put extent 'help-echo 'ediff-region-help-echo)) 811 (ediff-overlay-put extent 'help-echo 'ediff-region-help-echo))
812 812
813(defun ediff-region-help-echo (extent-or-window &optional overlay point) 813(defun ediff-region-help-echo (extent-or-window &optional overlay _point)
814 (unless overlay 814 (unless overlay
815 (setq overlay extent-or-window)) 815 (setq overlay extent-or-window))
816 (let ((is-current (ediff-overlay-get overlay 'ediff)) 816 (let ((is-current (ediff-overlay-get overlay 'ediff))
@@ -1768,7 +1768,7 @@ Unless optional argument INPLACE is non-nil, return a new string."
1768 (or n (setq n ediff-current-difference)) 1768 (or n (setq n ediff-current-difference))
1769 (and (>= n 0) (< n ediff-number-of-differences))) 1769 (and (>= n 0) (< n ediff-number-of-differences)))
1770 1770
1771(defsubst ediff-show-all-diffs (n) 1771(defsubst ediff-show-all-diffs (_n)
1772 "Don't skip difference regions." 1772 "Don't skip difference regions."
1773 nil) 1773 nil)
1774 1774
diff --git a/lisp/vc/ediff-merg.el b/lisp/vc/ediff-merg.el
index a1f4d4f5d78..a319d8de9b6 100644
--- a/lisp/vc/ediff-merg.el
+++ b/lisp/vc/ediff-merg.el
@@ -92,6 +92,8 @@ Buffer B."
92 ) 92 )
93(make-variable-buffer-local 'ediff-skip-merge-regions-that-differ-from-default) 93(make-variable-buffer-local 'ediff-skip-merge-regions-that-differ-from-default)
94 94
95(defvar state-of-merge) ; dynamic var
96
95;; check if there is no clash between the ancestor and one of the variants. 97;; check if there is no clash between the ancestor and one of the variants.
96;; if it is not a merge job then return true 98;; if it is not a merge job then return true
97(defun ediff-merge-region-is-non-clash (n) 99(defun ediff-merge-region-is-non-clash (n)
@@ -351,8 +353,6 @@ Combining is done according to the specifications in variable
351 (reverse delim-regs-list) 353 (reverse delim-regs-list)
352 ))) 354 )))
353 355
354(defvar state-of-merge) ; dynamic var
355
356;; Check if the non-preferred merge has been modified since originally set. 356;; Check if the non-preferred merge has been modified since originally set.
357;; This affects only the regions that are marked as default-A/B or combined. 357;; This affects only the regions that are marked as default-A/B or combined.
358;; If PREFERS-TOO is non-nil, then look at the regions marked as prefers-A/B as 358;; If PREFERS-TOO is non-nil, then look at the regions marked as prefers-A/B as
diff --git a/lisp/vc/ediff-mult.el b/lisp/vc/ediff-mult.el
index 58e10819a30..55e9465d48a 100644
--- a/lisp/vc/ediff-mult.el
+++ b/lisp/vc/ediff-mult.el
@@ -1115,7 +1115,7 @@ behavior."
1115 (setq overl 1115 (setq overl
1116 (if (featurep 'xemacs) 1116 (if (featurep 'xemacs)
1117 (map-extents 1117 (map-extents
1118 (lambda (ext maparg) 1118 (lambda (ext _maparg)
1119 (if (and 1119 (if (and
1120 (ediff-overlay-get ext 'ediff-meta-info) 1120 (ediff-overlay-get ext 'ediff-meta-info)
1121 (eq (ediff-overlay-get ext 'ediff-meta-session-number) 1121 (eq (ediff-overlay-get ext 'ediff-meta-session-number)
@@ -1444,7 +1444,7 @@ Useful commands:
1444 1444
1445 1445
1446;; argument is ignored 1446;; argument is ignored
1447(defun ediff-redraw-registry-buffer (&optional ignore) 1447(defun ediff-redraw-registry-buffer (&optional _ignore)
1448 (ediff-with-current-buffer ediff-registry-buffer 1448 (ediff-with-current-buffer ediff-registry-buffer
1449 (let ((point (point)) 1449 (let ((point (point))
1450 elt bufAname bufBname bufCname cur-diff total-diffs pt 1450 elt bufAname bufBname bufCname cur-diff total-diffs pt
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el
index 2f2c71a71e6..fe791f6bcee 100644
--- a/lisp/vc/ediff-util.el
+++ b/lisp/vc/ediff-util.el
@@ -40,7 +40,7 @@
40(defvar ediff-after-quit-hook-internal nil) 40(defvar ediff-after-quit-hook-internal nil)
41 41
42(eval-and-compile 42(eval-and-compile
43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest _r))))
44 44
45;; end pacifier 45;; end pacifier
46 46
@@ -1602,7 +1602,7 @@ the width of the A/B/C windows."
1602;;BEG, END show the region to be positioned. 1602;;BEG, END show the region to be positioned.
1603;;JOB-NAME holds ediff-job-name. The ediff-windows job positions regions 1603;;JOB-NAME holds ediff-job-name. The ediff-windows job positions regions
1604;;differently. 1604;;differently.
1605(defun ediff-position-region (beg end pos job-name) 1605(defun ediff-position-region (beg end pos _job-name)
1606 (if (> end (point-max)) 1606 (if (> end (point-max))
1607 (setq end (point-max))) 1607 (setq end (point-max)))
1608 (if ediff-windows-job 1608 (if ediff-windows-job
@@ -1685,7 +1685,7 @@ the width of the A/B/C windows."
1685 'ediff-get-lines-to-region-start) 1685 'ediff-get-lines-to-region-start)
1686 ((eq op 'scroll-up) 1686 ((eq op 'scroll-up)
1687 'ediff-get-lines-to-region-end) 1687 'ediff-get-lines-to-region-end)
1688 (t (lambda (a b c) 0)))) 1688 (t (lambda (_a _b _c) 0))))
1689 (max-lines (max (funcall func 'A n ctl-buf) 1689 (max-lines (max (funcall func 'A n ctl-buf)
1690 (funcall func 'B n ctl-buf) 1690 (funcall func 'B n ctl-buf)
1691 (if (ediff-buffer-live-p ediff-buffer-C) 1691 (if (ediff-buffer-live-p ediff-buffer-C)
diff --git a/lisp/vc/ediff-wind.el b/lisp/vc/ediff-wind.el
index 5a14c193344..785535b82df 100644
--- a/lisp/vc/ediff-wind.el
+++ b/lisp/vc/ediff-wind.el
@@ -40,7 +40,7 @@
40 40
41;; declare-function does not exist in XEmacs 41;; declare-function does not exist in XEmacs
42(eval-and-compile 42(eval-and-compile
43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest _r))))
44 44
45(require 'ediff-init) 45(require 'ediff-init)
46(require 'ediff-help) 46(require 'ediff-help)
@@ -280,7 +280,7 @@ into icons, regardless of the window manager."
280 280
281;;; Functions 281;;; Functions
282 282
283(defun ediff-get-window-by-clicking (wind prev-wind wind-number) 283(defun ediff-get-window-by-clicking (_wind _prev-wind wind-number)
284 (let (event) 284 (let (event)
285 (message 285 (message
286 "Select windows by clicking. Please click on Window %d " wind-number) 286 "Select windows by clicking. Please click on Window %d " wind-number)
@@ -289,9 +289,9 @@ into icons, regardless of the window manager."
289 (beep 1)) 289 (beep 1))
290 (message "Please click on Window %d " wind-number)) 290 (message "Please click on Window %d " wind-number))
291 (ediff-read-event) ; discard event 291 (ediff-read-event) ; discard event
292 (setq wind (if (featurep 'xemacs) 292 (if (featurep 'xemacs)
293 (event-window event) 293 (event-window event)
294 (posn-window (event-start event)))))) 294 (posn-window (event-start event)))))
295 295
296 296
297;; Select the lowest window on the frame. 297;; Select the lowest window on the frame.
diff --git a/lisp/vc/ediff.el b/lisp/vc/ediff.el
index d35c3e53e9a..9ab592587c9 100644
--- a/lisp/vc/ediff.el
+++ b/lisp/vc/ediff.el
@@ -114,7 +114,7 @@
114 114
115;; Compiler pacifier 115;; Compiler pacifier
116(eval-and-compile 116(eval-and-compile
117 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 117 (unless (fboundp 'declare-function) (defmacro declare-function (&rest _r))))
118 118
119(require 'ediff-util) 119(require 'ediff-util)
120;; end pacifier 120;; end pacifier
diff --git a/lisp/vc/emerge.el b/lisp/vc/emerge.el
index 8d0e8efc75c..af13665fc2a 100644
--- a/lisp/vc/emerge.el
+++ b/lisp/vc/emerge.el
@@ -849,7 +849,7 @@ This is *not* a user option, since Emerge uses it for its own processing.")
849;;; Functions to start Emerge on files 849;;; Functions to start Emerge on files
850 850
851;;;###autoload 851;;;###autoload
852(defun emerge-files (arg file-A file-B file-out &optional startup-hooks 852(defun emerge-files (_arg file-A file-B file-out &optional startup-hooks
853 quit-hooks) 853 quit-hooks)
854 "Run Emerge on two files." 854 "Run Emerge on two files."
855 (interactive 855 (interactive
@@ -869,7 +869,7 @@ This is *not* a user option, since Emerge uses it for its own processing.")
869 file-out)) 869 file-out))
870 870
871;;;###autoload 871;;;###autoload
872(defun emerge-files-with-ancestor (arg file-A file-B file-ancestor file-out 872(defun emerge-files-with-ancestor (_arg file-A file-B file-ancestor file-out
873 &optional startup-hooks quit-hooks) 873 &optional startup-hooks quit-hooks)
874 "Run Emerge on two files, giving another file as the ancestor." 874 "Run Emerge on two files, giving another file as the ancestor."
875 (interactive 875 (interactive
@@ -1063,7 +1063,7 @@ This is *not* a user option, since Emerge uses it for its own processing.")
1063 quit-hooks))) 1063 quit-hooks)))
1064 1064
1065(defun emerge-revisions-internal (file revision-A revision-B &optional 1065(defun emerge-revisions-internal (file revision-A revision-B &optional
1066 startup-hooks quit-hooks output-file) 1066 startup-hooks quit-hooks _output-file)
1067 (let ((buffer-A (get-buffer-create (format "%s,%s" file revision-A))) 1067 (let ((buffer-A (get-buffer-create (format "%s,%s" file revision-A)))
1068 (buffer-B (get-buffer-create (format "%s,%s" file revision-B))) 1068 (buffer-B (get-buffer-create (format "%s,%s" file revision-B)))
1069 (emerge-file-A (emerge-make-temp-file "A")) 1069 (emerge-file-A (emerge-make-temp-file "A"))
diff --git a/lisp/vc/pcvs.el b/lisp/vc/pcvs.el
index fb91185662a..914eef4dd39 100644
--- a/lisp/vc/pcvs.el
+++ b/lisp/vc/pcvs.el
@@ -648,7 +648,7 @@ If non-nil, NEW means to create a new buffer no matter what."
648 done)))) 648 done))))
649 649
650 650
651(defun cvs-sentinel (proc msg) 651(defun cvs-sentinel (proc _msg)
652 "Sentinel for the cvs update process. 652 "Sentinel for the cvs update process.
653This is responsible for parsing the output from the cvs update when 653This is responsible for parsing the output from the cvs update when
654it is finished." 654it is finished."
@@ -981,7 +981,7 @@ The files are stored to DIR."
981;;;; 981;;;;
982 982
983(defun-cvs-mode (cvs-mode-revert-buffer . SIMPLE) 983(defun-cvs-mode (cvs-mode-revert-buffer . SIMPLE)
984 (&optional ignore-auto noconfirm) 984 (&optional _ignore-auto _noconfirm)
985 "Rerun `cvs-examine' on the current directory with the default flags." 985 "Rerun `cvs-examine' on the current directory with the default flags."
986 (interactive) 986 (interactive)
987 (cvs-examine default-directory t)) 987 (cvs-examine default-directory t))
@@ -995,7 +995,7 @@ If in a *cvs* buffer, don't prompt unless a prefix argument is given."
995 (read-directory-name prompt nil default-directory nil))) 995 (read-directory-name prompt nil default-directory nil)))
996 996
997;;;###autoload 997;;;###autoload
998(defun cvs-quickdir (dir &optional flags noshow) 998(defun cvs-quickdir (dir &optional _flags noshow)
999 "Open a *cvs* buffer on DIR without running cvs. 999 "Open a *cvs* buffer on DIR without running cvs.
1000With a prefix argument, prompt for a directory to use. 1000With a prefix argument, prompt for a directory to use.
1001A prefix arg >8 (ex: \\[universal-argument] \\[universal-argument]), 1001A prefix arg >8 (ex: \\[universal-argument] \\[universal-argument]),