Mercurial > emacs
comparison lisp/bindings.el @ 24606:6f29d3fe8aa5
(complete-symbol): Invert meaning of prefix arg.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 09 Apr 1999 19:22:42 +0000 |
parents | d015bfcaaead |
children | e4f2a5d1dc28 |
comparison
equal
deleted
inserted
replaced
24605:f378efa4aa8a | 24606:6f29d3fe8aa5 |
---|---|
287 | 287 |
288 (defun complete-symbol (arg) | 288 (defun complete-symbol (arg) |
289 "Perform tags completion on the text around point. | 289 "Perform tags completion on the text around point. |
290 Completes to the set of names listed in the current tags table. | 290 Completes to the set of names listed in the current tags table. |
291 The string to complete is chosen in the same way as the default | 291 The string to complete is chosen in the same way as the default |
292 for \\[find-tag] (which see)." | 292 for \\[find-tag] (which see). |
293 | |
294 With a prefix argument, this command does completion within | |
295 the collection of symbols listed in the index of the manual for the | |
296 language you are using." | |
293 (interactive "P") | 297 (interactive "P") |
294 (if arg | 298 (if arg |
295 (if (fboundp 'complete-tag) | 299 (info-complete-symbol) |
296 (complete-tag) | 300 (if (fboundp 'complete-tag) |
297 ;; Don't autoload etags if we have no tags table. | 301 (complete-tag) |
298 (error (substitute-command-keys | 302 ;; Don't autoload etags if we have no tags table. |
299 "No tags table loaded; use \\[visit-tags-table] to load one"))) | 303 (error (substitute-command-keys |
300 (info-complete-symbol))) | 304 "No tags table loaded; use \\[visit-tags-table] to load one"))))) |
301 | 305 |
302 ;; Reduce total amount of space we must allocate during this function | 306 ;; Reduce total amount of space we must allocate during this function |
303 ;; that we will not need to keep permanently. | 307 ;; that we will not need to keep permanently. |
304 (garbage-collect) | 308 (garbage-collect) |
305 | 309 |