diff options
| author | Stefan Monnier | 2011-06-15 14:33:33 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-06-15 14:33:33 -0400 |
| commit | 2b75be6704c3adf2f6ec9428dbcca90bf28043ef (patch) | |
| tree | 960918b5189b8ac2326dba6ef2bdac0d60baceeb | |
| parent | 8c0e35891e0533125e1a09bce2f3bcd29c6ff23a (diff) | |
| download | emacs-2b75be6704c3adf2f6ec9428dbcca90bf28043ef.tar.gz emacs-2b75be6704c3adf2f6ec9428dbcca90bf28043ef.zip | |
* lisp/abbrev.el (define-abbrev-table): Don't add a table multiple times.
| -rw-r--r-- | lisp/ChangeLog | 74 | ||||
| -rw-r--r-- | lisp/abbrev.el | 3 |
2 files changed, 41 insertions, 36 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9c7e132176b..03b96ecfa0b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * abbrev.el (define-abbrev-table): Don't add a table multiple times. | ||
| 4 | |||
| 1 | 2011-06-15 Alan Mackenzie <acm@muc.de> | 5 | 2011-06-15 Alan Mackenzie <acm@muc.de> |
| 2 | 6 | ||
| 3 | * progmodes/cc-fonts.el (c-font-lock-declarations): 1: Whilst | 7 | * progmodes/cc-fonts.el (c-font-lock-declarations): 1: Whilst |
| @@ -7,7 +11,7 @@ | |||
| 7 | 11 | ||
| 8 | 2011-06-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | 12 | 2011-06-15 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 9 | 13 | ||
| 10 | * subr.el (process-live-p): Renamed from `process-alive-p' for | 14 | * subr.el (process-live-p): Rename from `process-alive-p' for |
| 11 | consistency with other `-live-p' functions. | 15 | consistency with other `-live-p' functions. |
| 12 | 16 | ||
| 13 | 2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca> | 17 | 2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca> |
| @@ -75,8 +79,8 @@ | |||
| 75 | (view-return-to-alist-update): Make obsolete. | 79 | (view-return-to-alist-update): Make obsolete. |
| 76 | (view-mode-enter): Rename second argument to QUIT-RESTORE. | 80 | (view-mode-enter): Rename second argument to QUIT-RESTORE. |
| 77 | Rewrite using quit-restore window parameters. | 81 | Rewrite using quit-restore window parameters. |
| 78 | (view-mode-exit): Rename second argument to EXIT-ONLY. Rewrite | 82 | (view-mode-exit): Rename second argument to EXIT-ONLY. |
| 79 | using quit-restore-window. | 83 | Rewrite using quit-restore-window. |
| 80 | (View-exit, View-exit-and-edit, View-leave, View-quit) | 84 | (View-exit, View-exit-and-edit, View-leave, View-quit) |
| 81 | (View-quit-all, View-kill-and-leave): Call view-mode-exit with | 85 | (View-quit-all, View-kill-and-leave): Call view-mode-exit with |
| 82 | appropriate arguments. | 86 | appropriate arguments. |
| @@ -96,8 +100,8 @@ | |||
| 96 | (display-buffer-in-side-window, normalize-buffer-to-display) | 100 | (display-buffer-in-side-window, normalize-buffer-to-display) |
| 97 | (display-buffer-normalize-specifiers-1) | 101 | (display-buffer-normalize-specifiers-1) |
| 98 | (display-buffer-normalize-specifiers-2) | 102 | (display-buffer-normalize-specifiers-2) |
| 99 | (display-buffer-normalize-specifiers, display-buffer-frame): New | 103 | (display-buffer-normalize-specifiers, display-buffer-frame): |
| 100 | functions. | 104 | New functions. |
| 101 | (display-buffer): Major rewrite. | 105 | (display-buffer): Major rewrite. |
| 102 | (display-buffer-other-window, display-buffer-other-frame) | 106 | (display-buffer-other-window, display-buffer-other-frame) |
| 103 | (pop-to-buffer, switch-to-buffer-other-window) | 107 | (pop-to-buffer, switch-to-buffer-other-window) |
| @@ -133,8 +137,8 @@ | |||
| 133 | was inadvertently removed in change from 2011-06-11. Declare as | 137 | was inadvertently removed in change from 2011-06-11. Declare as |
| 134 | obsolete. | 138 | obsolete. |
| 135 | 139 | ||
| 136 | * calendar/calendar.el (calendar-generate-window): Use | 140 | * calendar/calendar.el (calendar-generate-window): |
| 137 | window-iso-combined-p instead of combination of one-window-p and | 141 | Use window-iso-combined-p instead of combination of one-window-p and |
| 138 | window-safely-shrinkable-p. | 142 | window-safely-shrinkable-p. |
| 139 | 143 | ||
| 140 | 2011-06-12 Glenn Morris <rgm@gnu.org> | 144 | 2011-06-12 Glenn Morris <rgm@gnu.org> |
| @@ -179,15 +183,15 @@ | |||
| 179 | (bw-adjust-window): Remove. | 183 | (bw-adjust-window): Remove. |
| 180 | (balance-windows-area-adjust): New function with functionality of | 184 | (balance-windows-area-adjust): New function with functionality of |
| 181 | bw-adjust-window but using resize-window. | 185 | bw-adjust-window but using resize-window. |
| 182 | (set-window-text-height): Rewrite doc-string. Use | 186 | (set-window-text-height): Rewrite doc-string. |
| 183 | normalize-live-window and resize-window. | 187 | Use normalize-live-window and resize-window. |
| 184 | (enlarge-window-horizontally, shrink-window-horizontally): Rename | 188 | (enlarge-window-horizontally, shrink-window-horizontally): |
| 185 | argument to DELTA. | 189 | Rename argument to DELTA. |
| 186 | (window-buffer-height): New function. | 190 | (window-buffer-height): New function. |
| 187 | (fit-window-to-buffer, shrink-window-if-larger-than-buffer): | 191 | (fit-window-to-buffer, shrink-window-if-larger-than-buffer): |
| 188 | Rewrite using new window resize routines. | 192 | Rewrite using new window resize routines. |
| 189 | (kill-buffer-and-window, mouse-autoselect-window-select): Use | 193 | (kill-buffer-and-window, mouse-autoselect-window-select): |
| 190 | ignore-errors instead of condition-case. | 194 | Use ignore-errors instead of condition-case. |
| 191 | (quit-window): Call delete-frame instead of delete-windows-on | 195 | (quit-window): Call delete-frame instead of delete-windows-on |
| 192 | for the only buffer on frame. | 196 | for the only buffer on frame. |
| 193 | 197 | ||
| @@ -198,8 +202,8 @@ | |||
| 198 | 202 | ||
| 199 | * files.el (read-buffer-to-switch) | 203 | * files.el (read-buffer-to-switch) |
| 200 | (switch-to-buffer-other-window) | 204 | (switch-to-buffer-other-window) |
| 201 | (switch-to-buffer-other-frame, display-buffer-other-frame): Move | 205 | (switch-to-buffer-other-frame, display-buffer-other-frame): |
| 202 | to window.el. | 206 | Move to window.el. |
| 203 | 207 | ||
| 204 | * simple.el (get-next-valid-buffer, last-buffer, next-buffer) | 208 | * simple.el (get-next-valid-buffer, last-buffer, next-buffer) |
| 205 | (previous-buffer): Move to window.el. | 209 | (previous-buffer): Move to window.el. |
| @@ -215,8 +219,8 @@ | |||
| 215 | (switch-to-next-buffer): New functions. | 219 | (switch-to-next-buffer): New functions. |
| 216 | (get-next-valid-buffer, last-buffer, next-buffer): Move here | 220 | (get-next-valid-buffer, last-buffer, next-buffer): Move here |
| 217 | from simple.el. Call switch-to-next-buffer. | 221 | from simple.el. Call switch-to-next-buffer. |
| 218 | (previous-buffer): Move here from simple.el. Call | 222 | (previous-buffer): Move here from simple.el. |
| 219 | switch-to-prev-buffer. | 223 | Call switch-to-prev-buffer. |
| 220 | (bury-buffer): Move here from buffer.c. Switch to previous | 224 | (bury-buffer): Move here from buffer.c. Switch to previous |
| 221 | buffer when window cannot be deleted. | 225 | buffer when window cannot be deleted. |
| 222 | (unbury-buffer): Move here from bindings.el. | 226 | (unbury-buffer): Move here from bindings.el. |
| @@ -225,8 +229,8 @@ | |||
| 225 | (read-buffer-to-switch, switch-to-buffer-other-window) | 229 | (read-buffer-to-switch, switch-to-buffer-other-window) |
| 226 | (switch-to-buffer-other-frame): Move here from files.el. | 230 | (switch-to-buffer-other-frame): Move here from files.el. |
| 227 | (normalize-buffer-to-switch-to): New functions. | 231 | (normalize-buffer-to-switch-to): New functions. |
| 228 | (switch-to-buffer): Move here from buffer.c. Use | 232 | (switch-to-buffer): Move here from buffer.c. |
| 229 | read-buffer-to-switch and normalize-buffer-to-switch-to. | 233 | Use read-buffer-to-switch and normalize-buffer-to-switch-to. |
| 230 | 234 | ||
| 231 | 2011-06-10 Martin Rudalics <rudalics@gmx.at> | 235 | 2011-06-10 Martin Rudalics <rudalics@gmx.at> |
| 232 | 236 | ||
| @@ -241,8 +245,8 @@ | |||
| 241 | (window-split-min-size): New function. | 245 | (window-split-min-size): New function. |
| 242 | (split-window-keep-point): Mention split-window-above-each-other | 246 | (split-window-keep-point): Mention split-window-above-each-other |
| 243 | instead of split-window-vertically. | 247 | instead of split-window-vertically. |
| 244 | (split-window-above-each-other, split-window-vertically): Rename | 248 | (split-window-above-each-other, split-window-vertically): |
| 245 | split-window-vertically to split-window-above-each-other and | 249 | Rename split-window-vertically to split-window-above-each-other and |
| 246 | provide defalias for old definition. | 250 | provide defalias for old definition. |
| 247 | (split-window-side-by-side, split-window-horizontally): Rename | 251 | (split-window-side-by-side, split-window-horizontally): Rename |
| 248 | split-window-horizontally to split-window-side-by-side and provide | 252 | split-window-horizontally to split-window-side-by-side and provide |
| @@ -301,10 +305,10 @@ | |||
| 301 | 305 | ||
| 302 | 2011-06-08 Martin Rudalics <rudalics@gmx.at> | 306 | 2011-06-08 Martin Rudalics <rudalics@gmx.at> |
| 303 | 307 | ||
| 304 | * window.el (one-window-p): Move down in code. Rewrite | 308 | * window.el (one-window-p): Move down in code. |
| 305 | doc-string. | 309 | Rewrite doc-string. |
| 306 | (window-current-scroll-bars): Rewrite doc-string. Normalize | 310 | (window-current-scroll-bars): Rewrite doc-string. |
| 307 | live window argument. | 311 | Normalize live window argument. |
| 308 | (walk-windows, get-window-with-predicate, count-windows): | 312 | (walk-windows, get-window-with-predicate, count-windows): |
| 309 | Rewrite doc-string. Use window-list-1. | 313 | Rewrite doc-string. Use window-list-1. |
| 310 | (window-in-direction-2, window-in-direction, get-mru-window): | 314 | (window-in-direction-2, window-in-direction, get-mru-window): |
| @@ -343,20 +347,20 @@ | |||
| 343 | (image-transform-properties): Return quickly in the normal case. | 347 | (image-transform-properties): Return quickly in the normal case. |
| 344 | (image-animate-loop): Rename from image-animate-max-time. | 348 | (image-animate-loop): Rename from image-animate-max-time. |
| 345 | 349 | ||
| 346 | * image.el (image-animate-max-time): Moved to image-mode.el. | 350 | * image.el (image-animate-max-time): Move to image-mode.el. |
| 347 | (create-animated-image): Remove unnecessary function. | 351 | (create-animated-image): Remove unnecessary function. |
| 348 | (image-animate): Rename from image-animate-start. New arg. | 352 | (image-animate): Rename from image-animate-start. New arg. |
| 349 | (image-animate-stop): Removed; just use image-animate-timer. | 353 | (image-animate-stop): Remove; just use image-animate-timer. |
| 350 | (image-animate-timer): Use car-safe. | 354 | (image-animate-timer): Use car-safe. |
| 351 | (image-animate-timeout): Rename argument. | 355 | (image-animate-timeout): Rename argument. |
| 352 | 356 | ||
| 353 | 2011-06-07 Martin Rudalics <rudalics@gmx.at> | 357 | 2011-06-07 Martin Rudalics <rudalics@gmx.at> |
| 354 | 358 | ||
| 355 | * window.el (get-lru-window, get-largest-window): Move here from | 359 | * window.el (get-lru-window, get-largest-window): Move here from |
| 356 | window.c. Rename first argument to ALL-FRAMES. Rephrase | 360 | window.c. Rename first argument to ALL-FRAMES. |
| 357 | doc-strings. | 361 | Rephrase doc-strings. |
| 358 | (get-buffer-window-list): Rewrite using window-list-1. Rephrase | 362 | (get-buffer-window-list): Rewrite using window-list-1. |
| 359 | doc-string. | 363 | Rephrase doc-string. |
| 360 | (window-safe-min-height, window-safe-min-width): New constants. | 364 | (window-safe-min-height, window-safe-min-width): New constants. |
| 361 | (window-size-ignore, window-min-size, window-min-size-1) | 365 | (window-size-ignore, window-min-size, window-min-size-1) |
| 362 | (window-sizable, window-sizable-p, window-size-fixed-1) | 366 | (window-sizable, window-sizable-p, window-size-fixed-1) |
| @@ -379,8 +383,8 @@ | |||
| 379 | (walk-window-tree-1, walk-window-tree, walk-window-subtree) | 383 | (walk-window-tree-1, walk-window-tree, walk-window-subtree) |
| 380 | (windows-with-parameter, window-with-parameter) | 384 | (windows-with-parameter, window-with-parameter) |
| 381 | (window-atom-root, make-window-atom, window-atom-check-1) | 385 | (window-atom-root, make-window-atom, window-atom-check-1) |
| 382 | (window-atom-check, window-side-check, window-check): New | 386 | (window-atom-check, window-side-check, window-check): |
| 383 | functions. | 387 | New functions. |
| 384 | (ignore-window-parameters, window-sides, window-sides-vertical) | 388 | (ignore-window-parameters, window-sides, window-sides-vertical) |
| 385 | (window-sides-slots): New variables. | 389 | (window-sides-slots): New variables. |
| 386 | (window-size-fixed): Move down in code. Minor doc-string fix. | 390 | (window-size-fixed): Move down in code. Minor doc-string fix. |
| @@ -418,8 +422,8 @@ | |||
| 418 | 422 | ||
| 419 | 2011-06-05 Roland Winkler <winkler@gnu.org> | 423 | 2011-06-05 Roland Winkler <winkler@gnu.org> |
| 420 | 424 | ||
| 421 | * textmodes/bibtex.el (bibtex-search-entry-globally): New | 425 | * textmodes/bibtex.el (bibtex-search-entry-globally): |
| 422 | variable. | 426 | New variable. |
| 423 | (bibtex-search-entry): Use it. | 427 | (bibtex-search-entry): Use it. |
| 424 | 428 | ||
| 425 | 2011-06-05 Roland Winkler <winkler@gnu.org> | 429 | 2011-06-05 Roland Winkler <winkler@gnu.org> |
diff --git a/lisp/abbrev.el b/lisp/abbrev.el index b2cd2064da2..9445cf9675c 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el | |||
| @@ -935,7 +935,8 @@ Properties with special meaning: | |||
| 935 | (unless table | 935 | (unless table |
| 936 | (setq table (make-abbrev-table)) | 936 | (setq table (make-abbrev-table)) |
| 937 | (set tablename table) | 937 | (set tablename table) |
| 938 | (push tablename abbrev-table-name-list)) | 938 | (unless (memq tablename abbrev-table-name-list) |
| 939 | (push tablename abbrev-table-name-list))) | ||
| 939 | ;; We used to just pass them to `make-abbrev-table', but that fails | 940 | ;; We used to just pass them to `make-abbrev-table', but that fails |
| 940 | ;; if the table was pre-existing as is the case if it was created by | 941 | ;; if the table was pre-existing as is the case if it was created by |
| 941 | ;; loading the user's abbrev file. | 942 | ;; loading the user's abbrev file. |