aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2008-06-16 08:55:56 +0000
committerJuanma Barranquero2008-06-16 08:55:56 +0000
commitdef61be2348d06f8e43b615aeb4f061dd2b932ef (patch)
tree00caab9ab627d38cdc529d771f4587346ff4f898
parent5e634ec9b742cc1dedcc552b36a9f3804b5c88b9 (diff)
downloademacs-def61be2348d06f8e43b615aeb4f061dd2b932ef.tar.gz
emacs-def61be2348d06f8e43b615aeb4f061dd2b932ef.zip
(log-view-per-file-logs): Pacify byte compiler.
-rw-r--r--lisp/ChangeLog19
-rw-r--r--lisp/vc-bzr.el21
-rw-r--r--lisp/vc-svn.el6
3 files changed, 26 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 16318fa55be..6fcc5e42621 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-06-16 Juanma Barranquero <lekktu@gmail.com>
2
3 * vc-bzr.el (log-view-per-file-logs):
4 * vc-svn.el (log-view-per-file-logs): Pacify byte compiler.
5
12008-06-15 Chong Yidong <cyd@stupidchicken.com> 62008-06-15 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * mouse.el (mouse-appearance-menu-map): New var. 8 * mouse.el (mouse-appearance-menu-map): New var.
@@ -44,17 +49,16 @@
44 49
452008-06-15 Michael Albinus <michael.albinus@gmx.de> 502008-06-15 Michael Albinus <michael.albinus@gmx.de>
46 51
47 * net/tramp.el (tramp-handle-start-file-process): Clear 52 * net/tramp.el (tramp-handle-start-file-process):
48 modification time of the connection buffer. 53 Clear modification time of the connection buffer.
49 (tramp-sh-file-name-handler): Reset `tramp-locked' in case of 54 (tramp-sh-file-name-handler): Reset `tramp-locked' in case of error.
50 error.
51 (tramp-open-connection-setup-interactive-shell): Flush cache, and 55 (tramp-open-connection-setup-interactive-shell): Flush cache, and
52 restart `tramp-maybe-open-connection' when the remote system has 56 restart `tramp-maybe-open-connection' when the remote system has
53 been changed. Throw 'uname-changed event. 57 been changed. Throw 'uname-changed event.
54 (tramp-maybe-open-connection): Catch it. 58 (tramp-maybe-open-connection): Catch it.
55 59
56 * net/tramp-cmds.el (tramp-cleanup-all-connections): Reset 60 * net/tramp-cmds.el (tramp-cleanup-all-connections):
57 `tramp-locked'. 61 Reset `tramp-locked'.
58 62
592008-06-15 Ulf Jasper <ulf@web.de> 632008-06-15 Ulf Jasper <ulf@web.de>
60 64
@@ -66,8 +70,7 @@
66 Remove window dedication. 70 Remove window dedication.
67 (newsticker--group-manage-orphan-feeds): Handle ill-valued 71 (newsticker--group-manage-orphan-feeds): Handle ill-valued
68 newsticker-groups. 72 newsticker-groups.
69 (newsticker--treeview-tree-expand): Don't manage orphan feeds 73 (newsticker--treeview-tree-expand): Don't manage orphan feeds here.
70 here.
71 74
722008-06-15 Andreas Schwab <schwab@suse.de> 752008-06-15 Andreas Schwab <schwab@suse.de>
73 76
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el
index 77593f0a2d3..bcf86a4b169 100644
--- a/lisp/vc-bzr.el
+++ b/lisp/vc-bzr.el
@@ -213,7 +213,7 @@ Invoke the bzr command adding `BZR_PROGRESS_BAR=none' and
213 (lexical-let* 213 (lexical-let*
214 ((filename* (expand-file-name filename)) 214 ((filename* (expand-file-name filename))
215 (rootdir (vc-bzr-root filename*))) 215 (rootdir (vc-bzr-root filename*)))
216 (when rootdir 216 (when rootdir
217 (file-relative-name filename* rootdir)))) 217 (file-relative-name filename* rootdir))))
218 218
219(defun vc-bzr-status (file) 219(defun vc-bzr-status (file)
@@ -325,18 +325,18 @@ If any error occurred in running `bzr status', then return nil."
325 ;; May break if they change their format. 325 ;; May break if they change their format.
326 (if (file-exists-p branch-format-file) 326 (if (file-exists-p branch-format-file)
327 (with-temp-buffer 327 (with-temp-buffer
328 (insert-file-contents branch-format-file) 328 (insert-file-contents branch-format-file)
329 (goto-char (point-min)) 329 (goto-char (point-min))
330 (cond 330 (cond
331 ((or 331 ((or
332 (looking-at "Bazaar-NG branch, format 0.0.4") 332 (looking-at "Bazaar-NG branch, format 0.0.4")
333 (looking-at "Bazaar-NG branch format 5")) 333 (looking-at "Bazaar-NG branch format 5"))
334 ;; count lines in .bzr/branch/revision-history 334 ;; count lines in .bzr/branch/revision-history
335 (insert-file-contents revhistory-file) 335 (insert-file-contents revhistory-file)
336 (number-to-string (count-lines (line-end-position) (point-max)))) 336 (number-to-string (count-lines (line-end-position) (point-max))))
337 ((looking-at "Bazaar Branch Format 6 (bzr 0.15)") 337 ((looking-at "Bazaar Branch Format 6 (bzr 0.15)")
338 ;; revno is the first number in .bzr/branch/last-revision 338 ;; revno is the first number in .bzr/branch/last-revision
339 (insert-file-contents lastrev-file) 339 (insert-file-contents lastrev-file)
340 (if (re-search-forward "[0-9]+" nil t) 340 (if (re-search-forward "[0-9]+" nil t)
341 (buffer-substring (match-beginning 0) (match-end 0)))))) 341 (buffer-substring (match-beginning 0) (match-end 0))))))
342 ;; fallback to calling "bzr revno" 342 ;; fallback to calling "bzr revno"
@@ -423,6 +423,7 @@ REV non-nil gets an error."
423(defvar log-view-file-re) 423(defvar log-view-file-re)
424(defvar log-view-font-lock-keywords) 424(defvar log-view-font-lock-keywords)
425(defvar log-view-current-tag-function) 425(defvar log-view-current-tag-function)
426(defvar log-view-per-file-logs)
426 427
427(define-derived-mode vc-bzr-log-view-mode log-view-mode "Bzr-Log-View" 428(define-derived-mode vc-bzr-log-view-mode log-view-mode "Bzr-Log-View"
428 (remove-hook 'log-view-mode-hook 'vc-bzr-log-view-mode) ;Deactivate the hack. 429 (remove-hook 'log-view-mode-hook 'vc-bzr-log-view-mode) ;Deactivate the hack.
@@ -469,7 +470,7 @@ REV non-nil gets an error."
469 (let (case-fold-search) 470 (let (case-fold-search)
470 (if (re-search-forward 471 (if (re-search-forward
471 ;; "revno:" can appear either at the beginning of a line, or indented. 472 ;; "revno:" can appear either at the beginning of a line, or indented.
472 (concat "^[ ]*-+\n[ ]*revno: " 473 (concat "^[ ]*-+\n[ ]*revno: "
473 ;; The revision can contain ".", quote it so that it 474 ;; The revision can contain ".", quote it so that it
474 ;; does not interfere with regexp matching. 475 ;; does not interfere with regexp matching.
475 (regexp-quote revision) "$") nil t) 476 (regexp-quote revision) "$") nil t)
@@ -480,14 +481,14 @@ REV non-nil gets an error."
480 "VC bzr backend for diff." 481 "VC bzr backend for diff."
481 ;; `bzr diff' exits with code 1 if diff is non-empty. 482 ;; `bzr diff' exits with code 1 if diff is non-empty.
482 (apply #'vc-bzr-command "diff" (or buffer "*vc-diff*") 'async files 483 (apply #'vc-bzr-command "diff" (or buffer "*vc-diff*") 'async files
483 "--diff-options" (mapconcat 'identity 484 "--diff-options" (mapconcat 'identity
484 (vc-diff-switches-list bzr) 485 (vc-diff-switches-list bzr)
485 " ") 486 " ")
486 ;; This `when' is just an optimization because bzr-1.2 is *much* 487 ;; This `when' is just an optimization because bzr-1.2 is *much*
487 ;; faster when the revision argument is not given. 488 ;; faster when the revision argument is not given.
488 (when (or rev1 rev2) 489 (when (or rev1 rev2)
489 (list "-r" (format "%s..%s" 490 (list "-r" (format "%s..%s"
490 (or rev1 "revno:-1") 491 (or rev1 "revno:-1")
491 (or rev2 "")))))) 492 (or rev2 ""))))))
492 493
493 494
@@ -568,12 +569,12 @@ stream. Standard error output is discarded."
568(defun vc-bzr-prettify-state-info (file) 569(defun vc-bzr-prettify-state-info (file)
569 "Bzr-specific version of `vc-prettify-state-info'." 570 "Bzr-specific version of `vc-prettify-state-info'."
570 (if (eq 'edited (vc-state file)) 571 (if (eq 'edited (vc-state file))
571 (concat "(" (symbol-name (or (vc-file-getprop file 'vc-bzr-state) 572 (concat "(" (symbol-name (or (vc-file-getprop file 'vc-bzr-state)
572 'edited)) ")") 573 'edited)) ")")
573 ;; else fall back to default vc.el representation 574 ;; else fall back to default vc.el representation
574 (vc-default-prettify-state-info 'Bzr file))) 575 (vc-default-prettify-state-info 'Bzr file)))
575 576
576;; XXX: this needs testing, it's probably incomplete. 577;; XXX: this needs testing, it's probably incomplete.
577(defun vc-bzr-after-dir-status (update-function) 578(defun vc-bzr-after-dir-status (update-function)
578 (let ((status-str nil) 579 (let ((status-str nil)
579 (translation '(("+N" . added) 580 (translation '(("+N" . added)
@@ -608,7 +609,7 @@ stream. Standard error output is discarded."
608 (setf (nth 1 entry) 'conflict))) 609 (setf (nth 1 entry) 'conflict)))
609 (push (list (buffer-substring-no-properties 610 (push (list (buffer-substring-no-properties
610 (+ (point) 4) 611 (+ (point) 4)
611 (line-end-position)) 612 (line-end-position))
612 translated) result)) 613 translated) result))
613 (forward-line)) 614 (forward-line))
614 (funcall update-function result))) 615 (funcall update-function result)))
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index 9f116a3c964..a311c5e1cae 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -177,7 +177,7 @@ RESULT is a list of conses (FILE . STATE) for directory DIR."
177 "Generate extra status headers for a Subversion working copy." 177 "Generate extra status headers for a Subversion working copy."
178 (vc-svn-command "*vc*" 0 nil "info") 178 (vc-svn-command "*vc*" 0 nil "info")
179 (let ((repo 179 (let ((repo
180 (save-excursion 180 (save-excursion
181 (and (progn 181 (and (progn
182 (set-buffer "*vc*") 182 (set-buffer "*vc*")
183 (goto-char (point-min)) 183 (goto-char (point-min))
@@ -407,7 +407,7 @@ or svn+ssh://."
407 (progn 407 (progn
408 (unless (vc-do-command 408 (unless (vc-do-command
409 "*vc*" 0 "svnadmin" nil 409 "*vc*" 0 "svnadmin" nil
410 "setlog" "--bypass-hooks" directory 410 "setlog" "--bypass-hooks" directory
411 "-r" rev (format "%s" tempfile)) 411 "-r" rev (format "%s" tempfile))
412 (error "Log edit failed")) 412 (error "Log edit failed"))
413 (delete-file tempfile)) 413 (delete-file tempfile))
@@ -425,6 +425,8 @@ or svn+ssh://."
425;;; History functions 425;;; History functions
426;;; 426;;;
427 427
428(defvar log-view-per-file-logs)
429
428(define-derived-mode vc-svn-log-view-mode log-view-mode "SVN-Log-View" 430(define-derived-mode vc-svn-log-view-mode log-view-mode "SVN-Log-View"
429 (require 'add-log) 431 (require 'add-log)
430 (set (make-local-variable 'log-view-per-file-logs) nil)) 432 (set (make-local-variable 'log-view-per-file-logs) nil))