aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2010-02-06 12:50:45 -0500
committerEli Zaretskii2010-02-06 12:50:45 -0500
commit9a0d7cf1aaffb76aaf4a94f5124795dd9d7c8aed (patch)
treecd0e293690d927c44d2eea4a7453f6aba3ce5344 /lisp
parente5f95dc5a35a7ff655527b08d73c05cd3f6f1dc7 (diff)
parent953d248c55173853e6cffb01a5348703faf4e990 (diff)
downloademacs-9a0d7cf1aaffb76aaf4a94f5124795dd9d7c8aed.tar.gz
emacs-9a0d7cf1aaffb76aaf4a94f5124795dd9d7c8aed.zip
Merge from mainline.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog19
-rw-r--r--lisp/doc-view.el2
-rw-r--r--lisp/image-mode.el2
-rw-r--r--lisp/progmodes/cc-mode.el8
-rw-r--r--lisp/vc-bzr.el8
-rw-r--r--lisp/vc-svn.el19
6 files changed, 52 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9013caf2026..cbada0d62c6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,22 @@
12010-02-06 Chong Yidong <cyd@stupidchicken.com>
2
3 * progmodes/cc-mode.el (c-common-init): Bind temporary variables
4 beg and end before calling c-get-state-before-change-functions.
5
62010-02-06 Dan Nicolaescu <dann@ics.uci.edu>
7
8 * vc-bzr.el (vc-bzr-dir-extra-headers): Disable the pending merges header.
9
102010-02-05 Juri Linkov <juri@jurta.org>
11
12 * doc-view.el (doc-view-mode):
13 * image-mode.el (image-mode): Put property mode-class=special.
14 (Bug#4896)
15
162010-02-05 Mark A. Hershberger <mah@everybody.org>
17
18 * vc-svn.el (vc-svn-revision-table): New function.
19
12010-02-05 Michael Albinus <michael.albinus@gmx.de> 202010-02-05 Michael Albinus <michael.albinus@gmx.de>
2 21
3 * net/ange-ftp.el (ange-ftp-insert-directory): 22 * net/ange-ftp.el (ange-ftp-insert-directory):
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 5b84fc3e0d1..77a075b716f 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -1134,7 +1134,7 @@ If BACKWARD is non-nil, jump to the previous match."
1134 1134
1135;;;; User interface commands and the mode 1135;;;; User interface commands and the mode
1136 1136
1137;; (put 'doc-view-mode 'mode-class 'special) 1137(put 'doc-view-mode 'mode-class 'special)
1138 1138
1139(defun doc-view-already-converted-p () 1139(defun doc-view-already-converted-p ()
1140 "Return non-nil if the current doc was already converted." 1140 "Return non-nil if the current doc was already converted."
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index f3cdc05da16..5b785f0031e 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -317,6 +317,8 @@ This variable is used to display the current image type in the mode line.")
317 317
318(defvar bookmark-make-record-function) 318(defvar bookmark-make-record-function)
319 319
320(put 'image-mode 'mode-class 'special)
321
320;;;###autoload 322;;;###autoload
321(defun image-mode () 323(defun image-mode ()
322 "Major mode for image files. 324 "Major mode for image files.
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 9cdc0f97b50..57f87c04b88 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -642,9 +642,11 @@ compatible with old code; callers should always specify it."
642 (widen) 642 (widen)
643 (save-excursion 643 (save-excursion
644 (if c-get-state-before-change-functions 644 (if c-get-state-before-change-functions
645 (mapc (lambda (fn) 645 (let ((beg (point-min))
646 (funcall fn beg end)) 646 (end (point-max)))
647 c-get-state-before-change-functions)) 647 (mapc (lambda (fn)
648 (funcall fn beg end))
649 c-get-state-before-change-functions)))
648 (if c-before-font-lock-function 650 (if c-before-font-lock-function
649 (funcall c-before-font-lock-function (point-min) (point-max) 651 (funcall c-before-font-lock-function (point-min) (point-max)
650 (- (point-max) (point-min)))))) 652 (- (point-max) (point-min))))))
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el
index 1b0206ce70c..efeb19de4c7 100644
--- a/lisp/vc-bzr.el
+++ b/lisp/vc-bzr.el
@@ -796,8 +796,12 @@ stream. Standard error output is discarded."
796 (shelve-help-echo "Use M-x vc-bzr-shelve to create shelves") 796 (shelve-help-echo "Use M-x vc-bzr-shelve to create shelves")
797 (root-dir (vc-bzr-root dir)) 797 (root-dir (vc-bzr-root dir))
798 (pending-merge 798 (pending-merge
799 (file-exists-p 799 ;; FIXME: looking for .bzr/checkout/merge-hashes is not a
800 (expand-file-name ".bzr/checkout/merge-hashes" root-dir))) 800 ;; reliable method to detect pending merges, disable this
801 ;; until a proper solution is implemented.
802 (and nil
803 (file-exists-p
804 (expand-file-name ".bzr/checkout/merge-hashes" root-dir))))
801 (pending-merge-help-echo 805 (pending-merge-help-echo
802 (format "A merge has been performed.\nA commit from the top-level directory (%s)\nis required before being able to check in anything else" root-dir)) 806 (format "A merge has been performed.\nA commit from the top-level directory (%s)\nis required before being able to check in anything else" root-dir))
803 (light-checkout 807 (light-checkout
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index 9f992fdd1c8..6883556f249 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -31,6 +31,10 @@
31(eval-when-compile 31(eval-when-compile
32 (require 'vc)) 32 (require 'vc))
33 33
34;; Clear up the cache to force vc-call to check again and discover
35;; new functions when we reload this file.
36(put 'SVN 'vc-functions nil)
37
34;;; 38;;;
35;;; Customization options 39;;; Customization options
36;;; 40;;;
@@ -722,6 +726,21 @@ information about FILENAME and return its status."
722 (beginning-of-line) 726 (beginning-of-line)
723 (if (looking-at vc-svn-annotate-re) (match-string 1)))) 727 (if (looking-at vc-svn-annotate-re) (match-string 1))))
724 728
729(defun vc-svn-revision-table (files)
730 (let ((vc-svn-revisions '()))
731 (with-current-buffer "*vc*"
732 (vc-svn-command nil 0 files "log" "-q")
733 (goto-char (point-min))
734 (forward-line)
735 (let ((start (point-min))
736 (loglines (buffer-substring-no-properties (point-min)
737 (point-max))))
738 (while (string-match "^r\\([0-9]+\\) " loglines)
739 (push (match-string 1 loglines) vc-svn-revisions)
740 (setq start (+ start (match-end 0)))
741 (setq loglines (buffer-substring-no-properties start (point-max)))))
742 vc-svn-revisions)))
743
725(provide 'vc-svn) 744(provide 'vc-svn)
726 745
727;; arch-tag: 02f10c68-2b4d-453a-90fc-1eee6cfb268d 746;; arch-tag: 02f10c68-2b4d-453a-90fc-1eee6cfb268d