aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2006-02-01 02:04:15 +0000
committerKaroly Lorentey2006-02-01 02:04:15 +0000
commiteb2bfdae0a1b6579908f072ab57aec0d80d6c6ec (patch)
tree2abdd13c797be8b59fa9cbd25de93db07ead9ca9
parent55187be10d911cb5c0b41b6a64b5e9edb28ae60a (diff)
parent4cdcdcc9ce7ba9f8644432e755a450b1b62b522a (diff)
downloademacs-eb2bfdae0a1b6579908f072ab57aec0d80d6c6ec.tar.gz
emacs-eb2bfdae0a1b6579908f072ab57aec0d80d6c6ec.zip
Merged from
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-31 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-503
-rw-r--r--lisp/ChangeLog21
-rw-r--r--lisp/ediff-mult.el14
-rw-r--r--lisp/emacs-lisp/cl.el3
-rw-r--r--lisp/gnus/ChangeLog50
-rw-r--r--lisp/image-mode.el13
-rw-r--r--lisp/subr.el6
-rw-r--r--lisp/thumbs.el16
-rw-r--r--lisp/window.el32
-rw-r--r--src/ChangeLog9
-rw-r--r--src/data.c3
-rw-r--r--src/window.c6
11 files changed, 106 insertions, 67 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f301c54a609..5a03a2e8502 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,16 @@
12006-01-30 Chong Yidong <cyd@stupidchicken.com>
2
3 * image-mode.el (image-toggle-display): Use file name if possible,
4 instead of unnecessarily allocating a (possibly huge) lisp string.
5
62006-01-30 John Paul Wallington <jpw@pobox.com>
7
8 * subr.el (toplevel): Define `cl-assertion-failed' condition here
9 because the `assert' macro signals it at runtime.
10
11 * emacs-lisp/cl.el (toplevel): Remove definition of
12 `cl-assertion-failed' condition.
13
12006-01-30 Nick Roberts <nickrob@snap.net.nz> 142006-01-30 Nick Roberts <nickrob@snap.net.nz>
2 15
3 * thumbs.el (thumbs-marked-list): Make buffer-local and 16 * thumbs.el (thumbs-marked-list): Make buffer-local and
@@ -7,6 +20,14 @@
7 20
82006-01-30 Juanma Barranquero <lekktu@gmail.com> 212006-01-30 Juanma Barranquero <lekktu@gmail.com>
9 22
23 * ediff-mult.el (ediff-meta-buffer-keymap-setup-hook)
24 (ediff-before-session-group-setup-hooks)
25 (ediff-default-filtering-regexp, ediff-meta-mark-equal-files):
26 Fix typos in docstrings.
27
28 * window.el (bw-dir, bw-eqdir, balance-windows)
29 (split-window-keep-point): Fix typos in docstrings.
30
10 * textmodes/org.el (org-allow-space-in-links, org-closed-string) 31 * textmodes/org.el (org-allow-space-in-links, org-closed-string)
11 (org-quote-string, org-calendar-to-agenda-key) 32 (org-quote-string, org-calendar-to-agenda-key)
12 (org-agenda-sorting-strategy, org-agenda-use-time-grid) 33 (org-agenda-sorting-strategy, org-agenda-use-time-grid)
diff --git a/lisp/ediff-mult.el b/lisp/ediff-mult.el
index 532b491adfa..f4ad4f1e612 100644
--- a/lisp/ediff-mult.el
+++ b/lisp/ediff-mult.el
@@ -176,7 +176,7 @@ directories.")
176 176
177(defcustom ediff-default-filtering-regexp nil 177(defcustom ediff-default-filtering-regexp nil
178 "The default regular expression used as a filename filter in multifile comparisons. 178 "The default regular expression used as a filename filter in multifile comparisons.
179Should be a sexp. For instance (car ediff-filtering-regexp-history) or nil." 179Should be a sexp. For instance (car ediff-filtering-regexp-history) or nil."
180 :type 'sexp 180 :type 'sexp
181 :group 'ediff-mult) 181 :group 'ediff-mult)
182 182
@@ -219,9 +219,9 @@ This can be toggled with `ediff-toggle-filename-truncation'."
219 219
220(defcustom ediff-before-session-group-setup-hooks nil 220(defcustom ediff-before-session-group-setup-hooks nil
221 "*Hooks to run before Ediff arranges the window for group-level operations. 221 "*Hooks to run before Ediff arranges the window for group-level operations.
222It is used by commands such as ediff-directories. 222It is used by commands such as `ediff-directories'.
223This hook can be used to save the previous window config, which can be restored 223This hook can be used to save the previous window config, which can be restored
224on ediff-quit, ediff-suspend, or ediff-quit-session-group-hook." 224on `ediff-quit', `ediff-suspend', or `ediff-quit-session-group-hook'."
225 :type 'hook 225 :type 'hook
226 :group 'ediff-hook) 226 :group 'ediff-hook)
227(defcustom ediff-after-session-group-setup-hook nil 227(defcustom ediff-after-session-group-setup-hook nil
@@ -242,7 +242,7 @@ ediff-directories, is run."
242 :type 'hook 242 :type 'hook
243 :group 'ediff-mult) 243 :group 'ediff-mult)
244(defcustom ediff-meta-buffer-keymap-setup-hook nil 244(defcustom ediff-meta-buffer-keymap-setup-hook nil
245 "*Hooks run just after setting up the ediff-meta-buffer-map. 245 "*Hooks run just after setting up the `ediff-meta-buffer-map'.
246This keymap controls key bindings in the meta buffer and is a local variable. 246This keymap controls key bindings in the meta buffer and is a local variable.
247This means that you can set different bindings for different kinds of meta 247This means that you can set different bindings for different kinds of meta
248buffers." 248buffers."
@@ -363,7 +363,7 @@ buffers."
363 (file-directory-p (ediff-get-session-objC-name session-info)) t))) 363 (file-directory-p (ediff-get-session-objC-name session-info)) t)))
364 364
365;; set up the keymap in the meta buffer 365;; set up the keymap in the meta buffer
366(defun ediff-setup-meta-map() 366(defun ediff-setup-meta-map ()
367 (setq ediff-meta-buffer-map (make-sparse-keymap)) 367 (setq ediff-meta-buffer-map (make-sparse-keymap))
368 (suppress-keymap ediff-meta-buffer-map) 368 (suppress-keymap ediff-meta-buffer-map)
369 (define-key ediff-meta-buffer-map "q" 'ediff-quit-meta-buffer) 369 (define-key ediff-meta-buffer-map "q" 'ediff-quit-meta-buffer)
@@ -2332,8 +2332,8 @@ If this is a session registry buffer then just bury it."
2332 "Run through the session list and mark identical files. 2332 "Run through the session list and mark identical files.
2333This is used only for sessions that involve 2 or 3 files at the same time. 2333This is used only for sessions that involve 2 or 3 files at the same time.
2334ACTION is an optional argument that can be ?h, ?m, ?=, to mark for hiding, mark 2334ACTION is an optional argument that can be ?h, ?m, ?=, to mark for hiding, mark
2335for operation, or simply indicate which are equal files. If it is nil, then 2335for operation, or simply indicate which are equal files. If it is nil, then
2336last-command-char is used to decide which action to take." 2336`last-command-char' is used to decide which action to take."
2337 (interactive) 2337 (interactive)
2338 (if (null action) 2338 (if (null action)
2339 (setq action last-command-char)) 2339 (setq action last-command-char))
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el
index 8875366cc9c..b7cf3ad8bcc 100644
--- a/lisp/emacs-lisp/cl.el
+++ b/lisp/emacs-lisp/cl.el
@@ -580,9 +580,6 @@ If ALIST is non-nil, the new pairs are prepended to it."
580 580
581;;; Miscellaneous. 581;;; Miscellaneous.
582 582
583(put 'cl-assertion-failed 'error-conditions '(error))
584(put 'cl-assertion-failed 'error-message "Assertion failed")
585
586(defvar cl-fake-autoloads nil 583(defvar cl-fake-autoloads nil
587 "Non-nil means don't make CL functions autoload.") 584 "Non-nil means don't make CL functions autoload.")
588 585
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index fbbf7281b69..cd98afa3da5 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -122,8 +122,8 @@
122 122
1232006-01-05 Reiner Steib <Reiner.Steib@gmx.de> 1232006-01-05 Reiner Steib <Reiner.Steib@gmx.de>
124 124
125 * gnus-group.el (gnus-useful-groups): Use Gmane for ding. Use 125 * gnus-group.el (gnus-useful-groups): Use Gmane for ding.
126 nntp for bug archive. 126 Use nntp for bug archive.
127 127
1282006-01-05 Katsumi Yamaoka <yamaoka@jpl.org> 1282006-01-05 Katsumi Yamaoka <yamaoka@jpl.org>
129 129
@@ -162,7 +162,7 @@
162 * gnus-msg.el (gnus-copy-article-buffer): Remove MIME buttons 162 * gnus-msg.el (gnus-copy-article-buffer): Remove MIME buttons
163 associated with multipart/alternative parts. 163 associated with multipart/alternative parts.
164 164
1652005-12-19 Mark Plaksin <happy@mcplaksin.org> (tiny change) 1652005-12-19 Mark Plaksin <happy@mcplaksin.org> (tiny change)
166 166
167 * nnrss.el (nnrss-check-group): Put the RSS dc:subject in the 167 * nnrss.el (nnrss-check-group): Put the RSS dc:subject in the
168 article. 168 article.
@@ -235,7 +235,7 @@
235 235
2362005-12-09 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change) 2362005-12-09 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
237 237
238 * mm-decode.el (mm-display-external): Add lacked cdr. 238 * mm-decode.el (mm-display-external): Add missing cdr.
239 239
2402005-12-12 Richard M. Stallman <rms@gnu.org> 2402005-12-12 Richard M. Stallman <rms@gnu.org>
241 241
@@ -288,7 +288,7 @@
288 * nnmail.el (nnmail-fancy-expiry-target): Protect against invalid 288 * nnmail.el (nnmail-fancy-expiry-target): Protect against invalid
289 date header. 289 date header.
290 290
2912005-11-16 Boris Samorodov <bsam@ipt.ru> (tiny patch) 2912005-11-16 Boris Samorodov <bsam@ipt.ru> (tiny patch)
292 292
293 * imap.el (imap-kerberos4-open): Ignore SSL stuff. 293 * imap.el (imap-kerberos4-open): Ignore SSL stuff.
294 294
@@ -329,7 +329,7 @@
329 error. 329 error.
330 (nntp-retrieve-data): Rethrow new error condition to break out of 330 (nntp-retrieve-data): Rethrow new error condition to break out of
331 recursive call to nntp-send-authinfo. 331 recursive call to nntp-send-authinfo.
332 332
3332005-11-13 Katsumi Yamaoka <yamaoka@jpl.org> 3332005-11-13 Katsumi Yamaoka <yamaoka@jpl.org>
334 334
335 * gnus-start.el (gnus-dribble-read-file): Use make-local-variable 335 * gnus-start.el (gnus-dribble-read-file): Use make-local-variable
@@ -379,8 +379,8 @@
379 (message-insert-courtesy-copy, message-fill-address) 379 (message-insert-courtesy-copy, message-fill-address)
380 (message-fill-header, message-shorten-references) 380 (message-fill-header, message-shorten-references)
381 (message-setup-1, message-cancel-news) 381 (message-setup-1, message-cancel-news)
382 (message-forward-make-body-plain) (message-forward-make-body-mime) 382 (message-forward-make-body-plain, message-forward-make-body-mime)
383 (message-forward-make-body-mml) (message-encode-message-body) 383 (message-forward-make-body-mml, message-encode-message-body)
384 (message-forward-make-body-digest-plain) 384 (message-forward-make-body-digest-plain)
385 (message-forward-make-body-digest-mime) 385 (message-forward-make-body-digest-mime)
386 (message-use-alternative-email-as-from): Insert `hard-newline' 386 (message-use-alternative-email-as-from): Insert `hard-newline'
@@ -412,7 +412,7 @@
412 whitespace removed in revision 7.8. Use concatenated string to 412 whitespace removed in revision 7.8. Use concatenated string to
413 protect trailing whitespace. 413 protect trailing whitespace.
414 414
4152005-10-27 Jouni K Seppanen <jks@iki.fi> (tiny change) 4152005-10-27 Jouni K Seppanen <jks@iki.fi> (tiny change)
416 416
417 * nnimap.el (nnimap-search-uids-not-since-is-evil): Add variable. 417 * nnimap.el (nnimap-search-uids-not-since-is-evil): Add variable.
418 (nnimap-request-expire-articles): Use it to avoid sending 'UID 418 (nnimap-request-expire-articles): Use it to avoid sending 'UID
@@ -511,11 +511,11 @@
511 * message.el (message-expand-group): Pass the common 511 * message.el (message-expand-group): Pass the common
512 prefix substring of completion to `display-completion-list'. 512 prefix substring of completion to `display-completion-list'.
513 513
5142005-10-09 Daniel Brockman <daniel@brockman.se> 5142005-10-09 Daniel Brockman <daniel@brockman.se>
515 515
516 * format-spec.el (format-spec): Propagate text properties of % spec. 516 * format-spec.el (format-spec): Propagate text properties of % spec.
517 517
5182005-01-21 Derek Atkins <warlord@MIT.EDU> (tiny change) 5182005-01-21 Derek Atkins <warlord@MIT.EDU> (tiny change)
519 519
520 * pgg-pgp.el (pgg-pgp-decrypt-region): Use passphrase cache. 520 * pgg-pgp.el (pgg-pgp-decrypt-region): Use passphrase cache.
521 521
@@ -1777,11 +1777,11 @@
1777 1777
1778 * nnimap.el (nnimap-retrieve-headers-from-server): Fix last change. 1778 * nnimap.el (nnimap-retrieve-headers-from-server): Fix last change.
1779 1779
17802005-03-10 Arne J,Ax(Brgensen <arne@arnested.dk> (tiny change) 17802005-03-10 Arne J,Ax(Brgensen <arne@arnested.dk> (tiny change)
1781 1781
1782 * nnimap.el (nnimap-retrieve-headers-from-server): Fix off-by-one flaw. 1782 * nnimap.el (nnimap-retrieve-headers-from-server): Fix off-by-one flaw.
1783 1783
17842005-03-08 Bjorn Solberg <bjorn_ding@hekneby.org> (tiny change) 17842005-03-08 Bjorn Solberg <bjorn_ding@hekneby.org> (tiny change)
1785 1785
1786 * nnimap.el (nnimap-retrieve-headers-from-server): Sort NOV 1786 * nnimap.el (nnimap-retrieve-headers-from-server): Sort NOV
1787 buffer (since IMAP server might return FETCH response out of 1787 buffer (since IMAP server might return FETCH response out of
@@ -2352,7 +2352,7 @@
2352 2352
2353 * legacy-gnus-agent.el 2353 * legacy-gnus-agent.el
2354 (gnus-agent-convert-to-compressed-agentview-prompt): 2354 (gnus-agent-convert-to-compressed-agentview-prompt):
2355 New function. Used internally to only display 'gnus converting 2355 New function. Used internally to only display 'gnus converting
2356 files' message when actually necessary. 2356 files' message when actually necessary.
2357 2357
2358 * gnus-sum.el: Remove (require 'gnus-agent) as required 2358 * gnus-sum.el: Remove (require 'gnus-agent) as required
@@ -2369,7 +2369,7 @@
2369 (gnus-agent-unfetch-articles): New function. 2369 (gnus-agent-unfetch-articles): New function.
2370 (gnus-agent-fetch-headers): Use gnus-agent-braid-nov to validate 2370 (gnus-agent-fetch-headers): Use gnus-agent-braid-nov to validate
2371 article numbers even when local .overview file is missing. 2371 article numbers even when local .overview file is missing.
2372 (gnus-agent-read-article-number): New function. Only accepts 2372 (gnus-agent-read-article-number): New function. Only accepts
2373 27-bit article numbers. 2373 27-bit article numbers.
2374 (gnus-agent-copy-nov-line, gnus-agent-uncached-articles): 2374 (gnus-agent-copy-nov-line, gnus-agent-uncached-articles):
2375 Use gnus-agent-read-article-number. 2375 Use gnus-agent-read-article-number.
@@ -2465,12 +2465,12 @@
2465 * gnus-agent.el (gnus-agent-read-agentview): Add a missing arg to 2465 * gnus-agent.el (gnus-agent-read-agentview): Add a missing arg to
2466 error. 2466 error.
2467 2467
24682004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> 24682004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
2469 2469
2470 * gnus-start.el (gnus-convert-old-newsrc): Only write the conversion 2470 * gnus-start.el (gnus-convert-old-newsrc): Only write the conversion
2471 message to newsrc-dribble when an actual conversion is performed. 2471 message to newsrc-dribble when an actual conversion is performed.
2472 2472
24732004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> 24732004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
2474 2474
2475 * gnus-agent.el (gnus-agent-read-local): 2475 * gnus-agent.el (gnus-agent-read-local):
2476 Bind nnheader-file-coding-system to gnus-agent-file-coding-system to 2476 Bind nnheader-file-coding-system to gnus-agent-file-coding-system to
@@ -2479,9 +2479,9 @@
2479 coding-system-for-write, as the with-temp-file macro first prints 2479 coding-system-for-write, as the with-temp-file macro first prints
2480 to a buffer then saves the buffer. 2480 to a buffer then saves the buffer.
2481 2481
24822004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com> 24822004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
2483 2483
2484 * legacy-gnus-agent.el (): New. Provides converters that are only 2484 * legacy-gnus-agent.el (): New. Provides converters that are only
2485 loaded when gnus-convert-old-newsrc needs to call them. 2485 loaded when gnus-convert-old-newsrc needs to call them.
2486 2486
2487 * gnus-agent.el (gnus-agent-read-agentview): Remove support for 2487 * gnus-agent.el (gnus-agent-read-agentview): Remove support for
@@ -2499,7 +2499,7 @@
2499 should be protected from potentially irreversable changes by the 2499 should be protected from potentially irreversable changes by the
2500 function. 2500 function.
2501 2501
25022004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com> 25022004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
2503 2503
2504 * gnus-int.el (gnus-request-accept-article): Inform the agent that 2504 * gnus-int.el (gnus-request-accept-article): Inform the agent that
2505 articles are being added to a group. 2505 articles are being added to a group.
@@ -2512,7 +2512,7 @@
2512 (gnus-agent-regenerate-group): The REREAD parameter can now be a 2512 (gnus-agent-regenerate-group): The REREAD parameter can now be a
2513 list of articles that will be marked as unread. 2513 list of articles that will be marked as unread.
2514 2514
25152004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> 25152004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
2516 2516
2517 * gnus-range.el (gnus-sorted-range-intersection): Now accepts 2517 * gnus-range.el (gnus-sorted-range-intersection): Now accepts
2518 single-interval range of the form (min . max). Previously the 2518 single-interval range of the form (min . max). Previously the
@@ -2524,18 +2524,18 @@
2524 * gnus-sum.el (gnus-summary-highlight-line): Articles stored in 2524 * gnus-sum.el (gnus-summary-highlight-line): Articles stored in
2525 the cache, but not the agent, now appear with their usual face. 2525 the cache, but not the agent, now appear with their usual face.
2526 2526
25272004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> 25272004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
2528 2528
2529 * gnus-sum.el (gnus-adjust-marks): Now correctly handles a list of 2529 * gnus-sum.el (gnus-adjust-marks): Now correctly handles a list of
2530 marks consisting of a single range {for example, (3 . 5)} rather 2530 marks consisting of a single range {for example, (3 . 5)} rather
2531 than a list of a single range { ((3 . 5)) }. 2531 than a list of a single range { ((3 . 5)) }.
2532 2532
25332004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> 25332004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
2534 2534
2535 * gnus-sum.el (gnus-adjust-marks): Avoid splicing null INTO the 2535 * gnus-sum.el (gnus-adjust-marks): Avoid splicing null INTO the
2536 uncompressed list. 2536 uncompressed list.
2537 2537
25382004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> 25382004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
2539 2539
2540 * gnus-draft.el (gnus-group-send-queue): Pass the group name 2540 * gnus-draft.el (gnus-group-send-queue): Pass the group name
2541 "nndraft:queue" along to gnus-draft-send. 2541 "nndraft:queue" along to gnus-draft-send.
@@ -3337,7 +3337,7 @@
3337 * gnus-msg.el (gnus-summary-followup-with-original): 3337 * gnus-msg.el (gnus-summary-followup-with-original):
3338 Document yanking of region when active. 3338 Document yanking of region when active.
3339 3339
33402004-04-13 Kevin Greiner <kgreiner@xpediantsolutions.com> 33402004-04-13 Kevin Greiner <kgreiner@xpediantsolutions.com>
3341 3341
3342 * gnus-agent.el: Merged 7.3 through 7.7 updates into branch. 3342 * gnus-agent.el: Merged 7.3 through 7.7 updates into branch.
3343 Revision 7.2 changes excluded to maintain compatibility with all 3343 Revision 7.2 changes excluded to maintain compatibility with all
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 67d1bcee995..3c0544edf89 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -137,11 +137,14 @@ and showing the image as an image."
137 (message "Repeat this command to go back to displaying the image"))) 137 (message "Repeat this command to go back to displaying the image")))
138 ;; Turn the image data into a real image, but only if the whole file 138 ;; Turn the image data into a real image, but only if the whole file
139 ;; was inserted 139 ;; was inserted
140 (let* ((data 140 (let* ((image
141 (string-make-unibyte 141 (if (and (buffer-file-name)
142 (buffer-substring-no-properties (point-min) (point-max)))) 142 (not (buffer-modified-p)))
143 (image 143 (create-image (buffer-file-name))
144 (create-image data nil t)) 144 (create-image
145 (string-make-unibyte
146 (buffer-substring-no-properties (point-min) (point-max)))
147 nil t)))
145 (props 148 (props
146 `(display ,image 149 `(display ,image
147 intangible ,image 150 intangible ,image
diff --git a/lisp/subr.el b/lisp/subr.el
index 1433b4c0dfd..b97ed1ba566 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1831,6 +1831,12 @@ mode.")
1831This variable is meaningful on MS-DOG and Windows NT. 1831This variable is meaningful on MS-DOG and Windows NT.
1832On those systems, it is automatically local in every buffer. 1832On those systems, it is automatically local in every buffer.
1833On other systems, this variable is normally always nil.") 1833On other systems, this variable is normally always nil.")
1834
1835;; The `assert' macro from the cl package signals
1836;; `cl-assertion-failed' at runtime so always define it.
1837(put 'cl-assertion-failed 'error-conditions '(error))
1838(put 'cl-assertion-failed 'error-message "Assertion failed")
1839
1834 1840
1835;;;; Misc. useful functions. 1841;;;; Misc. useful functions.
1836 1842
diff --git a/lisp/thumbs.el b/lisp/thumbs.el
index 9999dd72812..bcab502b0f4 100644
--- a/lisp/thumbs.el
+++ b/lisp/thumbs.el
@@ -174,6 +174,8 @@ this value can let another user see some of your images."
174 174
175(defvar thumbs-marked-list nil 175(defvar thumbs-marked-list nil
176 "List of marked files.") 176 "List of marked files.")
177(make-variable-buffer-local 'thumbs-marked-list)
178(put 'thumbs-marked-list 'permanent-local t)
177 179
178(defalias 'thumbs-gensym 180(defalias 'thumbs-gensym
179 (if (fboundp 'gensym) 181 (if (fboundp 'gensym)
@@ -334,9 +336,9 @@ smaller according to whether INCREMENT is 1 or -1."
334 ((string-match ".*\\.tiff?\\'" img) 'tiff))) 336 ((string-match ".*\\.tiff?\\'" img) 'tiff)))
335 337
336(defun thumbs-file-size (img) 338(defun thumbs-file-size (img)
337 (let ((i (image-size (find-image `((:type ,(thumbs-image-type img) :file ,img))) t))) 339 (let ((i (image-size
338 (concat (number-to-string (round (car i))) 340 (find-image `((:type ,(thumbs-image-type img) :file ,img))) t)))
339 "x" 341 (concat (number-to-string (round (car i))) "x"
340 (number-to-string (round (cdr i)))))) 342 (number-to-string (round (cdr i))))))
341 343
342;;;###autoload 344;;;###autoload
@@ -366,7 +368,8 @@ If MARKED is non-nil, the image is marked."
366 (thumbs-make-thumb img) 'jpeg thumbs-relief marked) 368 (thumbs-make-thumb img) 'jpeg thumbs-relief marked)
367 (add-text-properties (1- (point)) (point) 369 (add-text-properties (1- (point)) (point)
368 `(thumb-image-file ,img 370 `(thumb-image-file ,img
369 help-echo ,(file-name-nondirectory img)))) 371 help-echo ,(file-name-nondirectory img)
372 rear-nonsticky help-echo)))
370 373
371(defun thumbs-do-thumbs-insertion (list) 374(defun thumbs-do-thumbs-insertion (list)
372 "Insert all thumbnails into thumbs buffer." 375 "Insert all thumbnails into thumbs buffer."
@@ -488,7 +491,7 @@ Open another window."
488 (let (list) 491 (let (list)
489 (goto-char (point-min)) 492 (goto-char (point-min))
490 (while (not (eobp)) 493 (while (not (eobp))
491 (unless (= 0 (mod (point) (1+ thumbs-per-line))) 494 (unless (eolp)
492 (if (thumbs-current-image) 495 (if (thumbs-current-image)
493 (push (cons (point-marker) 496 (push (cons (point-marker)
494 (thumbs-current-image)) 497 (thumbs-current-image))
@@ -774,8 +777,7 @@ ACTION and ARG should be a valid convert command."
774(define-derived-mode thumbs-mode 777(define-derived-mode thumbs-mode
775 fundamental-mode "thumbs" 778 fundamental-mode "thumbs"
776 "Preview images in a thumbnails buffer" 779 "Preview images in a thumbnails buffer"
777 (setq buffer-read-only t) 780 (setq buffer-read-only t))
778 (set (make-local-variable 'thumbs-marked-list) nil))
779 781
780(defvar thumbs-view-image-mode-map 782(defvar thumbs-view-image-mode-map
781 (let ((map (make-sparse-keymap))) 783 (let ((map (make-sparse-keymap)))
diff --git a/lisp/window.el b/lisp/window.el
index 6cb553c3799..917edaac57f 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -297,24 +297,24 @@ then the smallest tree containing that window is returned."
297 297
298;;; Window or object edges 298;;; Window or object edges
299 299
300(defun bw-l(obj) 300(defun bw-l (obj)
301 "Left edge of OBJ." 301 "Left edge of OBJ."
302 (if (windowp obj) (nth 0 (window-edges obj)) (cdr (assq 'l obj)))) 302 (if (windowp obj) (nth 0 (window-edges obj)) (cdr (assq 'l obj))))
303(defun bw-t(obj) 303(defun bw-t (obj)
304 "Top edge of OBJ." 304 "Top edge of OBJ."
305 (if (windowp obj) (nth 1 (window-edges obj)) (cdr (assq 't obj)))) 305 (if (windowp obj) (nth 1 (window-edges obj)) (cdr (assq 't obj))))
306(defun bw-r(obj) 306(defun bw-r (obj)
307 "Right edge of OBJ." 307 "Right edge of OBJ."
308 (if (windowp obj) (nth 2 (window-edges obj)) (cdr (assq 'r obj)))) 308 (if (windowp obj) (nth 2 (window-edges obj)) (cdr (assq 'r obj))))
309(defun bw-b(obj) 309(defun bw-b (obj)
310 "Bottom edge of OBJ." 310 "Bottom edge of OBJ."
311 (if (windowp obj) (nth 3 (window-edges obj)) (cdr (assq 'b obj)))) 311 (if (windowp obj) (nth 3 (window-edges obj)) (cdr (assq 'b obj))))
312 312
313;;; Split directions 313;;; Split directions
314 314
315(defun bw-dir(obj) 315(defun bw-dir (obj)
316 "Return window split tree direction if OBJ. 316 "Return window split tree direction if OBJ.
317If OBJ is a window return 'both. If it is a window split tree 317If OBJ is a window return 'both. If it is a window split tree
318then return its direction." 318then return its direction."
319 (if (symbolp obj) 319 (if (symbolp obj)
320 obj 320 obj
@@ -325,10 +325,10 @@ then return its direction."
325 (error "Can't find dir in %s" obj)) 325 (error "Can't find dir in %s" obj))
326 dir)))) 326 dir))))
327 327
328(defun bw-eqdir(obj1 obj2) 328(defun bw-eqdir (obj1 obj2)
329 "Return t if window split tree directions are equal. 329 "Return t if window split tree directions are equal.
330OBJ1 and OBJ2 should be either windows or window split trees in 330OBJ1 and OBJ2 should be either windows or window split trees in
331our format. The directions returned by `bw-dir' are compared and 331our format. The directions returned by `bw-dir' are compared and
332t is returned if they are `eq' or one of them is 'both." 332t is returned if they are `eq' or one of them is 'both."
333 (let ((dir1 (bw-dir obj1)) 333 (let ((dir1 (bw-dir obj1))
334 (dir2 (bw-dir obj2))) 334 (dir2 (bw-dir obj2)))
@@ -338,7 +338,7 @@ t is returned if they are `eq' or one of them is 'both."
338 338
339;;; Building split tree 339;;; Building split tree
340 340
341(defun bw-refresh-edges(obj) 341(defun bw-refresh-edges (obj)
342 "Refresh the edge information of OBJ and return OBJ." 342 "Refresh the edge information of OBJ and return OBJ."
343 (unless (windowp obj) 343 (unless (windowp obj)
344 (let ((childs (cdr (assq 'childs obj))) 344 (let ((childs (cdr (assq 'childs obj)))
@@ -364,12 +364,12 @@ t is returned if they are `eq' or one of them is 'both."
364 364
365;;; Balance windows 365;;; Balance windows
366 366
367(defun balance-windows(&optional window-or-frame) 367(defun balance-windows (&optional window-or-frame)
368 "Make windows the same heights or widths in window split subtrees. 368 "Make windows the same heights or widths in window split subtrees.
369 369
370When called non-interactively WINDOW-OR-FRAME may be either a 370When called non-interactively WINDOW-OR-FRAME may be either a
371window or a frame. It then balances the windows on the implied 371window or a frame. It then balances the windows on the implied
372frame. If the parameter is a window only the corresponding window 372frame. If the parameter is a window only the corresponding window
373subtree is balanced." 373subtree is balanced."
374 (interactive) 374 (interactive)
375 (let ( 375 (let (
@@ -383,7 +383,7 @@ subtree is balanced."
383 (when wt 383 (when wt
384 (while (not (member last-sizes tried-sizes)) 384 (while (not (member last-sizes tried-sizes))
385 (when last-sizes (setq tried-sizes (cons last-sizes tried-sizes))) 385 (when last-sizes (setq tried-sizes (cons last-sizes tried-sizes)))
386 (setq last-sizes (mapcar (lambda(w) 386 (setq last-sizes (mapcar (lambda (w)
387 (window-edges w)) 387 (window-edges w))
388 windows)) 388 windows))
389 (when (eq 'hor (bw-dir wt)) 389 (when (eq 'hor (bw-dir wt))
@@ -392,7 +392,7 @@ subtree is balanced."
392 (setq h (- (bw-b wt) (bw-t wt)))) 392 (setq h (- (bw-b wt) (bw-t wt))))
393 (bw-balance-sub wt w h))))) 393 (bw-balance-sub wt w h)))))
394 394
395(defun bw-adjust-window(window delta horizontal) 395(defun bw-adjust-window (window delta horizontal)
396 "Wrapper around `adjust-window-trailing-edge' with error checking. 396 "Wrapper around `adjust-window-trailing-edge' with error checking.
397Arguments WINDOW, DELTA and HORIZONTAL are passed on to that function." 397Arguments WINDOW, DELTA and HORIZONTAL are passed on to that function."
398 (condition-case err 398 (condition-case err
@@ -401,7 +401,7 @@ Arguments WINDOW, DELTA and HORIZONTAL are passed on to that function."
401 ;;(message "adjust: %s" (error-message-string err)) 401 ;;(message "adjust: %s" (error-message-string err))
402 ))) 402 )))
403 403
404(defun bw-balance-sub(wt w h) 404(defun bw-balance-sub (wt w h)
405 (setq wt (bw-refresh-edges wt)) 405 (setq wt (bw-refresh-edges wt))
406 (unless w (setq w (- (bw-r wt) (bw-l wt)))) 406 (unless w (setq w (- (bw-r wt) (bw-l wt))))
407 (unless h (setq h (- (bw-b wt) (bw-t wt)))) 407 (unless h (setq h (- (bw-b wt) (bw-t wt))))
@@ -434,7 +434,7 @@ This is convenient on slow terminals, but point can move strangely.
434 434
435This option applies only to `split-window-vertically' and 435This option applies only to `split-window-vertically' and
436functions that call it. `split-window' always keeps the original 436functions that call it. `split-window' always keeps the original
437point in both children," 437point in both children."
438 :type 'boolean 438 :type 'boolean
439 :group 'windows) 439 :group 'windows)
440 440
diff --git a/src/ChangeLog b/src/ChangeLog
index 4a48e9ac452..c85a6e78e73 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12006-01-30 Luc Teirlinck <teirllm@auburn.edu>
2
3 * data.c (Flistp): Doc fix.
4
52006-01-30 Juanma Barranquero <lekktu@gmail.com>
6
7 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
8 Fix typos in docstrings.
9
12006-01-28 Luc Teirlinck <teirllm@auburn.edu> 102006-01-28 Luc Teirlinck <teirllm@auburn.edu>
2 11
3 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings. 12 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
diff --git a/src/data.c b/src/data.c
index c70e3219eac..10d6a1e9eb5 100644
--- a/src/data.c
+++ b/src/data.c
@@ -275,7 +275,8 @@ DEFUN ("atom", Fatom, Satom, 1, 1, 0,
275} 275}
276 276
277DEFUN ("listp", Flistp, Slistp, 1, 1, 0, 277DEFUN ("listp", Flistp, Slistp, 1, 1, 0,
278 doc: /* Return t if OBJECT is a list. This includes nil. */) 278 doc: /* Return t if OBJECT is a list, that is, a cons cell or nil.
279Otherwise, return nil. */)
279 (object) 280 (object)
280 Lisp_Object object; 281 Lisp_Object object;
281{ 282{
diff --git a/src/window.c b/src/window.c
index dd80f629e1e..25656307648 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1831,7 +1831,7 @@ DEFUN ("other-window", Fother_window, Sother_window, 1, 2, "p",
1831All windows on current frame are arranged in a cyclic order. 1831All windows on current frame are arranged in a cyclic order.
1832This command selects the window ARG steps away in that order. 1832This command selects the window ARG steps away in that order.
1833A negative ARG moves in the opposite order. The optional second 1833A negative ARG moves in the opposite order. The optional second
1834argument ALL_FRAMES has the same meaning as in `next-window', which see. */) 1834argument ALL-FRAMES has the same meaning as in `next-window', which see. */)
1835 (arg, all_frames) 1835 (arg, all_frames)
1836 Lisp_Object arg, all_frames; 1836 Lisp_Object arg, all_frames;
1837{ 1837{
@@ -6662,7 +6662,7 @@ DEFUN ("window-vscroll", Fwindow_vscroll, Swindow_vscroll, 0, 2, 0,
6662 doc: /* Return the amount by which WINDOW is scrolled vertically. 6662 doc: /* Return the amount by which WINDOW is scrolled vertically.
6663Use the selected window if WINDOW is nil or omitted. 6663Use the selected window if WINDOW is nil or omitted.
6664Normally, value is a multiple of the canonical character height of WINDOW; 6664Normally, value is a multiple of the canonical character height of WINDOW;
6665optional second arg PIXELS_P means value is measured in pixels. */) 6665optional second arg PIXELS-P means value is measured in pixels. */)
6666 (window, pixels_p) 6666 (window, pixels_p)
6667 Lisp_Object window, pixels_p; 6667 Lisp_Object window, pixels_p;
6668{ 6668{
@@ -6692,7 +6692,7 @@ DEFUN ("set-window-vscroll", Fset_window_vscroll, Sset_window_vscroll,
6692 doc: /* Set amount by which WINDOW should be scrolled vertically to VSCROLL. 6692 doc: /* Set amount by which WINDOW should be scrolled vertically to VSCROLL.
6693WINDOW nil means use the selected window. Normally, VSCROLL is a 6693WINDOW nil means use the selected window. Normally, VSCROLL is a
6694non-negative multiple of the canonical character height of WINDOW; 6694non-negative multiple of the canonical character height of WINDOW;
6695optional third arg PIXELS_P non-nil means that VSCROLL is in pixels. 6695optional third arg PIXELS-P non-nil means that VSCROLL is in pixels.
6696If PIXELS-P is nil, VSCROLL may have to be rounded so that it 6696If PIXELS-P is nil, VSCROLL may have to be rounded so that it
6697corresponds to an integral number of pixels. The return value is the 6697corresponds to an integral number of pixels. The return value is the
6698result of this rounding. 6698result of this rounding.