Mercurial > emacs
changeset 109230:edba7a045a72
Merge from mainline.
author | Katsumi Yamaoka <katsumi@flagship2> |
---|---|
date | Fri, 25 Jun 2010 12:11:51 +0000 |
parents | d3e42c34c64a (current diff) e1b36fd5197d (diff) |
children | b6c00fb16e8f |
files | lisp/vc/vc.el |
diffstat | 12 files changed, 122 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/ChangeLog Wed Jun 23 13:17:54 2010 +0000 +++ b/lib-src/ChangeLog Fri Jun 25 12:11:51 2010 +0000 @@ -1,3 +1,7 @@ +2010-06-24 Juanma Barranquero <lekktu@gmail.com> + + * movemail.c (error): Avoid warning when there are no args. + 2010-06-11 Juanma Barranquero <lekktu@gmail.com> * makefile.w32-in (lisp2): Fix references to vc/vc-hooks.elc
--- a/lib-src/movemail.c Wed Jun 23 13:17:54 2010 +0000 +++ b/lib-src/movemail.c Fri Jun 25 12:11:51 2010 +0000 @@ -612,7 +612,7 @@ else if (s2) fprintf (stderr, s1, s2); else - fprintf (stderr, s1); + fprintf (stderr, "%s", s1); fprintf (stderr, "\n"); }
--- a/lisp/ChangeLog Wed Jun 23 13:17:54 2010 +0000 +++ b/lisp/ChangeLog Fri Jun 25 12:11:51 2010 +0000 @@ -1,3 +1,27 @@ +2010-06-25 Agustín Martín <agustin.martin@hispalinux.es> + + * flyspell.el (flyspell-check-previous-highlighted-word): Make + sure `flyspell-word' re-checks word after function run (Bug#6504). + + * ispell.el (ispell-init-process): Make sure ispell and default + directories are expanded. (Bug#6143). + +2010-06-24 Juri Linkov <juri@jurta.org> + + * minibuffer.el (completions-format): Change default from nil to + `horizontal'. Remove `nil' value from :type. Doc fix. (Bug#6459) + +2010-06-24 Juri Linkov <juri@jurta.org> + + * vc/vc.el (vc-diff-internal): Set `revert-buffer-function' + buffer-locally to lambda that re-runs the vc diff command. + (Bug#6447) + +2010-06-24 Chong Yidong <cyd@stupidchicken.com> + + * kmacro.el (kmacro-call-macro): Don't issue hint message if the + echo area is in use (Bug#3412). + 2010-06-22 Glenn Morris <rgm@gnu.org> * textmodes/texinfmt.el (texinfo-format-region)
--- a/lisp/kmacro.el Wed Jun 23 13:17:54 2010 +0000 +++ b/lisp/kmacro.el Fri Jun 25 12:11:51 2010 +0000 @@ -642,11 +642,13 @@ kmacro-call-repeat-key))) (setq repeat-key-str (format-kbd-macro (vector repeat-key) nil)) (while repeat-key - (message "(Type %s to repeat macro%s)" - repeat-key-str - (if (and kmacro-call-repeat-with-arg - arg (> arg 1)) - (format " %d times" arg) "")) + ;; Issue a hint to the user, if the echo area isn't in use. + (unless (current-message) + (message "(Type %s to repeat macro%s)" + repeat-key-str + (if (and kmacro-call-repeat-with-arg + arg (> arg 1)) + (format " %d times" arg) ""))) (if (equal repeat-key (read-event)) (progn (clear-this-command-keys t)
--- a/lisp/minibuffer.el Wed Jun 23 13:17:54 2010 +0000 +++ b/lisp/minibuffer.el Fri Jun 25 12:11:51 2010 +0000 @@ -891,13 +891,13 @@ (defface completions-annotations '((t :inherit italic)) "Face to use for annotations in the *Completions* buffer.") -(defcustom completions-format nil +(defcustom completions-format 'horizontal "Define the appearance and sorting of completions. If the value is `vertical', display completions sorted vertically in columns in the *Completions* buffer. -If the value is `horizontal' or nil, display completions sorted +If the value is `horizontal', display completions sorted horizontally in alphabetical order, rather than down the screen." - :type '(choice (const nil) (const horizontal) (const vertical)) + :type '(choice (const horizontal) (const vertical)) :group 'minibuffer :version "23.2")
--- a/lisp/textmodes/flyspell.el Wed Jun 23 13:17:54 2010 +0000 +++ b/lisp/textmodes/flyspell.el Fri Jun 25 12:11:51 2010 +0000 @@ -1817,7 +1817,9 @@ (throw 'exit t))))))) (save-excursion (goto-char pos) - (ispell-word)) + (ispell-word) + (setq flyspell-word-cache-word nil) ;; Force flyspell-word re-check + (flyspell-word)) (error "No word to correct before point")))) ;;*---------------------------------------------------------------------*/
--- a/lisp/textmodes/ispell.el Wed Jun 23 13:17:54 2010 +0000 +++ b/lisp/textmodes/ispell.el Fri Jun 25 12:11:51 2010 +0000 @@ -2622,7 +2622,7 @@ ;; Restart check for personal dictionary is done in ;; `ispell-internal-change-dictionary', called from `ispell-buffer-local-dict' (or (or ispell-local-pdict ispell-personal-dictionary) - (equal ispell-process-directory default-directory))) + (equal ispell-process-directory (expand-file-name default-directory)))) (setq ispell-filter nil ispell-filter-continue nil) ;; may need to restart to select new personal dictionary. (ispell-kill-ispell t) @@ -2638,13 +2638,13 @@ (if (window-minibuffer-p) (if (fboundp 'minibuffer-selected-window) ;; Assign ispell process to parent buffer - (setq ispell-process-directory default-directory + (setq ispell-process-directory (expand-file-name default-directory) ispell-process-buffer-name (window-buffer (minibuffer-selected-window))) ;; Force `ispell-process-directory' to $HOME and use a dummy name (setq ispell-process-directory (expand-file-name "~/") ispell-process-buffer-name " * Minibuffer-has-spellcheck-enabled")) ;; Not in a minibuffer - (setq ispell-process-directory default-directory + (setq ispell-process-directory (expand-file-name default-directory) ispell-process-buffer-name (buffer-name))) (if ispell-async-processp (set-process-filter ispell-process 'ispell-filter))
--- a/lisp/vc/vc.el Wed Jun 23 13:17:54 2010 +0000 +++ b/lisp/vc/vc.el Fri Jun 25 12:11:51 2010 +0000 @@ -1547,6 +1547,9 @@ (message "%s" (cdr messages)) nil) (diff-mode) + (set (make-local-variable 'revert-buffer-function) + `(lambda (ignore-auto noconfirm) + (vc-diff-internal ,async ',vc-fileset ,rev1 ,rev2 ,verbose))) ;; Make the *vc-diff* buffer read only, the diff-mode key ;; bindings are nicer for read only buffers. pcl-cvs does the ;; same thing.
--- a/src/ChangeLog Wed Jun 23 13:17:54 2010 +0000 +++ b/src/ChangeLog Fri Jun 25 12:11:51 2010 +0000 @@ -1,3 +1,8 @@ +2010-06-24 Juanma Barranquero <lekktu@gmail.com> + + * gtkutil.c (xg_update_scrollbar_pos): + Avoid C99 mid-block variable declaration. + 2010-06-22 Jan Djärv <jan.h.d@swipnet.se> * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
--- a/src/gtkutil.c Wed Jun 23 13:17:54 2010 +0000 +++ b/src/gtkutil.c Fri Jun 25 12:11:51 2010 +0000 @@ -3213,6 +3213,7 @@ GtkWidget *wfixed = f->output_data.x->edit_widget; GtkWidget *wparent = gtk_widget_get_parent (wscroll); GtkFixed *wf = GTK_FIXED (wfixed); + gint msl; /* Clear out old position. */ GList *iter; @@ -3232,7 +3233,6 @@ /* Move and resize to new values. */ gtk_fixed_move (GTK_FIXED (wfixed), wparent, left, top); - gint msl; gtk_widget_style_get (wscroll, "min-slider-length", &msl, NULL); if (msl > height) {
--- a/test/ChangeLog Wed Jun 23 13:17:54 2010 +0000 +++ b/test/ChangeLog Fri Jun 25 12:11:51 2010 +0000 @@ -1,3 +1,7 @@ +2010-06-25 Chong Yidong <cyd@stupidchicken.com> + + * redisplay-testsuite.el (test-redisplay-3): New test. + 2010-06-11 Chong Yidong <cyd@stupidchicken.com> * comint-testsuite.el: New file.
--- a/test/redisplay-testsuite.el Wed Jun 23 13:17:54 2010 +0000 +++ b/test/redisplay-testsuite.el Fri Jun 25 12:11:51 2010 +0000 @@ -110,13 +110,72 @@ (propertize "XXX\n" 'face 'highlight) "\n Test: ") (test-insert-overlay "XXX\n" 'mouse-face 'highlight) - (insert "\n")) + (insert "\n\n")) + +(defun test-redisplay-3 () + (insert "Test 3: Overlay with before/after strings and images:\n\n") + (let ((img-data "#define x_width 8 +#define x_height 8 +static unsigned char x_bits[] = {0xff, 0x81, 0xbd, 0xa5, 0xa5, 0xbd, 0x81, 0xff };")) + ;; Control + (insert " Expected: AB" + (propertize "X" 'display `(image :data ,img-data :type xbm)) + "CD\n") + + ;; Overlay with before, after, and image display string. + (insert " Result 1: ") + (let ((opoint (point))) + (insert "AXD\n") + (let ((ov (make-overlay (1+ opoint) (+ 2 opoint)))) + (overlay-put ov 'before-string "B") + (overlay-put ov 'after-string "C") + (overlay-put ov 'display + `(image :data ,img-data :type xbm)))) + + ;; Overlay with before and after string, and image text prop. + (insert " Result 2: ") + (let ((opoint (point))) + (insert "AXD\n") + (let ((ov (make-overlay (1+ opoint) (+ 2 opoint)))) + (overlay-put ov 'before-string "B") + (overlay-put ov 'after-string "C") + (put-text-property (1+ opoint) (+ 2 opoint) 'display + `(image :data ,img-data :type xbm)))) + + ;; Overlays with adjacent before and after strings, and image text + ;; prop. + (insert " Result 3: ") + (let ((opoint (point))) + (insert "AXD\n") + (let ((ov1 (make-overlay opoint (1+ opoint))) + (ov2 (make-overlay (+ 2 opoint) (+ 3 opoint)))) + (overlay-put ov1 'after-string "B") + (overlay-put ov2 'before-string "C") + (put-text-property (1+ opoint) (+ 2 opoint) 'display + `(image :data ,img-data :type xbm)))) + + ;; Three overlays. + (insert " Result 4: ") + (let ((opoint (point))) + (insert "AXD\n\n") + (let ((ov1 (make-overlay opoint (1+ opoint))) + (ov2 (make-overlay (+ 2 opoint) (+ 3 opoint))) + (ov3 (make-overlay (1+ opoint) (+ 2 opoint)))) + (overlay-put ov1 'after-string "B") + (overlay-put ov2 'before-string "C") + (overlay-put ov3 'display `(image :data ,img-data :type xbm)))))) + (defun test-redisplay () (interactive) - (pop-to-buffer (generate-new-buffer "*Redisplay Test*")) - (test-redisplay-1) - (test-redisplay-2) - (goto-char (point-min))) + (let ((buf (get-buffer "*Redisplay Test*"))) + (if buf + (kill-buffer buf)) + (pop-to-buffer (get-buffer-create "*Redisplay Test*")) + (erase-buffer) + (test-redisplay-1) + (test-redisplay-2) + (test-redisplay-3) + (goto-char (point-min)))) ;; arch-tag: fcee53c8-024f-403d-9154-61ae3ce0bfb8