diff options
| author | Stefan Monnier | 2008-12-08 16:30:43 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-12-08 16:30:43 +0000 |
| commit | bdaf166cdf3a5bcc00963fe5ca1a91fdd421f2d5 (patch) | |
| tree | 439c5982a54e008ebe78f14fdbd8e1dc60192ac8 | |
| parent | 7c19d3aedbc55c4458bd8911aaa614c0c7f2c316 (diff) | |
| download | emacs-bdaf166cdf3a5bcc00963fe5ca1a91fdd421f2d5.tar.gz emacs-bdaf166cdf3a5bcc00963fe5ca1a91fdd421f2d5.zip | |
(auto-insert): Use expand-file-name instead of concat.
Suggested by Eric Hanchrow <eric.hanchrow@gmail.com>.
| -rw-r--r-- | lisp/ChangeLog | 59 | ||||
| -rw-r--r-- | lisp/ChangeLog.12 | 27 | ||||
| -rw-r--r-- | lisp/autoinsert.el | 21 |
3 files changed, 52 insertions, 55 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9895fdbb613..1999679e5f1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-12-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * autoinsert.el (auto-insert): Use expand-file-name instead of concat. | ||
| 4 | Suggested by Eric Hanchrow <eric.hanchrow@gmail.com>. | ||
| 5 | |||
| 1 | 2008-12-06 Chong Yidong <cyd@stupidchicken.com> | 6 | 2008-12-06 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * term/xterm.el (terminal-init-xterm): Discard pending input | 8 | * term/xterm.el (terminal-init-xterm): Discard pending input |
| @@ -24,7 +29,7 @@ | |||
| 24 | 29 | ||
| 25 | 2008-12-04 Sam Steingold <sds@gnu.org> | 30 | 2008-12-04 Sam Steingold <sds@gnu.org> |
| 26 | 31 | ||
| 27 | * progmodes/compile.el (compilation-read-command): Extracted from | 32 | * progmodes/compile.el (compilation-read-command): Extract from |
| 28 | compile. | 33 | compile. |
| 29 | (compile): Use it. | 34 | (compile): Use it. |
| 30 | (recompile): Accept an optional argument to enable editing the | 35 | (recompile): Accept an optional argument to enable editing the |
| @@ -34,8 +39,8 @@ | |||
| 34 | 39 | ||
| 35 | * net/tramp.el (top): Write a message, when loading Tramp. | 40 | * net/tramp.el (top): Write a message, when loading Tramp. |
| 36 | 41 | ||
| 37 | * net/tramp-cache.el (tramp-dump-connection-properties): Polish | 42 | * net/tramp-cache.el (tramp-dump-connection-properties): |
| 38 | the check, whether to dump the data. | 43 | Polish the check, whether to dump the data. |
| 39 | 44 | ||
| 40 | 2008-12-04 Lute Kamstra <lute@gnu.org> | 45 | 2008-12-04 Lute Kamstra <lute@gnu.org> |
| 41 | 46 | ||
| @@ -269,8 +274,8 @@ | |||
| 269 | * wdired.el (wdired-finish-edit): If displaying a single file, | 274 | * wdired.el (wdired-finish-edit): If displaying a single file, |
| 270 | change dired-directory if that file was renamed. | 275 | change dired-directory if that file was renamed. |
| 271 | 276 | ||
| 272 | * emacs-lisp/byte-run.el (macro-declaration-function): Disallow | 277 | * emacs-lisp/byte-run.el (macro-declaration-function): |
| 273 | declare specs with lengths of 3 or more. | 278 | Disallow declare specs with lengths of 3 or more. |
| 274 | 279 | ||
| 275 | * dirtrack.el (dirtrack): Fix error message. | 280 | * dirtrack.el (dirtrack): Fix error message. |
| 276 | 281 | ||
| @@ -303,11 +308,11 @@ | |||
| 303 | 308 | ||
| 304 | 2008-11-29 Chong Yidong <cyd@stupidchicken.com> | 309 | 2008-11-29 Chong Yidong <cyd@stupidchicken.com> |
| 305 | 310 | ||
| 306 | * complete.el (PC-do-complete-and-exit): Use | 311 | * complete.el (PC-do-complete-and-exit): |
| 307 | minibuffer-confirm-exit-commands. | 312 | Use minibuffer-confirm-exit-commands. |
| 308 | 313 | ||
| 309 | * minibuffer.el (minibuffer-confirm-exit-commands): Add | 314 | * minibuffer.el (minibuffer-confirm-exit-commands): |
| 310 | PC-complete and PC-complete-word to the list. | 315 | Add PC-complete and PC-complete-word to the list. |
| 311 | 316 | ||
| 312 | 2008-11-29 Juanma Barranquero <lekktu@gmail.com> | 317 | 2008-11-29 Juanma Barranquero <lekktu@gmail.com> |
| 313 | 318 | ||
| @@ -376,15 +381,14 @@ | |||
| 376 | * international/characters.el: Set category 'C' to characters | 381 | * international/characters.el: Set category 'C' to characters |
| 377 | #x20000..#x2AFFF, #x2F800..#x2FFFF. | 382 | #x20000..#x2AFFF, #x2F800..#x2FFFF. |
| 378 | 383 | ||
| 379 | * loadup.el: Set inhibit-load-charset-map to t while preloading | 384 | * loadup.el: Set inhibit-load-charset-map to t while preloading files. |
| 380 | files. | ||
| 381 | 385 | ||
| 382 | 2008-11-27 Chong Yidong <cyd@stupidchicken.com> | 386 | 2008-11-27 Chong Yidong <cyd@stupidchicken.com> |
| 383 | 387 | ||
| 384 | * tool-bar.el (tool-bar-find-image-cache): Var deleted. | 388 | * tool-bar.el (tool-bar-find-image-cache): Var deleted. |
| 385 | (tool-bar-find-image): Function deleted. | 389 | (tool-bar-find-image): Function deleted. |
| 386 | (tool-bar-local-item, tool-bar-local-item-from-menu): Use | 390 | (tool-bar-local-item, tool-bar-local-item-from-menu): |
| 387 | find-image instead of tool-bar-find-image. | 391 | Use find-image instead of tool-bar-find-image. |
| 388 | (tool-bar-keymap-cache): New hash table. | 392 | (tool-bar-keymap-cache): New hash table. |
| 389 | (tool-bar-make-keymap): Use it. | 393 | (tool-bar-make-keymap): Use it. |
| 390 | (tool-bar-make-keymap-1): Move body of tool-bar-make-keymap here. | 394 | (tool-bar-make-keymap-1): Move body of tool-bar-make-keymap here. |
| @@ -493,11 +497,9 @@ | |||
| 493 | 497 | ||
| 494 | 2008-11-24 Ulf Jasper <ulf@web.de> | 498 | 2008-11-24 Ulf Jasper <ulf@web.de> |
| 495 | 499 | ||
| 496 | * net/newst-treeview.el (newsticker--treeview-current-feed): Doc | 500 | * net/newst-treeview.el (newsticker--treeview-current-feed): Docstring. |
| 497 | string. | 501 | (newsticker--treeview-item-show): Rename arg FEED to FEED-NAME-SYMBOL. |
| 498 | (newsticker--treeview-item-show): Renamed arg FEED to | 502 | (newsticker--treeview-tree-update-tag): Remove dead code. |
| 499 | FEED-NAME-SYMBOL. | ||
| 500 | (newsticker--treeview-tree-update-tag): Removed dead code. | ||
| 501 | (newsticker-treeview-update): Don't update cache. | 503 | (newsticker-treeview-update): Don't update cache. |
| 502 | (newsticker-treeview-quit): Don't save cache. | 504 | (newsticker-treeview-quit): Don't save cache. |
| 503 | (newsticker-treeview-save): Don't save cache. Use `newsticker-dir'. | 505 | (newsticker-treeview-save): Don't save cache. Use `newsticker-dir'. |
| @@ -512,9 +514,9 @@ | |||
| 512 | (newsticker-stop): Use `newsticker--cache-save'. | 514 | (newsticker-stop): Use `newsticker--cache-save'. |
| 513 | (newsticker--sentinel-work): Use `newsticker--cache-save-feed'. | 515 | (newsticker--sentinel-work): Use `newsticker--cache-save-feed'. |
| 514 | (newsticker--images-dir): New. | 516 | (newsticker--images-dir): New. |
| 515 | (newsticker--image-get, newsticker--image-sentinel): Use | 517 | (newsticker--image-get, newsticker--image-sentinel): |
| 516 | `newsticker--images-dir'. | 518 | Use `newsticker--images-dir'. |
| 517 | (newsticker--cache-save-version1): Backuped version of | 519 | (newsticker--cache-save-version1): Backup version of |
| 518 | `newsticker--cache-save'. | 520 | `newsticker--cache-save'. |
| 519 | (newsticker--cache-update): Create newsticker-dir if necessary. | 521 | (newsticker--cache-update): Create newsticker-dir if necessary. |
| 520 | (newsticker--cache-dir): New. | 522 | (newsticker--cache-dir): New. |
| @@ -524,24 +526,23 @@ | |||
| 524 | cache data.. | 526 | cache data.. |
| 525 | (newsticker--cache-read, newsticker--cache-do-read): New. | 527 | (newsticker--cache-read, newsticker--cache-do-read): New. |
| 526 | 528 | ||
| 527 | * net/newst-reader.el (newsticker--image-read): Use | 529 | * net/newst-reader.el (newsticker--image-read): |
| 528 | `newsticker--images-dir'. | 530 | Use `newsticker--images-dir'. |
| 529 | 531 | ||
| 530 | 2008-11-24 Chong Yidong <cyd@stupidchicken.com> | 532 | 2008-11-24 Chong Yidong <cyd@stupidchicken.com> |
| 531 | 533 | ||
| 532 | * files.el (confirm-nonexistent-file-or-buffer): Allow | 534 | * files.el (confirm-nonexistent-file-or-buffer): |
| 533 | `after-completion' value to request confirm only after TAB. | 535 | Allow `after-completion' value to request confirm only after TAB. |
| 534 | (confirm-nonexistent-file-or-buffer): New function. | 536 | (confirm-nonexistent-file-or-buffer): New function. |
| 535 | (read-buffer-to-switch, find-file, find-file-other-window) | 537 | (read-buffer-to-switch, find-file, find-file-other-window) |
| 536 | (find-file-other-frame, find-file-read-only) | 538 | (find-file-other-frame, find-file-read-only) |
| 537 | (find-file-read-only-other-window) | 539 | (find-file-read-only-other-window) |
| 538 | (find-file-read-only-other-frame): Use it. | 540 | (find-file-read-only-other-frame): Use it. |
| 539 | (switch-to-buffer-other-window, switch-to-buffer-other-frame): Doc | 541 | (switch-to-buffer-other-window, switch-to-buffer-other-frame): Doc fix. |
| 540 | fix. | ||
| 541 | Thanks to Alan Mackenzie for suggesting the new behavior. | 542 | Thanks to Alan Mackenzie for suggesting the new behavior. |
| 542 | 543 | ||
| 543 | * minibuffer.el (minibuffer-complete-and-exit): Change | 544 | * minibuffer.el (minibuffer-complete-and-exit): |
| 544 | `confirm-only' value of minibuffer-completion-confirm to | 545 | Change `confirm-only' value of minibuffer-completion-confirm to |
| 545 | `confirm', and handle a `confirm-after-completion' value. | 546 | `confirm', and handle a `confirm-after-completion' value. |
| 546 | 547 | ||
| 547 | 2008-11-24 Juanma Barranquero <lekktu@gmail.com> | 548 | 2008-11-24 Juanma Barranquero <lekktu@gmail.com> |
diff --git a/lisp/ChangeLog.12 b/lisp/ChangeLog.12 index 959e77b4482..092b46b4f62 100644 --- a/lisp/ChangeLog.12 +++ b/lisp/ChangeLog.12 | |||
| @@ -2109,13 +2109,13 @@ | |||
| 2109 | 2109 | ||
| 2110 | 2007-02-02 Ulf Jasper <ulf.jasper@web.de> | 2110 | 2007-02-02 Ulf Jasper <ulf.jasper@web.de> |
| 2111 | 2111 | ||
| 2112 | * net/newsticker.el (newsticker-version): Changed to "1.10". | 2112 | * net/newsticker.el (newsticker-version): Change to "1.10". |
| 2113 | (newsticker--set-customvar): Doc string. | 2113 | (newsticker--set-customvar): Doc string. |
| 2114 | (newsticker-new-item-face): Doc string. | 2114 | (newsticker-new-item-face): Doc string. |
| 2115 | (newsticker-mode): Initialize `invisibility-spec' with t. | 2115 | (newsticker-mode): Initialize `invisibility-spec' with t. |
| 2116 | (newsticker-mode-map): Added | 2116 | (newsticker-mode-map): |
| 2117 | `newsticker-mark-all-items-at-point-as-read'. | 2117 | Add `newsticker-mark-all-items-at-point-as-read'. |
| 2118 | (newsticker-menu): Added narrow-to-item and narrow-to-feed. | 2118 | (newsticker-menu): Add narrow-to-item and narrow-to-feed. |
| 2119 | (newsticker-w3m-show-inline-images): Do not call | 2119 | (newsticker-w3m-show-inline-images): Do not call |
| 2120 | `w3m-remove-image'. | 2120 | `w3m-remove-image'. |
| 2121 | (newsticker--buffer-after-w3m-insert-image): New advice for | 2121 | (newsticker--buffer-after-w3m-insert-image): New advice for |
| @@ -2130,8 +2130,7 @@ | |||
| 2130 | `newsticker-mark-item-at-point-as-read'. | 2130 | `newsticker-mark-item-at-point-as-read'. |
| 2131 | (newsticker-hide-entry): Use (t) instead of t for invisibility. | 2131 | (newsticker-hide-entry): Use (t) instead of t for invisibility. |
| 2132 | (newsticker--sentinel): Yet another xml-parser workaround. | 2132 | (newsticker--sentinel): Yet another xml-parser workaround. |
| 2133 | (newsticker--decode-iso8601-date): Bugfix for datestrings without | 2133 | (newsticker--decode-iso8601-date): Bugfix for datestrings without days. |
| 2134 | days. | ||
| 2135 | (newsticker--buffer-do-insert-text): Fix. | 2134 | (newsticker--buffer-do-insert-text): Fix. |
| 2136 | (newsticker--buffer-insert-enclosure): Fix. Length might be missing. | 2135 | (newsticker--buffer-insert-enclosure): Fix. Length might be missing. |
| 2137 | (newsticker--buffer-make-item-completely-visible): | 2136 | (newsticker--buffer-make-item-completely-visible): |
| @@ -2361,13 +2360,13 @@ | |||
| 2361 | 2360 | ||
| 2362 | 2007-01-27 Ben North <ben@redfrontdoor.org> | 2361 | 2007-01-27 Ben North <ben@redfrontdoor.org> |
| 2363 | 2362 | ||
| 2364 | * outline.el (outline-promote, outline-demote): Doc fix. Rename | 2363 | * outline.el (outline-promote, outline-demote): Doc fix. |
| 2365 | the arg CHILDREN -> WHICH. | 2364 | Rename the arg CHILDREN -> WHICH. |
| 2366 | 2365 | ||
| 2367 | 2007-01-27 Michael Albinus <michael.albinus@gmx.de> | 2366 | 2007-01-27 Michael Albinus <michael.albinus@gmx.de> |
| 2368 | 2367 | ||
| 2369 | * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set | 2368 | * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): |
| 2370 | default-directory to a sane value when calling start-process. | 2369 | Set default-directory to a sane value when calling start-process. |
| 2371 | 2370 | ||
| 2372 | 2007-01-27 Eli Zaretskii <eliz@gnu.org> | 2371 | 2007-01-27 Eli Zaretskii <eliz@gnu.org> |
| 2373 | 2372 | ||
| @@ -2532,13 +2531,12 @@ | |||
| 2532 | 2007-01-20 Eric Hanchrow <offby1@blarg.net> (tiny change) | 2531 | 2007-01-20 Eric Hanchrow <offby1@blarg.net> (tiny change) |
| 2533 | 2532 | ||
| 2534 | * progmodes/cperl-mode.el (cperl-electric-keywords): Document in | 2533 | * progmodes/cperl-mode.el (cperl-electric-keywords): Document in |
| 2535 | the doc string how to use personal abbrevs without electric | 2534 | the doc string how to use personal abbrevs without electric keywords. |
| 2536 | keywords. | ||
| 2537 | 2535 | ||
| 2538 | 2007-01-20 Alin C. Soare <alinsoar@voila.fr> (tiny change) | 2536 | 2007-01-20 Alin C. Soare <alinsoar@voila.fr> (tiny change) |
| 2539 | 2537 | ||
| 2540 | * emacs-lisp/lisp-mode.el (last-sexp-toggle-display): | 2538 | * emacs-lisp/lisp-mode.el (last-sexp-toggle-display): |
| 2541 | Fixed cursor position when toggle abbreviated display. | 2539 | Fix cursor position when toggle abbreviated display. |
| 2542 | 2540 | ||
| 2543 | 2007-01-20 Nick Roberts <nickrob@snap.net.nz> | 2541 | 2007-01-20 Nick Roberts <nickrob@snap.net.nz> |
| 2544 | 2542 | ||
| @@ -2567,8 +2565,7 @@ | |||
| 2567 | 2565 | ||
| 2568 | 2007-01-18 Bruno Haible <bruno@clisp.org> (tiny change) | 2566 | 2007-01-18 Bruno Haible <bruno@clisp.org> (tiny change) |
| 2569 | 2567 | ||
| 2570 | * info.el (Info-default-dirs): Change default info dir to | 2568 | * info.el (Info-default-dirs): Change default info dir to share/info. |
| 2571 | share/info. | ||
| 2572 | 2569 | ||
| 2573 | * paths.el (Info-default-directory-list): Ditto. | 2570 | * paths.el (Info-default-directory-list): Ditto. |
| 2574 | 2571 | ||
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el index 92a5f9f3f92..b276cc18f99 100644 --- a/lisp/autoinsert.el +++ b/lisp/autoinsert.el | |||
| @@ -343,19 +343,19 @@ Matches the visited file name against the elements of `auto-insert-alist'." | |||
| 343 | 343 | ||
| 344 | ;; Now, if we found something, do it | 344 | ;; Now, if we found something, do it |
| 345 | (and action | 345 | (and action |
| 346 | (if (stringp action) | 346 | (or (not (stringp action)) |
| 347 | (file-readable-p (concat auto-insert-directory action)) | 347 | (file-readable-p (expand-file-name |
| 348 | t) | 348 | action auto-insert-directory))) |
| 349 | (if auto-insert-query | 349 | (or (not auto-insert-query) |
| 350 | (or (if (eq auto-insert-query 'function) | 350 | (if (eq auto-insert-query 'function) |
| 351 | (eq this-command 'auto-insert)) | 351 | (eq this-command 'auto-insert)) |
| 352 | (y-or-n-p (format auto-insert-prompt desc))) | 352 | (y-or-n-p (format auto-insert-prompt desc))) |
| 353 | t) | ||
| 354 | (mapc | 353 | (mapc |
| 355 | (lambda (action) | 354 | (lambda (action) |
| 356 | (if (stringp action) | 355 | (if (stringp action) |
| 357 | (if (file-readable-p | 356 | (if (file-readable-p |
| 358 | (setq action (concat auto-insert-directory action))) | 357 | (setq action (expand-file-name |
| 358 | action auto-insert-directory))) | ||
| 359 | (insert-file-contents action)) | 359 | (insert-file-contents action)) |
| 360 | (save-window-excursion | 360 | (save-window-excursion |
| 361 | ;; make buffer visible before skeleton or function | 361 | ;; make buffer visible before skeleton or function |
| @@ -393,8 +393,7 @@ or if CONDITION had no actions, after all other CONDITIONs." | |||
| 393 | (vector action (cdr elt))))) | 393 | (vector action (cdr elt))))) |
| 394 | (if after | 394 | (if after |
| 395 | (nconc auto-insert-alist (list (cons condition action))) | 395 | (nconc auto-insert-alist (list (cons condition action))) |
| 396 | (setq auto-insert-alist (cons (cons condition action) | 396 | (push (cons condition action) auto-insert-alist))))) |
| 397 | auto-insert-alist)))))) | ||
| 398 | 397 | ||
| 399 | ;;;###autoload | 398 | ;;;###autoload |
| 400 | (define-minor-mode auto-insert-mode | 399 | (define-minor-mode auto-insert-mode |