diff options
| author | Stefan Monnier | 2010-10-18 17:02:00 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-10-18 17:02:00 -0400 |
| commit | 43f964fcf0e44c8601fe2b4304007b9893e5b5f1 (patch) | |
| tree | e8ef981140313ae8b95e24c4446590dd8b97e403 | |
| parent | 4b2d9ec26363f78d00a1b2595c7c7a5bdda262d2 (diff) | |
| download | emacs-43f964fcf0e44c8601fe2b4304007b9893e5b5f1.tar.gz emacs-43f964fcf0e44c8601fe2b4304007b9893e5b5f1.zip | |
* lisp/files.el (locate-file-completion-table): Strip non-matching elements
before checking length of list.
Fixes: debbugs:7238
| -rw-r--r-- | lisp/ChangeLog | 124 | ||||
| -rw-r--r-- | lisp/files.el | 7 |
2 files changed, 65 insertions, 66 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 30fc5c29f7b..b7a06b309cf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-10-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * files.el (locate-file-completion-table): Strip non-matching elements | ||
| 4 | before checking length of list (bug#7238). | ||
| 5 | |||
| 1 | 2010-10-18 Chong Yidong <cyd@stupidchicken.com> | 6 | 2010-10-18 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * custom.el (custom-theme-set-variables): Mark as a safe function. | 8 | * custom.el (custom-theme-set-variables): Mark as a safe function. |
| @@ -7,8 +12,8 @@ | |||
| 7 | 12 | ||
| 8 | 2010-10-17 Agustín Martín <agustin.martin@hispalinux.es> | 13 | 2010-10-17 Agustín Martín <agustin.martin@hispalinux.es> |
| 9 | 14 | ||
| 10 | * textmodes/ispell.el (ispell-aspell-find-dictionary): Fix | 15 | * textmodes/ispell.el (ispell-aspell-find-dictionary): |
| 11 | aspell data file searching (bug#7230). | 16 | Fix aspell data file searching (bug#7230). |
| 12 | 17 | ||
| 13 | 2010-10-16 Chong Yidong <cyd@stupidchicken.com> | 18 | 2010-10-16 Chong Yidong <cyd@stupidchicken.com> |
| 14 | 19 | ||
| @@ -19,12 +24,12 @@ | |||
| 19 | to the front of each variable or face widget. | 24 | to the front of each variable or face widget. |
| 20 | (custom-theme-write): Save theme settings in the correct order. | 25 | (custom-theme-write): Save theme settings in the correct order. |
| 21 | Optionally, remove saved settings from user customizations. | 26 | Optionally, remove saved settings from user customizations. |
| 22 | (custom-theme-write-variables, custom-theme-write-faces): Saved | 27 | (custom-theme-write-variables, custom-theme-write-faces): |
| 23 | only the checked widgets. | 28 | Save only the checked widgets. |
| 24 | (customize-themes): Add a link for migrating custom settings. | 29 | (customize-themes): Add a link for migrating custom settings. |
| 25 | 30 | ||
| 26 | * custom.el (custom-declare-theme, provide-theme): Use | 31 | * custom.el (custom-declare-theme, provide-theme): |
| 27 | custom-theme-name-valid-p. | 32 | Use custom-theme-name-valid-p. |
| 28 | (custom-theme-name-valid-p): Remove checks that are now | 33 | (custom-theme-name-valid-p): Remove checks that are now |
| 29 | unnecessary since themes no longer obey load-path. | 34 | unnecessary since themes no longer obey load-path. |
| 30 | 35 | ||
| @@ -36,10 +41,9 @@ | |||
| 36 | * cus-edit.el (custom-variable, custom-face): Combine the | 41 | * cus-edit.el (custom-variable, custom-face): Combine the |
| 37 | :inhibit-magic and :display-style properties into a single | 42 | :inhibit-magic and :display-style properties into a single |
| 38 | :custom-style property. | 43 | :custom-style property. |
| 39 | (custom-toggle-hide-variable, custom-toggle-hide-face): New | 44 | (custom-toggle-hide-variable, custom-toggle-hide-face): |
| 40 | functions. If hiding an edited value, save it to :shown-value. | 45 | New functions. If hiding an edited value, save it to :shown-value. |
| 41 | (custom-variable-value-create, custom-face-value-create): Use | 46 | (custom-variable-value-create, custom-face-value-create): Use them. |
| 42 | them. | ||
| 43 | (custom-magic-reset): Allow magic property to be unset. | 47 | (custom-magic-reset): Allow magic property to be unset. |
| 44 | 48 | ||
| 45 | * custom.el: Custom themes no longer use load-path. | 49 | * custom.el: Custom themes no longer use load-path. |
| @@ -69,7 +73,7 @@ | |||
| 69 | erasing. If given a THEME arg, display only the faces of that arg | 73 | erasing. If given a THEME arg, display only the faces of that arg |
| 70 | instead of custom-theme--listed-faces. | 74 | instead of custom-theme--listed-faces. |
| 71 | (custom-theme-variable-menu, custom-theme-variable-action) | 75 | (custom-theme-variable-menu, custom-theme-variable-action) |
| 72 | (custom-variable-reset-theme, custom-theme-delete-variable): Deleted. | 76 | (custom-variable-reset-theme, custom-theme-delete-variable): Delete. |
| 73 | (custom-theme-add-variable, custom-theme-add-face): Apply value | 77 | (custom-theme-add-variable, custom-theme-add-face): Apply value |
| 74 | from the theme settings, instead of the current value. | 78 | from the theme settings, instead of the current value. |
| 75 | (custom-theme-add-var-1, custom-theme-add-face-1): New functions. | 79 | (custom-theme-add-var-1, custom-theme-add-face-1): New functions. |
| @@ -93,8 +97,7 @@ | |||
| 93 | * mail/rmail.el (rmail-show-message-1): Catch an error of | 97 | * mail/rmail.el (rmail-show-message-1): Catch an error of |
| 94 | base64-decode-region and just show an error message (bug#7165). | 98 | base64-decode-region and just show an error message (bug#7165). |
| 95 | 99 | ||
| 96 | * ps-mule.el (ps-mule-font-spec-list): Delete it. Not used | 100 | * ps-mule.el (ps-mule-font-spec-list): Delete it. Not used anymore. |
| 97 | anymore. | ||
| 98 | (ps-mule-begin-job): Fix for the case that only ENCODING is set in | 101 | (ps-mule-begin-job): Fix for the case that only ENCODING is set in |
| 99 | a font-spec (bug#7197). | 102 | a font-spec (bug#7197). |
| 100 | 103 | ||
| @@ -128,11 +131,11 @@ | |||
| 128 | 131 | ||
| 129 | 2010-10-14 Jay Belanger <jay.p.belanger@gmail.com> | 132 | 2010-10-14 Jay Belanger <jay.p.belanger@gmail.com> |
| 130 | 133 | ||
| 131 | * calc/calc-alg.el (math-var): Renamed from `var'. | 134 | * calc/calc-alg.el (math-var): Rename from `var'. |
| 132 | (math-is-polynomial, math-is-poly-rec): Replace `var' | 135 | (math-is-polynomial, math-is-poly-rec): Replace `var' |
| 133 | with `math-var'. | 136 | with `math-var'. |
| 134 | 137 | ||
| 135 | * calc/calcalg2.el (math-var): Renamed from `var'. | 138 | * calc/calcalg2.el (math-var): Rename from `var'. |
| 136 | (calcFunc-table, math-scan-for-limits): Replace `var' | 139 | (calcFunc-table, math-scan-for-limits): Replace `var' |
| 137 | with `math-var'. | 140 | with `math-var'. |
| 138 | 141 | ||
| @@ -196,8 +199,8 @@ | |||
| 196 | (custom-theme-allow-multiple-selections): New option. | 199 | (custom-theme-allow-multiple-selections): New option. |
| 197 | (custom-theme-choose-mode): New major mode. | 200 | (custom-theme-choose-mode): New major mode. |
| 198 | 201 | ||
| 199 | * custom.el (custom-theme-set-variables): Remove dead code. Obey | 202 | * custom.el (custom-theme-set-variables): Remove dead code. |
| 200 | custom--inhibit-theme-enable. | 203 | Obey custom--inhibit-theme-enable. |
| 201 | (custom--inhibit-theme-enable): New var. | 204 | (custom--inhibit-theme-enable): New var. |
| 202 | (provide-theme): Obey it. | 205 | (provide-theme): Obey it. |
| 203 | (load-theme): Replace load with manual read/eval, in order to | 206 | (load-theme): Replace load with manual read/eval, in order to |
| @@ -208,8 +211,8 @@ | |||
| 208 | * cus-edit.el (custom--initialize-widget-variables): New function. | 211 | * cus-edit.el (custom--initialize-widget-variables): New function. |
| 209 | (Custom-mode): Use it. | 212 | (Custom-mode): Use it. |
| 210 | 213 | ||
| 211 | * cus-face.el (custom-theme-set-faces): Remove dead code. Obey | 214 | * cus-face.el (custom-theme-set-faces): Remove dead code. |
| 212 | custom--inhibit-theme-enable. | 215 | Obey custom--inhibit-theme-enable. |
| 213 | 216 | ||
| 214 | * help-mode.el (help-theme-def, help-theme-edit): New buttons. | 217 | * help-mode.el (help-theme-def, help-theme-edit): New buttons. |
| 215 | 218 | ||
| @@ -260,15 +263,14 @@ | |||
| 260 | (custom-available-themes): New function. | 263 | (custom-available-themes): New function. |
| 261 | (load-theme): Use it. | 264 | (load-theme): Use it. |
| 262 | 265 | ||
| 263 | * cus-edit.el (custom-face-edit-fix-value): Use | 266 | * cus-edit.el (custom-face-edit-fix-value): Use custom-fix-face-spec. |
| 264 | custom-fix-face-spec. | ||
| 265 | 267 | ||
| 266 | * custom.el (custom-push-theme): Cleanup (use cond). | 268 | * custom.el (custom-push-theme): Cleanup (use cond). |
| 267 | (disable-theme): Recompute the saved-face property. | 269 | (disable-theme): Recompute the saved-face property. |
| 268 | (custom-theme-recalc-face): Follow face alias before setting prop. | 270 | (custom-theme-recalc-face): Follow face alias before setting prop. |
| 269 | 271 | ||
| 270 | * image.el (image-checkbox-checked, image-checkbox-unchecked): New | 272 | * image.el (image-checkbox-checked, image-checkbox-unchecked): |
| 271 | variables, containing checkbox images. | 273 | New variables, containing checkbox images. |
| 272 | 274 | ||
| 273 | * startup.el (fancy-startup-tail): | 275 | * startup.el (fancy-startup-tail): |
| 274 | * wid-edit.el (checkbox): Use them. | 276 | * wid-edit.el (checkbox): Use them. |
| @@ -303,8 +305,8 @@ | |||
| 303 | 305 | ||
| 304 | * epa.el (epa-passphrase-callback-function): Display filename | 306 | * epa.el (epa-passphrase-callback-function): Display filename |
| 305 | passed as the 3rd arg. | 307 | passed as the 3rd arg. |
| 306 | * epa-file.el (epa-file-passphrase-callback-function): Pass | 308 | * epa-file.el (epa-file-passphrase-callback-function): |
| 307 | filename to epa-passphrase-callback-function. | 309 | Pass filename to epa-passphrase-callback-function. |
| 308 | 310 | ||
| 309 | 2010-10-09 Chong Yidong <cyd@stupidchicken.com> | 311 | 2010-10-09 Chong Yidong <cyd@stupidchicken.com> |
| 310 | 312 | ||
| @@ -332,8 +334,7 @@ | |||
| 332 | * cc-engine.el (c-forward-type): New &optional param | 334 | * cc-engine.el (c-forward-type): New &optional param |
| 333 | "brace-block-too". | 335 | "brace-block-too". |
| 334 | (c-forward-decl-or-cast-1): cdr of return value now indicates the | 336 | (c-forward-decl-or-cast-1): cdr of return value now indicates the |
| 335 | presence of either or both of a "struct"-like keyword and | 337 | presence of either or both of a "struct"-like keyword and "typedef". |
| 336 | "typedef". | ||
| 337 | 338 | ||
| 338 | * cc-fonts.el (c-complex-decl-matchers): Remove the heuristic | 339 | * cc-fonts.el (c-complex-decl-matchers): Remove the heuristic |
| 339 | fontification of declarators which follow a "}". | 340 | fontification of declarators which follow a "}". |
| @@ -355,8 +356,7 @@ | |||
| 355 | querying the password for. | 356 | querying the password for. |
| 356 | 357 | ||
| 357 | * ibuffer.el (ibuffer-visit-buffer): To mimick list-buffers | 358 | * ibuffer.el (ibuffer-visit-buffer): To mimick list-buffers |
| 358 | behaviour, don't bury the ibuffer buffer when visiting other | 359 | behaviour, don't bury the ibuffer buffer when visiting other buffers. |
| 359 | buffers. | ||
| 360 | 360 | ||
| 361 | 2010-10-08 Chong Yidong <cyd@stupidchicken.com> | 361 | 2010-10-08 Chong Yidong <cyd@stupidchicken.com> |
| 362 | 362 | ||
| @@ -364,12 +364,12 @@ | |||
| 364 | (custom-magic-value-create): Pad button tags with spaces. | 364 | (custom-magic-value-create): Pad button tags with spaces. |
| 365 | (custom-face-edit): New variable. | 365 | (custom-face-edit): New variable. |
| 366 | (custom-face-value-create): Determine whether to use the usual | 366 | (custom-face-value-create): Determine whether to use the usual |
| 367 | face editor here, instead of using custom-face-selected. Pass | 367 | face editor here, instead of using custom-face-selected. |
| 368 | face defaults to custom-face-edit widget. | 368 | Pass face defaults to custom-face-edit widget. |
| 369 | (custom-face-selected, custom-display-unselected): Delete widgets. | 369 | (custom-face-selected, custom-display-unselected): Delete widgets. |
| 370 | (custom-display-unselected-match): Function removed. | 370 | (custom-display-unselected-match): Function removed. |
| 371 | (custom-face-set, custom-face-mark-to-save): Accept | 371 | (custom-face-set, custom-face-mark-to-save): |
| 372 | custom-face-edit widgets as the direct widget child. | 372 | Accept custom-face-edit widgets as the direct widget child. |
| 373 | 373 | ||
| 374 | * wid-edit.el (widget--completing-widget): New var. | 374 | * wid-edit.el (widget--completing-widget): New var. |
| 375 | (widget-default-complete): Bind it when doing completion. | 375 | (widget-default-complete): Bind it when doing completion. |
| @@ -453,8 +453,8 @@ | |||
| 453 | * cus-edit.el (custom-variable, custom-face): Doc fix. | 453 | * cus-edit.el (custom-variable, custom-face): Doc fix. |
| 454 | (custom-face-edit): Add value-create attribute. | 454 | (custom-face-edit): Add value-create attribute. |
| 455 | (custom-face-edit-value-create) | 455 | (custom-face-edit-value-create) |
| 456 | (custom-face-edit-value-visibility-action): New functions. Hide | 456 | (custom-face-edit-value-visibility-action): New functions. |
| 457 | unused face attributes by default, and add a visibility toggle. | 457 | Hide unused face attributes by default, and add a visibility toggle. |
| 458 | (custom-face-edit-deactivate): Show empty values with shadow face. | 458 | (custom-face-edit-deactivate): Show empty values with shadow face. |
| 459 | (custom-face-selected): Only use this for face specs with default | 459 | (custom-face-selected): Only use this for face specs with default |
| 460 | attributes. | 460 | attributes. |
| @@ -534,10 +534,9 @@ | |||
| 534 | (tramp-handle-file-exists-p, tramp-handle-file-newer-than-file-p): | 534 | (tramp-handle-file-exists-p, tramp-handle-file-newer-than-file-p): |
| 535 | New defuns, taken from tramp-smb.el. | 535 | New defuns, taken from tramp-smb.el. |
| 536 | (tramp-coding-system-change-eol-conversion) | 536 | (tramp-coding-system-change-eol-conversion) |
| 537 | (tramp-set-process-query-on-exit-flag): Removed. | 537 | (tramp-set-process-query-on-exit-flag): Remove. |
| 538 | 538 | ||
| 539 | * net/tramp-compat.el (top): Do not check for byte-compiler | 539 | * net/tramp-compat.el (top): Do not check for byte-compiler objects. |
| 540 | objects. | ||
| 541 | (tramp-compat-coding-system-change-eol-conversion) | 540 | (tramp-compat-coding-system-change-eol-conversion) |
| 542 | (tramp-compat-set-process-query-on-exit-flag): New defuns, taken | 541 | (tramp-compat-set-process-query-on-exit-flag): New defuns, taken |
| 543 | from tramp.el. | 542 | from tramp.el. |
| @@ -546,30 +545,30 @@ | |||
| 546 | * net/tramp-gw.el: Replace `tramp-set-process-query-on-exit-flag' | 545 | * net/tramp-gw.el: Replace `tramp-set-process-query-on-exit-flag' |
| 547 | by `tramp-compat-set-process-query-on-exit-flag'. | 546 | by `tramp-compat-set-process-query-on-exit-flag'. |
| 548 | 547 | ||
| 549 | * net/tramp-imap.el (tramp-imap-file-name-handler-alist): Use | 548 | * net/tramp-imap.el (tramp-imap-file-name-handler-alist): |
| 550 | `tramp-handle-directory-files-and-attributes', | 549 | Use `tramp-handle-directory-files-and-attributes', |
| 551 | `tramp-handle-file-exists-p' and | 550 | `tramp-handle-file-exists-p' and |
| 552 | `tramp-handle-file-newer-than-file-p'. | 551 | `tramp-handle-file-newer-than-file-p'. |
| 553 | (tramp-imap-handle-file-exists-p) | 552 | (tramp-imap-handle-file-exists-p) |
| 554 | (tramp-imap-handle-file-executable-p) | 553 | (tramp-imap-handle-file-executable-p) |
| 555 | (tramp-imap-handle-file-readable-p) | 554 | (tramp-imap-handle-file-readable-p) |
| 556 | (tramp-imap-handle-directory-files-and-attributes) | 555 | (tramp-imap-handle-directory-files-and-attributes) |
| 557 | (tramp-imap-handle-file-newer-than-file-p): Removed. | 556 | (tramp-imap-handle-file-newer-than-file-p): Remove. |
| 558 | 557 | ||
| 559 | * net/tramp-sh.el: Replace `tramp-set-process-query-on-exit-flag' | 558 | * net/tramp-sh.el: Replace `tramp-set-process-query-on-exit-flag' |
| 560 | by `tramp-compat-set-process-query-on-exit-flag' and | 559 | by `tramp-compat-set-process-query-on-exit-flag' and |
| 561 | `tramp-coding-system-change-eol-conversion' by | 560 | `tramp-coding-system-change-eol-conversion' by |
| 562 | `tramp-compat-coding-system-change-eol-conversion'. | 561 | `tramp-compat-coding-system-change-eol-conversion'. |
| 563 | 562 | ||
| 564 | * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use | 563 | * net/tramp-smb.el (tramp-smb-file-name-handler-alist): |
| 565 | `tramp-handle-directory-files-and-attributes', | 564 | Use `tramp-handle-directory-files-and-attributes', |
| 566 | `tramp-handle-file-exists-p' and | 565 | `tramp-handle-file-exists-p' and |
| 567 | `tramp-handle-file-newer-than-file-p'. | 566 | `tramp-handle-file-newer-than-file-p'. |
| 568 | (tramp-smb-handle-directory-files-and-attributes) | 567 | (tramp-smb-handle-directory-files-and-attributes) |
| 569 | (tramp-smb-handle-file-exists-p) | 568 | (tramp-smb-handle-file-exists-p) |
| 570 | (tramp-smb-handle-file-newer-than-file-p): Removed. | 569 | (tramp-smb-handle-file-newer-than-file-p): Remove. |
| 571 | (tramp-smb-maybe-open-connection): Replace | 570 | (tramp-smb-maybe-open-connection): |
| 572 | `tramp-set-process-query-on-exit-flag' by | 571 | Replace `tramp-set-process-query-on-exit-flag' by |
| 573 | `tramp-compat-set-process-query-on-exit-flag'. | 572 | `tramp-compat-set-process-query-on-exit-flag'. |
| 574 | 573 | ||
| 575 | 2010-10-05 Glenn Morris <rgm@gnu.org> | 574 | 2010-10-05 Glenn Morris <rgm@gnu.org> |
| @@ -596,7 +595,7 @@ | |||
| 596 | (tramp-handle-substitute-in-file-name) | 595 | (tramp-handle-substitute-in-file-name) |
| 597 | (tramp-handle-unhandled-file-name-directory) | 596 | (tramp-handle-unhandled-file-name-directory) |
| 598 | (tramp-mode-string-to-int, tramp-local-host-p) | 597 | (tramp-mode-string-to-int, tramp-local-host-p) |
| 599 | (tramp-make-tramp-temp-file): Moved from tramp-sh.el. | 598 | (tramp-make-tramp-temp-file): Move from tramp-sh.el. |
| 600 | 599 | ||
| 601 | * net/tramp-gvfs.el (top): | 600 | * net/tramp-gvfs.el (top): |
| 602 | * net/tramp-smb.el (top): Do not require 'tramp-sh. | 601 | * net/tramp-smb.el (top): Do not require 'tramp-sh. |
| @@ -613,8 +612,8 @@ | |||
| 613 | 612 | ||
| 614 | * net/gnutls.el: Improve docs. Remove starttls and ssl emulation. | 613 | * net/gnutls.el: Improve docs. Remove starttls and ssl emulation. |
| 615 | Provide only `open-gnutls-stream' (formerly `open-ssl-stream') and | 614 | Provide only `open-gnutls-stream' (formerly `open-ssl-stream') and |
| 616 | `gnutls-negotiate' (formerly `starttls-negotiate'). Remove | 615 | `gnutls-negotiate' (formerly `starttls-negotiate'). |
| 617 | trivial wrapper `starttls-open-stream'. | 616 | Remove trivial wrapper `starttls-open-stream'. |
| 618 | 617 | ||
| 619 | 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu> | 618 | 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu> |
| 620 | 619 | ||
| @@ -628,8 +627,8 @@ | |||
| 628 | 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com> | 627 | 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com> |
| 629 | 628 | ||
| 630 | * net/gnutls.el (starttls-negotiate): Use the plist interface to | 629 | * net/gnutls.el (starttls-negotiate): Use the plist interface to |
| 631 | `gnutls-boot'. Make TYPE the only required parameter. Allow | 630 | `gnutls-boot'. Make TYPE the only required parameter. |
| 632 | TRUSTFILES and KEYFILES to be lists. | 631 | Allow TRUSTFILES and KEYFILES to be lists. |
| 633 | (open-ssl-stream): Use it. | 632 | (open-ssl-stream): Use it. |
| 634 | 633 | ||
| 635 | 2010-10-03 Glenn Morris <rgm@gnu.org> | 634 | 2010-10-03 Glenn Morris <rgm@gnu.org> |
| @@ -650,8 +649,8 @@ | |||
| 650 | 649 | ||
| 651 | 2010-10-03 Chong Yidong <cyd@stupidchicken.com> | 650 | 2010-10-03 Chong Yidong <cyd@stupidchicken.com> |
| 652 | 651 | ||
| 653 | * emacs-lisp/bytecomp.el (byte-compile-from-buffer): Remove | 652 | * emacs-lisp/bytecomp.el (byte-compile-from-buffer): |
| 654 | obsolete use of binary-overwrite-mode (Bug#7001). | 653 | Remove obsolete use of binary-overwrite-mode (Bug#7001). |
| 655 | 654 | ||
| 656 | 2010-10-03 Glenn Morris <rgm@gnu.org> | 655 | 2010-10-03 Glenn Morris <rgm@gnu.org> |
| 657 | 656 | ||
| @@ -686,18 +685,18 @@ | |||
| 686 | 685 | ||
| 687 | 2010-10-03 Chong Yidong <cyd@stupidchicken.com> | 686 | 2010-10-03 Chong Yidong <cyd@stupidchicken.com> |
| 688 | 687 | ||
| 689 | * server.el (server-process-filter, server-return-error): Give | 688 | * server.el (server-process-filter, server-return-error): |
| 690 | emacsclient time to shut down after receiving an error string. | 689 | Give emacsclient time to shut down after receiving an error string. |
| 691 | 690 | ||
| 692 | 2010-10-02 Michael Albinus <michael.albinus@gmx.de> | 691 | 2010-10-02 Michael Albinus <michael.albinus@gmx.de> |
| 693 | 692 | ||
| 694 | * files.el (remote-file-name-inhibit-cache): New defcustom. | 693 | * files.el (remote-file-name-inhibit-cache): New defcustom. |
| 695 | 694 | ||
| 696 | * time.el (display-time-file-nonempty-p): Use | 695 | * time.el (display-time-file-nonempty-p): |
| 697 | `remote-file-name-inhibit-cache'. | 696 | Use `remote-file-name-inhibit-cache'. |
| 698 | 697 | ||
| 699 | * net/tramp.el (tramp-completion-reread-directory-timeout): Fix | 698 | * net/tramp.el (tramp-completion-reread-directory-timeout): |
| 700 | docstring. | 699 | Fix docstring. |
| 701 | 700 | ||
| 702 | * net/tramp-cache.el (tramp-cache-inhibit-cache): Remove. | 701 | * net/tramp-cache.el (tramp-cache-inhibit-cache): Remove. |
| 703 | (tramp-get-file-property): Replace `tramp-cache-inhibit-cache' by | 702 | (tramp-get-file-property): Replace `tramp-cache-inhibit-cache' by |
| @@ -718,10 +717,9 @@ | |||
| 718 | 717 | ||
| 719 | * net/tramp-sh.el (tramp-handle-verify-visited-file-modtime) | 718 | * net/tramp-sh.el (tramp-handle-verify-visited-file-modtime) |
| 720 | (tramp-handle-file-name-all-completions) | 719 | (tramp-handle-file-name-all-completions) |
| 721 | (tramp-handle-vc-registered): Use | 720 | (tramp-handle-vc-registered): Use `remote-file-name-inhibit-cache'. |
| 722 | `remote-file-name-inhibit-cache'. | 721 | (tramp-open-connection-setup-interactive-shell): |
| 723 | (tramp-open-connection-setup-interactive-shell): Call | 722 | Call `tramp-cleanup-connection' directly. |
| 724 | `tramp-cleanup-connection' directly. | ||
| 725 | 723 | ||
| 726 | 2010-10-02 Glenn Morris <rgm@gnu.org> | 724 | 2010-10-02 Glenn Morris <rgm@gnu.org> |
| 727 | 725 | ||
diff --git a/lisp/files.el b/lisp/files.el index bb49f44fda5..d5f60b7817d 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -801,9 +801,10 @@ one or more of those symbols." | |||
| 801 | ;; Switching from names to names+fullnames creates a non-monotonicity | 801 | ;; Switching from names to names+fullnames creates a non-monotonicity |
| 802 | ;; which can cause problems with things like partial-completion. | 802 | ;; which can cause problems with things like partial-completion. |
| 803 | ;; To minimize the problem, filter out completion-regexp-list, so that | 803 | ;; To minimize the problem, filter out completion-regexp-list, so that |
| 804 | ;; M-x load-library RET t/x.e TAB finds some files. | 804 | ;; M-x load-library RET t/x.e TAB finds some files. Also remove elements |
| 805 | (if completion-regexp-list | 805 | ;; from `names' which only matched `string' when they still had |
| 806 | (setq names (all-completions "" names))) | 806 | ;; their suffix. |
| 807 | (setq names (all-completions string names)) | ||
| 807 | ;; Remove duplicates of the first element, so that we can easily check | 808 | ;; Remove duplicates of the first element, so that we can easily check |
| 808 | ;; if `names' really only contains a single element. | 809 | ;; if `names' really only contains a single element. |
| 809 | (when (cdr names) (setcdr names (delete (car names) (cdr names)))) | 810 | (when (cdr names) (setcdr names (delete (car names) (cdr names)))) |