aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2011-08-04 00:08:40 +0200
committerJoakim Verona2011-08-04 00:08:40 +0200
commit66f857bd9da5ea1037524d0696252ae116e0df9a (patch)
treeebcbe6266d872e4cf62d1e0da8a9e88ac729211f
parent817efd16b98d905b3d5a921b7c129b06bb16c07c (diff)
parent568352e7614eeda6d579aacf46d99c83ffc9a5d9 (diff)
downloademacs-66f857bd9da5ea1037524d0696252ae116e0df9a.tar.gz
emacs-66f857bd9da5ea1037524d0696252ae116e0df9a.zip
fixed an assert
-rw-r--r--lisp/ChangeLog88
-rw-r--r--lisp/emacs-lisp/cl-loaddefs.el3
-rw-r--r--lisp/gnus/ChangeLog12
-rw-r--r--lisp/gnus/nnimap.el10
-rw-r--r--lisp/gnus/nnir.el20
-rw-r--r--lisp/progmodes/sh-script.el64
-rw-r--r--lisp/xwidget.el2
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xdisp.c1
-rw-r--r--src/xwidget.c2
10 files changed, 115 insertions, 91 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f6c1b8a5fdf..6a4d4b9cc9c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-08-03 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/sh-script.el (sh-font-lock-paren): Don't mistake "main" for
4 "in" (bug#9190).
5
12011-08-02 Lars Magne Ingebrigtsen <larsi@gnus.org> 62011-08-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * mail/sendmail.el (sendmail-query-once): Restore the current 8 * mail/sendmail.el (sendmail-query-once): Restore the current
@@ -23,8 +28,8 @@
23 * info.el: Remove the `Info-beginning-of-buffer' function 28 * info.el: Remove the `Info-beginning-of-buffer' function
24 (bug#8325). 29 (bug#8325).
25 30
26 * net/network-stream.el (network-stream-open-starttls): Use 31 * net/network-stream.el (network-stream-open-starttls):
27 `starttls-available-p' to see whether starttls.el can be used. 32 Use `starttls-available-p' to see whether starttls.el can be used.
28 33
292011-08-01 Martin Rudalics <rudalics@gmx.at> 342011-08-01 Martin Rudalics <rudalics@gmx.at>
30 35
@@ -32,8 +37,7 @@
32 of window here (Bug#9215). 37 of window here (Bug#9215).
33 (display-buffer-pop-up-window, display-buffer-pop-up-frame) 38 (display-buffer-pop-up-window, display-buffer-pop-up-frame)
34 (display-buffer-pop-up-side-window) 39 (display-buffer-pop-up-side-window)
35 (display-buffer-in-side-window): Set dedicated status of window 40 (display-buffer-in-side-window): Set dedicated status of window here.
36 here.
37 41
382011-08-01 Stefan Monnier <monnier@iro.umontreal.ca> 422011-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
39 43
@@ -87,8 +91,8 @@
87 QT keyword "more" to prevent "more slots: ...." being spuriously 91 QT keyword "more" to prevent "more slots: ...." being spuriously
88 parsed as a bitfield declaraion. 92 parsed as a bitfield declaraion.
89 93
90 * progmodes/cc-engine.el (c-beginning-of-statement-1): Refactor 94 * progmodes/cc-engine.el (c-beginning-of-statement-1):
91 and enhance to handle bitfield declarations. 95 Refactor and enhance to handle bitfield declarations.
92 (c-punctuation-in): New function. 96 (c-punctuation-in): New function.
93 (c-forward-decl-or-cast-1): Enhance CASE 3 to handle bitfield 97 (c-forward-decl-or-cast-1): Enhance CASE 3 to handle bitfield
94 declarations properly. 98 declarations properly.
@@ -97,7 +101,7 @@
97 101
98 * calendar/icalendar.el (icalendar--all-events): Take care of 102 * calendar/icalendar.el (icalendar--all-events): Take care of
99 multiple vcalendars in a single file. 103 multiple vcalendars in a single file.
100 (icalendar--convert-float-to-ical): checkdoc fixes. 104 (icalendar--convert-float-to-ical): Checkdoc fixes.
101 105
1022011-07-25 Deniz Dogan <deniz@dogan.se> 1062011-07-25 Deniz Dogan <deniz@dogan.se>
103 107
@@ -131,8 +135,7 @@
131 (display-buffer-pop-up-side-window) 135 (display-buffer-pop-up-side-window)
132 (display-buffer-in-side-window): Call display-buffer-set-height 136 (display-buffer-in-side-window): Call display-buffer-set-height
133 and display-buffer-set-width after setting the new window's 137 and display-buffer-set-width after setting the new window's
134 buffer so `fit-window-to-buffer' and friends work on the right 138 buffer so `fit-window-to-buffer' and friends work on the right buffer.
135 buffer.
136 139
1372011-07-20 Sam Steingold <sds@gnu.org> 1402011-07-20 Sam Steingold <sds@gnu.org>
138 141
@@ -164,8 +167,8 @@
1642011-07-19 Martin Rudalics <rudalics@gmx.at> 1672011-07-19 Martin Rudalics <rudalics@gmx.at>
165 168
166 * window.el (display-buffer-alist-of-strings-p) 169 * window.el (display-buffer-alist-of-strings-p)
167 (display-buffer-alist-set-1, display-buffer-alist-set-2): New 170 (display-buffer-alist-set-1, display-buffer-alist-set-2):
168 functions. 171 New functions.
169 (display-buffer-alist-set): Rewrite to handle Emacs 23 options 172 (display-buffer-alist-set): Rewrite to handle Emacs 23 options
170 more accurately. 173 more accurately.
171 174
@@ -176,8 +179,8 @@
176 179
177 * progmodes/cc-langs.el (c-symbol-chars): Correct a typo. 180 * progmodes/cc-langs.el (c-symbol-chars): Correct a typo.
178 181
179 * progmodes/cc-fonts.el (c-font-lock-enclosing-decls): New 182 * progmodes/cc-fonts.el (c-font-lock-enclosing-decls):
180 function. 183 New function.
181 (c-complex-decl-matchers): Insert reference to 184 (c-complex-decl-matchers): Insert reference to
182 c-font-lock-enclosing-decls. 185 c-font-lock-enclosing-decls.
183 186
@@ -196,7 +199,7 @@
196 199
1972011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> 2002011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
198 201
199 * net/gnutls.el (gnutls-log-level): Removed. 202 * net/gnutls.el (gnutls-log-level): Remove.
200 203
201 * textmodes/fill.el (adaptive-fill-regexp): Include EN DASH as an 204 * textmodes/fill.el (adaptive-fill-regexp): Include EN DASH as an
202 indentation character (bug#6380). 205 indentation character (bug#6380).
@@ -218,11 +221,10 @@
218 221
2192011-07-16 Martin Rudalics <rudalics@gmx.at> 2222011-07-16 Martin Rudalics <rudalics@gmx.at>
220 223
221 * frame.el (select-frame-set-input-focus): New argument 224 * frame.el (select-frame-set-input-focus): New argument NORECORD.
222 NORECORD.
223 * window.el (pop-to-buffer): Select window used even if it was 225 * window.el (pop-to-buffer): Select window used even if it was
224 selected before, see discussion of (Bug#8615), (Bug#6954). Pass 226 selected before, see discussion of (Bug#8615), (Bug#6954).
225 argument NORECORD on to select-frame-set-input-focus. 227 Pass argument NORECORD on to select-frame-set-input-focus.
226 228
2272011-07-15 Glenn Morris <rgm@gnu.org> 2292011-07-15 Glenn Morris <rgm@gnu.org>
228 230
@@ -236,8 +238,8 @@
236 238
2372011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> 2392011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
238 240
239 * net/gnutls.el (gnutls-negotiate): Upcase 241 * net/gnutls.el (gnutls-negotiate):
240 `gnutls-algorithm-priority'. 242 Upcase `gnutls-algorithm-priority'.
241 243
2422011-07-15 Glenn Morris <rgm@gnu.org> 2442011-07-15 Glenn Morris <rgm@gnu.org>
243 245
@@ -318,9 +320,9 @@
318 * printing.el (pr-toggle-region): Clarify the documentation 320 * printing.el (pr-toggle-region): Clarify the documentation
319 slightly (bug#7493). 321 slightly (bug#7493).
320 322
321 * time.el (display-time-update): Allow 323 * time.el (display-time-update):
322 `display-time-mail-function' to return nil (bug#7158). Fix 324 Allow `display-time-mail-function' to return nil (bug#7158).
323 suggested by Detlev Zundel. 325 Fix suggested by Detlev Zundel.
324 326
325 * vc/diff.el (diff): Clarify the order the file names are read 327 * vc/diff.el (diff): Clarify the order the file names are read
326 (bug#7111). 328 (bug#7111).
@@ -336,8 +338,8 @@
336 338
3372011-07-14 Martin Rudalics <rudalics@gmx.at> 3392011-07-14 Martin Rudalics <rudalics@gmx.at>
338 340
339 * window.el (display-buffer-normalize-special): Replace 341 * window.el (display-buffer-normalize-special):
340 `dedicated' by `dedicate' to dedicate window (Bug#9072). 342 Replace `dedicated' by `dedicate' to dedicate window (Bug#9072).
341 343
3422011-07-14 Eli Zaretskii <eliz@gnu.org> 3442011-07-14 Eli Zaretskii <eliz@gnu.org>
343 345
@@ -358,7 +360,7 @@
358 switch-to-buffer. 360 switch-to-buffer.
359 361
360 * net/tramp-compat.el (tramp-compat-pop-to-buffer-same-window): 362 * net/tramp-compat.el (tramp-compat-pop-to-buffer-same-window):
361 Deleted. 363 Delete.
362 364
3632011-07-14 Juanma Barranquero <lekktu@gmail.com> 3652011-07-14 Juanma Barranquero <lekktu@gmail.com>
364 366
@@ -376,8 +378,8 @@
376 378
3772011-07-13 Chong Yidong <cyd@stupidchicken.com> 3792011-07-13 Chong Yidong <cyd@stupidchicken.com>
378 380
379 * window.el (switch-to-buffer): New arg FORCE-SAME-WINDOW. Use 381 * window.el (switch-to-buffer): New arg FORCE-SAME-WINDOW.
380 pop-to-buffer buffer-or-name if it is nil. 382 Use pop-to-buffer buffer-or-name if it is nil.
381 383
382 * emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions): 384 * emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
383 Remove switch-to-buffer. 385 Remove switch-to-buffer.
@@ -402,8 +404,8 @@
402 404
4032011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> 4052011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
404 406
405 * progmodes/cperl-mode.el (cperl-syntaxify-by-font-lock): Rewrite 407 * progmodes/cperl-mode.el (cperl-syntaxify-by-font-lock):
406 to avoid awkward possessive "s" (bug#5986). 408 Rewrite to avoid awkward possessive "s" (bug#5986).
407 409
4082011-07-13 Glenn Morris <rgm@gnu.org> 4102011-07-13 Glenn Morris <rgm@gnu.org>
409 411
@@ -497,15 +499,15 @@
497 499
4982011-07-12 Roland Winkler <winkler@gnu.org> 5002011-07-12 Roland Winkler <winkler@gnu.org>
499 501
500 * textmodes/bibtex.el (bibtex-initialize): Use 502 * textmodes/bibtex.el (bibtex-initialize):
501 pop-to-buffer-same-window. 503 Use pop-to-buffer-same-window.
502 (bibtex-search-entries): Fix interactive call. 504 (bibtex-search-entries): Fix interactive call.
503 505
5042011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org> 5062011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
505 507
506 * progmodes/compile.el (compilation-error-regexp-alist-alist): 508 * progmodes/compile.el (compilation-error-regexp-alist-alist):
507 Fontise bytecomp Error lines more correctly (bug#2490). Fix 509 Fontise bytecomp Error lines more correctly (bug#2490).
508 suggested by Johan Bockgård. 510 Fix suggested by Johan Bockgård.
509 511
510 * subr.el (remove-duplicates): Remove; `delete-dups' is sufficient. 512 * subr.el (remove-duplicates): Remove; `delete-dups' is sufficient.
511 513
@@ -518,8 +520,8 @@
518 520
5192011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org> 5212011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
520 522
521 * mail/sendmail.el (sendmail-query-once): Use 523 * mail/sendmail.el (sendmail-query-once):
522 `customize-save-variable' unconditionally, now that it works under 524 Use `customize-save-variable' unconditionally, now that it works under
523 emacs -Q. 525 emacs -Q.
524 526
525 * mail/smtpmail.el (smtpmail-query-smtp-server): Ditto. 527 * mail/smtpmail.el (smtpmail-query-smtp-server): Ditto.
@@ -584,16 +586,15 @@
584 586
5852011-07-09 Bob Nnamtrop <bobnnamtrop@gmail.com> (tiny change) 5872011-07-09 Bob Nnamtrop <bobnnamtrop@gmail.com> (tiny change)
586 588
587 * emulation/viper-cmd.el (viper-change-state-to-vi): Limit 589 * emulation/viper-cmd.el (viper-change-state-to-vi):
588 triggering of abbrev expansion (Bug#9038). 590 Limit triggering of abbrev expansion (Bug#9038).
589 591
5902011-07-09 Martin Rudalics <rudalics@gmx.at> 5922011-07-09 Martin Rudalics <rudalics@gmx.at>
591 593
592 * window.el (display-buffer-default-specifiers): Remove. 594 * window.el (display-buffer-default-specifiers): Remove.
593 (display-buffer-macro-specifiers): Remove default specifiers. 595 (display-buffer-macro-specifiers): Remove default specifiers.
594 (display-buffer-alist): Default to nil. 596 (display-buffer-alist): Default to nil.
595 (display-buffer-reuse-window): New optional argument 597 (display-buffer-reuse-window): New optional argument other-window.
596 other-window.
597 (display-buffer-pop-up-window): Allow splitting internal 598 (display-buffer-pop-up-window): Allow splitting internal
598 windows. Check whether a live window was created. 599 windows. Check whether a live window was created.
599 (display-buffer-other-window-means-other-frame) 600 (display-buffer-other-window-means-other-frame)
@@ -608,11 +609,10 @@
608 (display-buffer): Process other-window specifier and call 609 (display-buffer): Process other-window specifier and call
609 display-buffer-reuse-window with it. Emulate Emacs 23 behavior 610 display-buffer-reuse-window with it. Emulate Emacs 23 behavior
610 more faithfully. 611 more faithfully.
611 (pop-up-windows, even-window-heights): Restore Emacs 23 default 612 (pop-up-windows, even-window-heights): Restore Emacs 23 default values.
612 values.
613 (display-buffer-alist-set): Don't handle 'unset default values. 613 (display-buffer-alist-set): Don't handle 'unset default values.
614 (display-buffer-in-window, display-buffer-alist-set): Replace 614 (display-buffer-in-window, display-buffer-alist-set):
615 symbol "dedicated" by "dedicate". Reported by Tassilo Horn 615 Replace symbol "dedicated" by "dedicate". Reported by Tassilo Horn
616 <tassilo@member.fsf.org>. 616 <tassilo@member.fsf.org>.
617 617
6182011-07-09 Leo Liu <sdl.web@gmail.com> 6182011-07-09 Leo Liu <sdl.web@gmail.com>
diff --git a/lisp/emacs-lisp/cl-loaddefs.el b/lisp/emacs-lisp/cl-loaddefs.el
index 270211f6a78..4b9985380c3 100644
--- a/lisp/emacs-lisp/cl-loaddefs.el
+++ b/lisp/emacs-lisp/cl-loaddefs.el
@@ -282,7 +282,7 @@ Not documented
282;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist 282;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist
283;;;;;; do* do loop return-from return block etypecase typecase ecase 283;;;;;; do* do loop return-from return block etypecase typecase ecase
284;;;;;; case load-time-value eval-when destructuring-bind function* 284;;;;;; case load-time-value eval-when destructuring-bind function*
285;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "9452c0e16fd960fce5c19e5c067a7160") 285;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "21df83d6106cb0c3d037e75ad79359dc")
286;;; Generated autoloads from cl-macs.el 286;;; Generated autoloads from cl-macs.el
287 287
288(autoload 'gensym "cl-macs" "\ 288(autoload 'gensym "cl-macs" "\
@@ -426,6 +426,7 @@ The Common Lisp `do*' loop.
426Loop over a list. 426Loop over a list.
427Evaluate BODY with VAR bound to each `car' from LIST, in turn. 427Evaluate BODY with VAR bound to each `car' from LIST, in turn.
428Then evaluate RESULT to get return value, default nil. 428Then evaluate RESULT to get return value, default nil.
429An implicit nil block is established around the loop.
429 430
430\(fn (VAR LIST [RESULT]) BODY...)" nil (quote macro)) 431\(fn (VAR LIST [RESULT]) BODY...)" nil (quote macro))
431 432
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 6b35fbcb8ef..e88b5154c76 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,15 @@
12011-08-02 Andrew Cohen <cohen@andy.bu.edu>
2
3 * nnir.el (nnir-search-thread): Position point on referring article
4 line.
5 (nnir-warp-to-article): Clean up summary buffers.
6
7 * nnimap.el (nnimap-request-thread): Whitespace fix.
8
92011-08-02 Steve Purcell <steve@sanityinc.com> (tiny change)
10
11 * nnimap.el (nnimap-get-groups): Decode "&" correctly.
12
12011-08-02 Lars Magne Ingebrigtsen <larsi@gnus.org> 132011-08-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 14
3 * starttls.el (starttls-available-p): Renamed from 15 * starttls.el (starttls-available-p): Renamed from
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 52de48869d8..f41f4af71b4 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -1107,9 +1107,9 @@ textual parts.")
1107 (separator (read (current-buffer))) 1107 (separator (read (current-buffer)))
1108 (group (read (current-buffer)))) 1108 (group (read (current-buffer))))
1109 (unless (member '%NoSelect flags) 1109 (unless (member '%NoSelect flags)
1110 (push (if (stringp group) 1110 (push (utf7-decode (if (stringp group)
1111 group 1111 group
1112 (format "%s" group)) 1112 (format "%s" group)) t)
1113 groups)))) 1113 groups))))
1114 (nreverse groups))) 1114 (nreverse groups)))
1115 1115
@@ -1168,7 +1168,7 @@ textual parts.")
1168 (nnimap-get-groups))) 1168 (nnimap-get-groups)))
1169 (unless (assoc group nnimap-current-infos) 1169 (unless (assoc group nnimap-current-infos)
1170 ;; Insert dummy numbers here -- they don't matter. 1170 ;; Insert dummy numbers here -- they don't matter.
1171 (insert (format "%S 0 1 y\n" group)))) 1171 (insert (format "%S 0 1 y\n" (utf7-encode group)))))
1172 t))) 1172 t)))
1173 1173
1174(deffoo nnimap-retrieve-group-data-early (server infos) 1174(deffoo nnimap-retrieve-group-data-early (server infos)
@@ -1566,7 +1566,7 @@ textual parts.")
1566 (articles &optional limit force-new dependencies)) 1566 (articles &optional limit force-new dependencies))
1567 1567
1568(deffoo nnimap-request-thread (header &optional group server) 1568(deffoo nnimap-request-thread (header &optional group server)
1569 (if gnus-refer-thread-use-nnir 1569 (if gnus-refer-thread-use-nnir
1570 (nnir-search-thread header) 1570 (nnir-search-thread header)
1571 (when (nnimap-possibly-change-group group server) 1571 (when (nnimap-possibly-change-group group server)
1572 (let* ((cmd (nnimap-make-thread-query header)) 1572 (let* ((cmd (nnimap-make-thread-query header))
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el
index e6420a4d7bb..d35e6560e71 100644
--- a/lisp/gnus/nnir.el
+++ b/lisp/gnus/nnir.el
@@ -767,11 +767,18 @@ Add an entry here when adding a new search engine.")
767(deffoo nnir-warp-to-article () 767(deffoo nnir-warp-to-article ()
768 (let* ((cur (if (> (gnus-summary-article-number) 0) 768 (let* ((cur (if (> (gnus-summary-article-number) 0)
769 (gnus-summary-article-number) 769 (gnus-summary-article-number)
770 (error "This is not a real article."))) 770 (error "This is not a real article")))
771 (gnus-newsgroup-name (nnir-article-group cur)) 771 (backend-article-group (nnir-article-group cur))
772 (backend-number (nnir-article-number cur))) 772 (backend-article-number (nnir-article-number cur))
773 (gnus-summary-read-group-1 gnus-newsgroup-name t t gnus-summary-buffer 773 (quit-config (gnus-ephemeral-group-p gnus-newsgroup-name)))
774 nil (list backend-number)))) 774 ;; first exit from the nnir summary buffer.
775 (gnus-summary-exit)
776 ;; and if the nnir summary buffer in turn came from another
777 ;; summary buffer we have to clean that summary up too.
778 (when (eq (cdr quit-config) 'summary)
779 (gnus-summary-exit))
780 (gnus-summary-read-group-1 backend-article-group t t nil
781 nil (list backend-article-number))))
775 782
776(nnoo-define-skeleton nnir) 783(nnoo-define-skeleton nnir)
777 784
@@ -1659,7 +1666,8 @@ server is of form 'backend:name'."
1659 (cons 'server (gnus-method-to-server 1666 (cons 'server (gnus-method-to-server
1660 (gnus-find-method-for-group 1667 (gnus-find-method-for-group
1661 gnus-newsgroup-name)))))) 1668 gnus-newsgroup-name))))))
1662 (gnus-group-make-nnir-group nil parm))) 1669 (gnus-group-make-nnir-group nil parm)
1670 (gnus-summary-goto-subject (gnus-id-to-article (mail-header-id header)))))
1663 1671
1664;; unused? 1672;; unused?
1665(defun nnir-artlist-groups (artlist) 1673(defun nnir-artlist-groups (artlist)
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 258f9be9237..31a4fbaef4d 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1028,45 +1028,45 @@ subshells can nest."
1028 1028
1029(defun sh-font-lock-paren (start) 1029(defun sh-font-lock-paren (start)
1030 (unless (nth 8 (syntax-ppss)) 1030 (unless (nth 8 (syntax-ppss))
1031 (save-excursion 1031 (save-excursion
1032 (goto-char start) 1032 (goto-char start)
1033 ;; Skip through all patterns 1033 ;; Skip through all patterns
1034 (while 1034 (while
1035 (progn 1035 (progn
1036 (while 1036 (while
1037 (progn 1037 (progn
1038 (forward-comment (- (point-max))) 1038 (forward-comment (- (point-max)))
1039 (when (and (eolp) (sh-is-quoted-p (point))) 1039 (when (and (eolp) (sh-is-quoted-p (point)))
1040 (forward-char -1) 1040 (forward-char -1)
1041 t))) 1041 t)))
1042 ;; Skip through one pattern 1042 ;; Skip through one pattern
1043 (while 1043 (while
1044 (or (/= 0 (skip-syntax-backward "w_")) 1044 (or (/= 0 (skip-syntax-backward "w_"))
1045 (/= 0 (skip-chars-backward "-$=?[]*@/\\\\")) 1045 (/= 0 (skip-chars-backward "-$=?[]*@/\\\\"))
1046 (and (sh-is-quoted-p (1- (point))) 1046 (and (sh-is-quoted-p (1- (point)))
1047 (goto-char (- (point) 2))) 1047 (goto-char (- (point) 2)))
1048 (when (memq (char-before) '(?\" ?\' ?\})) 1048 (when (memq (char-before) '(?\" ?\' ?\}))
1049 (condition-case nil (progn (backward-sexp 1) t) 1049 (condition-case nil (progn (backward-sexp 1) t)
1050 (error nil))))) 1050 (error nil)))))
1051 ;; Patterns can be preceded by an open-paren (Bug#1320). 1051 ;; Patterns can be preceded by an open-paren (Bug#1320).
1052 (if (eq (char-before (point)) ?\() 1052 (if (eq (char-before (point)) ?\()
1053 (backward-char 1)) 1053 (backward-char 1))
1054 (while (progn 1054 (while (progn
1055 (forward-comment (- (point-max))) 1055 (forward-comment (- (point-max)))
1056 ;; Maybe we've bumped into an escaped newline. 1056 ;; Maybe we've bumped into an escaped newline.
1057 (sh-is-quoted-p (point))) 1057 (sh-is-quoted-p (point)))
1058 (backward-char 1)) 1058 (backward-char 1))
1059 (when (eq (char-before) ?|) 1059 (when (eq (char-before) ?|)
1060 (backward-char 1) t))) 1060 (backward-char 1) t)))
1061 (when (progn (backward-char 2) 1061 (when (progn (backward-char 2)
1062 (if (> start (line-end-position)) 1062 (if (> start (line-end-position))
1063 (put-text-property (point) (1+ start) 1063 (put-text-property (point) (1+ start)
1064 'syntax-multiline t)) 1064 'syntax-multiline t))
1065 ;; FIXME: The `in' may just be a random argument to 1065 ;; FIXME: The `in' may just be a random argument to
1066 ;; a normal command rather than the real `in' keyword. 1066 ;; a normal command rather than the real `in' keyword.
1067 ;; I.e. we should look back to try and find the 1067 ;; I.e. we should look back to try and find the
1068 ;; corresponding `case'. 1068 ;; corresponding `case'.
1069 (and (looking-at ";[;&]\\|in") 1069 (and (looking-at ";[;&]\\|\\_<in")
1070 ;; ";; esac )" is a case that looks like a case-pattern 1070 ;; ";; esac )" is a case that looks like a case-pattern
1071 ;; but it's really just a close paren after a case 1071 ;; but it's really just a close paren after a case
1072 ;; statement. I.e. if we skipped over `esac' just now, 1072 ;; statement. I.e. if we skipped over `esac' just now,
diff --git a/lisp/xwidget.el b/lisp/xwidget.el
index 0c6208f59ec..52e5dd34d40 100644
--- a/lisp/xwidget.el
+++ b/lisp/xwidget.el
@@ -79,7 +79,7 @@ defaults to the string looking like a url around the cursor position."
79 79
80(defmacro xwidget-image-mode-navigation-adaptor (fn) 80(defmacro xwidget-image-mode-navigation-adaptor (fn)
81 `(lambda () (interactive) 81 `(lambda () (interactive)
82 (flet ((image-display-size (spec &optional pixels frame) (xwidget-image-display-size spec))) 82 (flet ((image-display-size (spec) (xwidget-image-display-size spec)))
83 (funcall ,fn)))) 83 (funcall ,fn))))
84 84
85 85
diff --git a/src/ChangeLog b/src/ChangeLog
index 3717924ff68..7c043f6d087 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-08-03 Paul Eggert <eggert@cs.ucla.edu>
2
3 * xdisp.c (compute_display_string_pos): Remove unused local.
4
12011-08-02 Eli Zaretskii <eliz@gnu.org> 52011-08-02 Eli Zaretskii <eliz@gnu.org>
2 6
3 Fix slow cursor motion and scrolling in large buffers with 7 Fix slow cursor motion and scrolling in large buffers with
diff --git a/src/xdisp.c b/src/xdisp.c
index e7c3ac301ba..6f871903ed5 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3168,7 +3168,6 @@ compute_display_string_pos (struct text_pos *position,
3168 EMACS_INT lim = 3168 EMACS_INT lim =
3169 (charpos < eob - MAX_DISP_SCAN) ? charpos + MAX_DISP_SCAN : eob; 3169 (charpos < eob - MAX_DISP_SCAN) ? charpos + MAX_DISP_SCAN : eob;
3170 struct text_pos tpos; 3170 struct text_pos tpos;
3171 struct buffer *b;
3172 3171
3173 *disp_prop_p = 1; 3172 *disp_prop_p = 1;
3174 3173
diff --git a/src/xwidget.c b/src/xwidget.c
index 08b16bbbc35..1a3e76dd4a2 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -614,7 +614,7 @@ x_draw_xwidget_glyph_string (struct glyph_string *s)
614 int y = s->y + (s->height / 2) - (xww->height / 2); 614 int y = s->y + (s->height / 2) - (xww->height / 2);
615 int moved=0; 615 int moved=0;
616 616
617 if (xv == NULL){ 617 if (xv == NULL || xv->initialized == 0){
618 /* Views must be initialized once(only once). 618 /* Views must be initialized once(only once).
619 We do it here in the display loop because there is no other time to know things like 619 We do it here in the display loop because there is no other time to know things like
620 window placement etc. 620 window placement etc.