aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2008-04-23 05:55:42 +0000
committerMiles Bader2008-04-23 05:55:42 +0000
commita113b3ca322fd73d97d0d9d69c9f48dc13fb326a (patch)
tree37b3ad22a198a83f68738ef86aec187bb6d926d9 /lisp
parente96a8d6dc0ffc35cf6c02924de2453c69fa8f6fe (diff)
parent81fe843b5a3cc7708e0800aeb5bc0dbe448e800a (diff)
downloademacs-a113b3ca322fd73d97d0d9d69c9f48dc13fb326a.tar.gz
emacs-a113b3ca322fd73d97d0d9d69c9f48dc13fb326a.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1121
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog33
-rw-r--r--lisp/emacs-lisp/autoload.el1
-rw-r--r--lisp/gnus/nnrss.el4
-rw-r--r--lisp/progmodes/cc-mode.el2
-rw-r--r--lisp/progmodes/gdb-ui.el37
-rw-r--r--lisp/progmodes/gud.el5
-rw-r--r--lisp/progmodes/make-mode.el2
-rw-r--r--lisp/term/mac-win.el10
-rw-r--r--lisp/textmodes/paragraphs.el4
9 files changed, 59 insertions, 39 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 27f8a12fc16..3c5a1e6994e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,36 @@
12008-04-12 Nick Roberts <nickrob@snap.net.nz>
2
3 * progmodes/gdb-ui.el (gdb-init-buffer): New function.
4 (gdb-set-gud-minor-mode-existing-buffers)
5 (gdb-info-breakpoints-custom, gdb-get-location)
6 (gdb-set-gud-minor-mode-existing-buffers-1): Use it.
7 Previously gdb-create-define-alist wasn't always run and added to
8 after-save-hook.
9
10 * progmodes/gud.el (gud-tooltip-tips): Use tooltip-event-buffer
11
122008-04-12 Kevin Ryde <user42@zip.com.au>
13
14 * progmodes/make-mode.el (makefile-fill-paragraph): Treat indented
15 comments like unindented ones.
16
172008-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18
19 * term/mac-win.el (mac-ae-open-documents): Adjust selection range
20 parameter origins.
21
222008-04-11 Kevin Ryde <user42@zip.com.au>
23
24 * emacs-lisp/autoload.el (autoload-generate-file-autoloads):
25 Bind print-level to ensure output forms aren't truncated if
26 print-level is set to eval-expression-print-level when going via
27 eval-defun and friends, or has been otherwise fiddled with.
28
292008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
30
31 * progmodes/cc-mode.el (c-basic-common-init): Don't set
32 font-lock-extend-after-change-region-function globally.
33
12008-04-23 Juanma Barranquero <lekktu@gmail.com> 342008-04-23 Juanma Barranquero <lekktu@gmail.com>
2 35
3 * speedbar.el (speedbar-use-tool-tips-flag) 36 * speedbar.el (speedbar-use-tool-tips-flag)
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index e6bca3b15dd..377d6c3f699 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -335,6 +335,7 @@ Return non-nil iff FILE adds no autoloads to OUTFILE
335 (let ((autoloads-done '()) 335 (let ((autoloads-done '())
336 (load-name (autoload-file-load-name file)) 336 (load-name (autoload-file-load-name file))
337 (print-length nil) 337 (print-length nil)
338 (print-level nil)
338 (print-readably t) ; This does something in Lucid Emacs. 339 (print-readably t) ; This does something in Lucid Emacs.
339 (float-output-format nil) 340 (float-output-format nil)
340 (visited (get-file-buffer file)) 341 (visited (get-file-buffer file))
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el
index 69a33088242..cd12b82fbee 100644
--- a/lisp/gnus/nnrss.el
+++ b/lisp/gnus/nnrss.el
@@ -1131,7 +1131,5 @@ prefix), return the prefix."
1131 1131
1132(provide 'nnrss) 1132(provide 'nnrss)
1133 1133
1134
1135;;; nnrss.el ends here
1136
1137;; arch-tag: 12910c07-0cdf-44fb-8d2c-416ded64c267 1134;; arch-tag: 12910c07-0cdf-44fb-8d2c-416ded64c267
1135;;; nnrss.el ends here
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 3fee14bf565..bd590d62f05 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -601,7 +601,7 @@ that requires a literal mode spec at compile time."
601 (add-hook 'before-change-functions 'c-before-change nil t) 601 (add-hook 'before-change-functions 'c-before-change nil t)
602 (make-local-hook 'after-change-functions) 602 (make-local-hook 'after-change-functions)
603 (add-hook 'after-change-functions 'c-after-change nil t) 603 (add-hook 'after-change-functions 'c-after-change nil t)
604 (setq font-lock-extend-after-change-region-function 604 (set (make-local-variable 'font-lock-extend-after-change-region-function)
605 'c-extend-after-change-region)) ; Currently (2008-04), only used by AWK. 605 'c-extend-after-change-region)) ; Currently (2008-04), only used by AWK.
606 606
607(defun c-setup-doc-comment-style () 607(defun c-setup-doc-comment-style ()
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index d9776c0c4cd..a3f3993629c 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -481,6 +481,15 @@ otherwise do not."
481 481
482(defconst gdb-source-file-regexp "\\(.+?\\), \\|\\([^, \n].*$\\)") 482(defconst gdb-source-file-regexp "\\(.+?\\), \\|\\([^, \n].*$\\)")
483 483
484(defun gdb-init-buffer ()
485 (set (make-local-variable 'gud-minor-mode)
486 (buffer-local-value 'gud-minor-mode gud-comint-buffer))
487 (set (make-local-variable 'tool-bar-map) gud-tool-bar-map)
488 (when gud-tooltip-mode
489 (make-local-variable 'gdb-define-alist)
490 (gdb-create-define-alist)
491 (add-hook 'after-save-hook 'gdb-create-define-alist nil t)))
492
484(defun gdb-set-gud-minor-mode-existing-buffers () 493(defun gdb-set-gud-minor-mode-existing-buffers ()
485 "Create list of source files for current GDB session." 494 "Create list of source files for current GDB session."
486 (goto-char (point-min)) 495 (goto-char (point-min))
@@ -493,12 +502,7 @@ otherwise do not."
493 (when (and buffer-file-name 502 (when (and buffer-file-name
494 (member (file-name-nondirectory buffer-file-name) 503 (member (file-name-nondirectory buffer-file-name)
495 gdb-source-file-list)) 504 gdb-source-file-list))
496 (set (make-local-variable 'gud-minor-mode) 'gdba) 505 (gdb-init-buffer)))))
497 (set (make-local-variable 'tool-bar-map) gud-tool-bar-map)
498 (when gud-tooltip-mode
499 (make-local-variable 'gdb-define-alist)
500 (gdb-create-define-alist)
501 (add-hook 'after-save-hook 'gdb-create-define-alist nil t))))))
502 (gdb-force-mode-line-update 506 (gdb-force-mode-line-update
503 (propertize "ready" 'face font-lock-variable-name-face))) 507 (propertize "ready" 'face font-lock-variable-name-face)))
504 508
@@ -1953,10 +1957,7 @@ static char *magick[] = {
1953 (not (string-equal file "File not found"))) 1957 (not (string-equal file "File not found")))
1954 (with-current-buffer 1958 (with-current-buffer
1955 (find-file-noselect file 'nowarn) 1959 (find-file-noselect file 'nowarn)
1956 (set (make-local-variable 'gud-minor-mode) 1960 (gdb-init-buffer)
1957 'gdba)
1958 (set (make-local-variable 'tool-bar-map)
1959 gud-tool-bar-map)
1960 ;; Only want one breakpoint icon at each 1961 ;; Only want one breakpoint icon at each
1961 ;; location. 1962 ;; location.
1962 (save-excursion 1963 (save-excursion
@@ -3269,9 +3270,7 @@ Add directory to search path for source files using the GDB command, dir."))
3269 (throw 'file-not-found nil)) 3270 (throw 'file-not-found nil))
3270 (with-current-buffer 3271 (with-current-buffer
3271 (find-file-noselect (match-string 0)) 3272 (find-file-noselect (match-string 0))
3272 (save-current-buffer 3273 (gdb-init-buffer)
3273 (set (make-local-variable 'gud-minor-mode) 'gdba)
3274 (set (make-local-variable 'tool-bar-map) gud-tool-bar-map))
3275 ;; only want one breakpoint icon at each location 3274 ;; only want one breakpoint icon at each location
3276 (save-excursion 3275 (save-excursion
3277 (goto-line (string-to-number line)) 3276 (goto-line (string-to-number line))
@@ -3293,9 +3292,7 @@ of the current session."
3293 buffer-file-name) 3292 buffer-file-name)
3294 gdb-source-file-list) 3293 gdb-source-file-list)
3295 (with-current-buffer (find-buffer-visiting buffer-file-name) 3294 (with-current-buffer (find-buffer-visiting buffer-file-name)
3296 (set (make-local-variable 'gud-minor-mode) 3295 (gdb-init-buffer)))))
3297 (buffer-local-value 'gud-minor-mode gud-comint-buffer))
3298 (set (make-local-variable 'tool-bar-map) gud-tool-bar-map)))))
3299 3296
3300;;from put-image 3297;;from put-image
3301(defun gdb-put-string (putstring pos &optional dprop &rest sprops) 3298(defun gdb-put-string (putstring pos &optional dprop &rest sprops)
@@ -3625,13 +3622,7 @@ is set in them."
3625 (dolist (buffer (buffer-list)) 3622 (dolist (buffer (buffer-list))
3626 (with-current-buffer buffer 3623 (with-current-buffer buffer
3627 (when (member buffer-file-name gdb-source-file-list) 3624 (when (member buffer-file-name gdb-source-file-list)
3628 (set (make-local-variable 'gud-minor-mode) 3625 (gdb-init-buffer))))
3629 (buffer-local-value 'gud-minor-mode gud-comint-buffer))
3630 (set (make-local-variable 'tool-bar-map) gud-tool-bar-map)
3631 (when gud-tooltip-mode
3632 (make-local-variable 'gdb-define-alist)
3633 (gdb-create-define-alist)
3634 (add-hook 'after-save-hook 'gdb-create-define-alist nil t)))))
3635 (gdb-force-mode-line-update 3626 (gdb-force-mode-line-update
3636 (propertize "ready" 'face font-lock-variable-name-face))) 3627 (propertize "ready" 'face font-lock-variable-name-face)))
3637 3628
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index dbb1aa8be99..8bfccaabb6d 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -3424,10 +3424,7 @@ This function must return nil if it doesn't handle EVENT."
3424 (if (and (eq gud-minor-mode 'gdba) 3424 (if (and (eq gud-minor-mode 'gdba)
3425 (not gdb-active-process)) 3425 (not gdb-active-process))
3426 (progn 3426 (progn
3427 (with-current-buffer 3427 (with-current-buffer (tooltip-event-buffer event)
3428 (window-buffer (let ((mouse (mouse-position)))
3429 (window-at (cadr mouse)
3430 (cddr mouse))))
3431 (let ((define-elt (assoc expr gdb-define-alist))) 3428 (let ((define-elt (assoc expr gdb-define-alist)))
3432 (unless (null define-elt) 3429 (unless (null define-elt)
3433 (tooltip-show 3430 (tooltip-show
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index ea9300f851b..2bf5b74c615 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -1352,7 +1352,7 @@ definition and conveniently use this command."
1352 (save-excursion 1352 (save-excursion
1353 (beginning-of-line) 1353 (beginning-of-line)
1354 (cond 1354 (cond
1355 ((looking-at "^#+\\s-*") 1355 ((looking-at "^[ \t]*#+\\s-*")
1356 ;; Found a comment. Return nil to let normal filling take place. 1356 ;; Found a comment. Return nil to let normal filling take place.
1357 nil) 1357 nil)
1358 1358
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index 60f27052892..e15f2e4c873 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -1802,11 +1802,11 @@ if possible. If there's no such frame, a new frame is created."
1802 (let ((line (car selection-range)) 1802 (let ((line (car selection-range))
1803 (start (cadr selection-range)) 1803 (start (cadr selection-range))
1804 (end (nth 2 selection-range))) 1804 (end (nth 2 selection-range)))
1805 (if (> line 0) 1805 (if (>= line 0)
1806 (goto-line line) 1806 (goto-line (1+ line))
1807 (if (and (> start 0) (> end 0)) 1807 (if (and (>= start 0) (>= end 0))
1808 (progn (set-mark start) 1808 (progn (set-mark (1+ start))
1809 (goto-char end)))))) 1809 (goto-char (1+ end)))))))
1810 ((stringp search-text) 1810 ((stringp search-text)
1811 (re-search-forward 1811 (re-search-forward
1812 (mapconcat 'regexp-quote (split-string search-text) "\\|") 1812 (mapconcat 'regexp-quote (split-string search-text) "\\|")
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el
index 231eba6ba86..b21369edfda 100644
--- a/lisp/textmodes/paragraphs.el
+++ b/lisp/textmodes/paragraphs.el
@@ -355,8 +355,8 @@ With argument ARG, do it ARG times;
355a negative argument ARG = -N means move forward N paragraphs. 355a negative argument ARG = -N means move forward N paragraphs.
356 356
357A paragraph start is the beginning of a line which is a 357A paragraph start is the beginning of a line which is a
358`first-line-of-paragraph' or which is ordinary text and follows a 358`paragraph-start' or which is ordinary text and follows a
359paragraph-separating line; except: if the first real line of a 359`paragraph-separate'ing line; except: if the first real line of a
360paragraph is preceded by a blank line, the paragraph starts at that 360paragraph is preceded by a blank line, the paragraph starts at that
361blank line. 361blank line.
362 362