summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2008-04-05 23:01:26 +0000
committerMiles Bader <miles@gnu.org>2008-04-05 23:01:26 +0000
commit5bc6ddff00c50acf546530ef0e08a27140614d27 (patch)
tree22f92034de583fe3df108e166385e30220b426fe /lisp
parentd8c852509f6218db43e5f2ca8baace02d4fa1294 (diff)
parent37128b5497b54367b25ed149ead91821adc65876 (diff)
downloademacs-5bc6ddff00c50acf546530ef0e08a27140614d27.tar.gz
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1107
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog28
-rw-r--r--lisp/diff-mode.el17
-rw-r--r--lisp/dired.el2
-rw-r--r--lisp/emacs-lisp/advice.el5
-rw-r--r--lisp/progmodes/gdb-ui.el8
-rw-r--r--lisp/term/mac-win.el4
-rw-r--r--lisp/vc-bzr.el6
7 files changed, 62 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1c0601493cf..914ce9003a4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,31 @@
+2008-04-05 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * vc-bzr.el (vc-bzr-log-view-mode, vc-bzr-annotate-command)
+ (vc-bzr-annotate-time, vc-bzr-annotate-extract-revision-at-line):
+ Revision numbers can include ".".
+
+ * diff-mode.el (diff-end-of-hunk): Be careful not to overlook trailing
+ "+" lines not accounted for by counting "-" and context lines.
+
+2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * term/mac-win.el (mac-service-open-file): Use file URL instead of
+ file name string.
+
+2008-04-05 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * vc-bzr.el (vc-bzr-annotate-command): Preserve line alignment.
+ (vc-bzr-annotate-time): Accept space used to preserve alignment.
+
+2008-04-05 Richard Stallman <rms@gnu.org>
+
+ * emacs-lisp/advice.el (defadvice): Add usage pattern.
+
+2008-04-05 Nick Roberts <nickrob@snap.net.nz>
+
+ * progmodes/gdb-ui.el: Add advice about using Cygwin GDB (from a
+ thread in [h-e-w]).
+
2008-04-05 Juanma Barranquero <lekktu@gmail.com>
* files.el (abort-if-file-too-large): Fix typo in docstring.
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 151811c037c..970df74da61 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -438,12 +438,23 @@ See http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01990.html")
(setq style (diff-hunk-style style))
(goto-char (match-end 0))
(when (and (not donttrustheader) (match-end 2))
+ (let* ((nold (string-to-number (match-string 2)))
+ (nnew (string-to-number (match-string 4)))
+ (endold
(save-excursion
(re-search-forward (if diff-valid-unified-empty-line
"^[- \n]" "^[- ]")
- nil t
- (string-to-number (match-string 2)))
- (setq end (line-beginning-position 2)))))
+ nil t nold)
+ (line-beginning-position 2)))
+ (endnew
+ ;; The hunk may end with a bunch of "+" lines, so the `end' is
+ ;; then further than computed above.
+ (save-excursion
+ (re-search-forward (if diff-valid-unified-empty-line
+ "^[+ \n]" "^[+ ]")
+ nil t nnew)
+ (line-beginning-position 2))))
+ (setq end (max endold endnew)))))
;; We may have a first evaluation of `end' thanks to the hunk header.
(unless end
(setq end (and (re-search-forward
diff --git a/lisp/dired.el b/lisp/dired.el
index 70ce1718eaa..4efb091f277 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -346,6 +346,8 @@ Subexpression 2 must end right before the \\n or \\r.")
(defface dired-perm-write
'((((type w32 pc)) :inherit default) ;; These default to rw-rw-rw.
+ ;; Inherit from font-lock-comment-delimiter-face since with min-colors 8
+ ;; font-lock-comment-face is not colored any more.
(t (:inherit font-lock-comment-delimiter-face)))
"Face used to highlight permissions of group- and world-writable files."
:group 'dired-faces
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index ca3a062198d..e6753614471 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -3792,7 +3792,10 @@ the advised function. `freeze' implies `activate' and `preactivate'. The
documentation of the advised function can be dumped onto the `DOC' file
during preloading.
-See Info node `(elisp)Advising Functions' for comprehensive documentation."
+See Info node `(elisp)Advising Functions' for comprehensive documentation.
+usage: (defadvice FUNCTION (CLASS NAME [POSITION] [ARGLIST] FLAG...)
+ [DOCSTRING] [INTERACTIVE-FORM]
+ BODY...)"
(declare (doc-string 3))
(if (not (ad-name-p function))
(error "defadvice: Invalid function name: %s" function))
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 08c5df7b727..19710341f71 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -77,6 +77,14 @@
;; and compiling with -DUNBUFFERED while debugging.
+;; If you are using Cygwin GDB and find that the source is not being displayed
+;; in Emacs when you step through it, possible solutions are to:
+
+;; 1) Use Cygwin X Windows and Cygwin Emacs.
+;; (Since 22.1 Emacs builds under Cygwin.)
+;; 2) Use MinGW GDB instead.
+;; 3) Use cygwin-mount.el
+
;;; Known Bugs:
;; 1) Cannot handle multiple debug sessions.
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index c8f26edff37..60f27052892 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -2197,7 +2197,9 @@ either in the current buffer or in the echo area."
(defun mac-service-open-file ()
"Open the file specified by the selection value for Services."
(interactive)
- (find-file-existing (x-selection-value mac-service-selection)))
+ ;; The selection seems not to contain the file name as
+ ;; public.utf16-plain-text data on Mac OS X 10.4.
+ (dnd-open-file (x-get-selection mac-service-selection 'public.file-url) nil))
(defun mac-service-open-selection ()
"Create a new buffer containing the selection value for Services."
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el
index 47abf98c32a..ff17ee4e9bb 100644
--- a/lisp/vc-bzr.el
+++ b/lisp/vc-bzr.el
@@ -519,7 +519,7 @@ property containing author and date information."
;; to allow saving space by sharing the text properties.
(setq vc-bzr-annotation-table (make-hash-table :test 'equal))
(goto-char (point-min))
- (while (re-search-forward "^\\( *[0-9]+\\) +\\(.+\\) +\\([0-9]\\{8\\}\\) |"
+ (while (re-search-forward "^\\( *[0-9.]+ *\\) \\([^\n ]+\\) +\\([0-9]\\{8\\}\\) |"
nil t)
(let* ((rev (match-string 1))
(author (match-string 2))
@@ -535,7 +535,7 @@ property containing author and date information."
(insert tag " |")))))
(defun vc-bzr-annotate-time ()
- (when (re-search-forward "^ *[0-9]+ |" nil t)
+ (when (re-search-forward "^ *[0-9.]+ +|" nil t)
(let ((prop (get-text-property (line-beginning-position) 'help-echo)))
(string-match "[0-9]+\\'" prop)
(vc-annotate-convert-time
@@ -550,7 +550,7 @@ property containing author and date information."
Return nil if current line isn't annotated."
(save-excursion
(beginning-of-line)
- (if (looking-at " *\\([0-9]+\\) | ")
+ (if (looking-at " *\\([0-9.]+\\) | ")
(match-string-no-properties 1))))
(defun vc-bzr-command-discarding-stderr (command &rest args)