comparison lisp/man.el @ 65680:ed770a0a7846

2005-09-24 Emilio C. Lopes <eclig@gmx.net> * woman.el (woman-file-name): * wid-edit.el (widget-file-prompt-value) (widget-coding-system-prompt-value): * w32-fns.el (set-w32-system-coding-system): * vc.el (vc-version-diff, vc-annotate): * textmodes/reftex-auc.el (reftex-arg-cite) (reftex-arg-index-tag): * textmodes/refer.el (refer-get-bib-files): * textmodes/artist.el (artist-figlet-choose-font): * terminal.el (terminal-emulator): * replace.el (occur-read-primary-args): * rect.el (string-rectangle, string-insert-rectangle): * ps-print.el (ps-print-preprint): * progmodes/pascal.el (pascal-goto-defun): * progmodes/etags.el (visit-tags-table, visit-tags-table-buffer): * progmodes/compile.el (compilation-find-file): * printing.el (pr-interactive-n-up): * play/animate.el (animate-birthday-present): * net/rcompile.el (remote-compile): * man.el (man, Man-goto-section, Man-follow-manual-reference): * mail/rmailsum.el (rmail-summary-search-backward) (rmail-summary-search): * mail/rmailout.el (rmail-output-read-rmail-file-name) (rmail-output-read-file-name): * mail/rmail.el (rmail-search, rmail-search-backwards): * mail/mailabbrev.el (merge-mail-abbrevs, rebuild-mail-abbrevs): * locate.el (locate): * international/quail.el (quail-show-keyboard-layout): * international/mule.el (set-buffer-file-coding-system) (revert-buffer-with-coding-system, set-file-name-coding-system) (set-terminal-coding-system, set-keyboard-coding-system) (set-next-selection-coding-system): * international/mule-diag.el (describe-coding-system) (describe-font, describe-fontset): * international/mule-cmds.el (universal-coding-system-argument) (search-unencodable-char, describe-input-method) (set-language-environment, describe-language-environment): * international/codepage.el (codepage-setup): * international/code-pages.el (codepage-setup): * info.el (Info-search, Info-follow-reference) (Info-search-backward): * emacs-lisp/advice.el (ad-read-advised-function) (ad-read-advice-class, ad-clear-cache, ad-activate) (ad-deactivate, ad-update, ad-unadvise, ad-read-advice-name) (ad-enable-advice, ad-disable-advice, ad-remove-advice) (ad-read-regexp): * ediff-util.el (ediff-toggle-regexp-match): * ediff-ptch.el (ediff-prompt-for-patch-file): * dired-aux.el (dired-diff): * diff.el (diff): * cus-edit.el (custom-variable-prompt): * calendar/timeclock.el (timeclock-ask-for-project): * calc/calcalg3.el (calc-get-fit-variables): * calc/calc-store.el (calc-edit-variable) (calc-permanent-variable): * vc-mcvs.el (vc-mcvs-register): * shadowfile.el (shadow-define-literal-group): * woman.el (woman-file-name): * vc.el (vc-version-diff, vc-merge): * textmodes/reftex-index.el (reftex-index-complete-tag): * format.el (format-decode-buffer, format-decode-region): * emulation/viper-cmd.el (viper-read-string-with-history): * emacs-lisp/debug.el (cancel-debug-on-entry): * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): * ediff.el (ediff-merge-revisions) (ediff-merge-revisions-with-ancestor, ediff-revision): * completion.el (interactive-completion-string-reader): * calc/calc-prog.el (calc-user-define-formula): Follow convention for reading with the minibuffer.
author Romain Francoise <romain@orebokech.com>
date Sat, 24 Sep 2005 13:44:02 +0000
parents df6f7e582a6e
children bd98d8a37303 ee12d75eb214
comparison
equal deleted inserted replaced
65679:56406afc87de 65680:ed770a0a7846
661 all sections related to a subject, put something appropriate into the 661 all sections related to a subject, put something appropriate into the
662 `Man-switches' variable, which see." 662 `Man-switches' variable, which see."
663 (interactive 663 (interactive
664 (list (let* ((default-entry (Man-default-man-entry)) 664 (list (let* ((default-entry (Man-default-man-entry))
665 (input (read-string 665 (input (read-string
666 (format "Manual entry%s: " 666 (format "Manual entry%s"
667 (if (string= default-entry "") 667 (if (string= default-entry "")
668 "" 668 ": "
669 (format " (default %s)" default-entry))) 669 (format " (default %s): " default-entry)))
670 nil nil default-entry))) 670 nil nil default-entry)))
671 (if (string= input "") 671 (if (string= input "")
672 (error "No man args given") 672 (error "No man args given")
673 input)))) 673 input))))
674 674
1271 (interactive) 1271 (interactive)
1272 (aput 'Man-sections-alist 1272 (aput 'Man-sections-alist
1273 (let* ((default (aheadsym Man-sections-alist)) 1273 (let* ((default (aheadsym Man-sections-alist))
1274 (completion-ignore-case t) 1274 (completion-ignore-case t)
1275 chosen 1275 chosen
1276 (prompt (concat "Go to section: (default " default ") "))) 1276 (prompt (concat "Go to section (default " default "): ")))
1277 (setq chosen (completing-read prompt Man-sections-alist)) 1277 (setq chosen (completing-read prompt Man-sections-alist))
1278 (if (or (not chosen) 1278 (if (or (not chosen)
1279 (string= chosen "")) 1279 (string= chosen ""))
1280 default 1280 default
1281 chosen))) 1281 chosen)))
1326 (match-beginning 0)) 1326 (match-beginning 0))
1327 word)) 1327 word))
1328 Man-refpages-alist)) 1328 Man-refpages-alist))
1329 (aheadsym Man-refpages-alist))) 1329 (aheadsym Man-refpages-alist)))
1330 chosen 1330 chosen
1331 (prompt (concat "Refer to: (default " default ") "))) 1331 (prompt (concat "Refer to (default " default "): ")))
1332 (setq chosen (completing-read prompt Man-refpages-alist)) 1332 (setq chosen (completing-read prompt Man-refpages-alist))
1333 (if (or (not chosen) 1333 (if (or (not chosen)
1334 (string= chosen "")) 1334 (string= chosen ""))
1335 default 1335 default
1336 chosen))))) 1336 chosen)))))