summaryrefslogtreecommitdiff
path: root/lisp/minibuffer.el
Commit message (Collapse)AuthorAgeFilesLines
* Keep pre-existing highlighting in completion candidates.Dmitry Gutov2013-03-051-17/+19
| | | | | | | | | | | | | | | * lisp/minibuffer.el (completions-first-difference): State that the face is "added" in the docstring. (completions-common-part): Same. And don't inherit from default. (completion-hilit-commonality): Prepend 'completions-common-part and 'completion-first-difference faces to the 'face property, instead of replacing the value(s). (completion--insert-strings): Same with 'completions-annotations face. (completion-hilit-commonality): Use 'face instead of 'font-lock-face, because it gets priority if the completion strings already have 'face set. Fixes: debbugs:13250
* Bind view-echo-area-messages in minibuffer-inactive-mode-map.Chong Yidong2013-02-091-4/+1
| | | | | | | | | * help.el (view-echo-area-messages): Use display-buffer. * minibuffer.el (minibuffer-inactive-mode-map): Bind mouse-1 to view-echo-area-messages. Fixes: debbugs:13340
* Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.caPaul Eggert2013-01-021-1/+1
|\
| * Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
| |
* | * lisp/icomplete.el: Change separator; add ido-style commands.Jambunathan K2012-11-291-9/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (icomplete-show-key-bindings): Remove custom var. (icomplete-get-keys): Remove function. (icomplete-forward-completions, icomplete-backward-completions): New commands. (icomplete-minibuffer-map): New var. (icomplete-minibuffer-setup): Use it. (icomplete-exhibit): Don't delay if the list of completions is known. (icomplete-separator): New custom. (icomplete-completions): Use it. * lisp/minibuffer.el (completion-all-sorted-completions): Delete duplicates. (minibuffer-force-complete-and-exit): New command. (minibuffer--complete-and-exit): New function extracted from minibuffer-complete-and-exit. (minibuffer-complete-and-exit): Use it.
* | * lisp/env.el (env--substitute-vars-regexp): New const.Stefan Monnier2012-11-081-0/+8
|/ | | | | (substitute-env-vars): Use it. Add `only-defined' arg. * lisp/net/tramp.el (tramp-replace-environment-variables): Use it.
* * lisp/minibuffer.el (completion--twq-all): Disable too-strict assertions.Stefan Monnier2012-10-281-12/+16
| | | | Fixes: debbugs:11714
* * lisp/minibuffer.el (completion--sifn-requote): Rewrite to handle thingsStefan Monnier2012-10-281-41/+39
| | | | | | like Tramp's "/foo:~bar//baz" -> "/scpc:foo:/baz" mapping. Fixes: debbugs:11714
* * lisp/minibuffer.el (completion-category-overrides): New completionJambunathan K2012-10-261-0/+1
| | | | | | category `bookmark'. Fixes: debbugs:11131
* * lisp/minibuffer.el (minibuffer-force-complete): Fix thinko.Stefan Monnier2012-10-251-3/+3
|
* * lisp/minibuffer.el (minibuffer-force-complete): Use one more markerStefan Monnier2012-10-241-1/+1
| | | | | | for the temporary-overlay-map command. Fixes: debbugs:12619
* * minibuffer.el (completion--flush-all-sorted-completions): Fix typo.Stefan Monnier2012-10-231-1/+1
| | | | Fixes: debbugs:12619
* * lisp/minibuffer.el (completion--all-sorted-completions-location): New var.Stefan Monnier2012-10-231-47/+60
| | | | | | | | | | (completion--cache-all-sorted-completions) (completion--flush-all-sorted-completions): Use it. (completion-in-region, completion-in-region--postch) (completion-at-point, completion-help-at-point): Use markers in completion-in-region--data. Fixes: debbugs:12619
* * lisp/minibuffer.el (minibuffer-force-complete): Make the next completion useStefan Monnier2012-10-191-2/+17
| | | | the same completion-field (bug@12221).
* * lisp/minibuffer.el (completion-cycle-threshold): Doc fixGlenn Morris2012-10-171-3/+3
|
* * lisp/subr.el (read-passwd-map): New var.Stefan Monnier2012-10-061-0/+1
| | | | | (read-passwd): Use `read-string' again. * lisp/minibuffer.el (delete-minibuffer-contents): Make it interactive.
* Update docs for a bunch of 24.3 changes.Chong Yidong2012-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/killing.texi (Rectangles): Document copy-rectangle-as-kill. * doc/emacs/search.texi (Special Isearch): Document the lax space search feature and M-s SPC. (Regexp Search): Move main search-whitespace-regexp description to Special Isearch. (Replace): Document replace-lax-whitespace. * doc/emacs/basic.texi (Position Info): Document C-u M-=. (Moving Point): Document move-to-column. * doc/emacs/display.texi (Useless Whitespace): Add delete-trailing-lines. * doc/emacs/misc.texi (emacsclient Options): Document the effect of initial-buffer-choice on client frames. Document server-auth-dir. Do not document server-host, which is bad security practice. * doc/emacs/building.texi (Lisp Libraries): Docstring lookups can trigger autoloading. Document help-enable-auto-load. * doc/emacs/mini.texi (Yes or No Prompts): New node. * doc/emacs/ack.texi (Acknowledgments): Remove obsolete packages. * doc/lispref/commands.texi (Click Events): Define "mouse position list". Remove mention of unimplemented horizontal scroll bars. (Drag Events, Motion Events): Refer to "mouse position list". (Accessing Mouse): Document posnp. * doc/lispref/errors.texi (Standard Errors): Tweak arith-error description. Tweak markup. Remove domain-error and friends, which seem to be unused after the floating-point code revamp. * doc/lispref/functions.texi (Obsolete Functions): Obsolescence also affects documentation commands. Various clarifications. (Declare Form): New node. * doc/lispref/loading.texi (Autoload): * doc/lispref/help.texi (Documentation Basics): The special sequences can trigger autoloading. * doc/lispref/macros.texi (Defining Macros): Move description of `declare' to Declare Form node. * doc/lispref/numbers.texi (Integer Basics): Copyedits. (Float Basics): Consider IEEE floating point always available. (Random Numbers): Document actual limits. (Arithmetic Operations): Clarify division by zero. Don't mention the machine-independence of negative division since it does not happen in practice. * doc/lispref/os.texi (Idle Timers): Minor clarifications. (User Identification): Add system-users and system-groups. * doc/lispref/strings.texi (String Basics): Copyedits. * lisp/minibuffer.el (minibuffer-local-filename-syntax): Doc fix. * lisp/server.el (server-host): Document the security implications. (server-auth-key): Doc fix. * lisp/startup.el (initial-buffer-choice): Doc fix. * src/fns.c (Frandom): Doc fix.
* Fix 2012-09-11T14:06:33Z!bastien1@free.fr.Bastien Guerry2012-09-111-2/+2
|
* * minibuffer.el (completion-table-subvert): Fix docstring. (bug#12347)Bastien Guerry2012-09-111-3/+3
|
* * lisp/minibuffer.el (completion-at-point-functions): Complete docstring.Stefan Monnier2012-09-011-1/+3
| | | | Fixes: debbugs:12254
* More doc fixes.Chong Yidong2012-08-151-12/+22
| | | | | | | | | | | | * lisp/minibuffer.el (read-file-name): Doc fix. * character.c (Fcharacterp): Doc fix (Bug#12076). * data.c (Findirect_variable): Doc fix (Bug#11040). * editfns.c (Fsave_current_buffer): Doc fix (Bug#11542). Fixes: debbugs:11542 debbugs:11040 debbugs:12076 debbugs:10881
* Reduce use of (require 'cl).Stefan Monnier2012-07-101-66/+68
| | | | | | | | | | | | | | | | | | | | | | | | * admin/bzrmerge.el: Use cl-lib. * leim/quail/hangul.el: Don't require CL. * leim/quail/ipa.el: Use cl-lib. * vc/smerge-mode.el, vc/pcvs.el, vc/pcvs-util.el, vc/pcvs-info.el: * vc/diff-mode.el, vc/cvs-status.el, uniquify.el, scroll-bar.el: * register.el, progmodes/sh-script.el, net/gnutls.el, net/dbus.el: * msb.el, mpc.el, minibuffer.el, international/ucs-normalize.el: * international/quail.el, info-xref.el, imenu.el, image-mode.el: * font-lock.el, filesets.el, edmacro.el, doc-view.el, bookmark.el: * battery.el, avoid.el, abbrev.el: Use cl-lib. * vc/pcvs-parse.el, vc/pcvs-defs.el, vc/log-view.el, vc/log-edit.el: * vc/diff.el, simple.el, pcomplete.el, lpr.el, comint.el, loadhist.el: * jit-lock.el, international/iso-ascii.el, info.el, frame.el, bs.el: * emulation/crisp.el, electric.el, dired.el, cus-dep.el, composite.el: * calculator.el, autorevert.el, apropos.el: Don't require CL. * emacs-bytecomp.el (byte-recompile-directory, display-call-tree) (byte-compile-unfold-bcf, byte-compile-check-variable): * emacs-byte-opt.el (byte-compile-trueconstp) (byte-compile-nilconstp): * emacs-autoload.el (make-autoload): Use pcase. * face-remap.el (text-scale-adjust): Simplify pcase patterns.
* Merge from emacs-24; up to 2012-04-30T11:57:47Z!sdl.web@gmail.comGlenn Morris2012-06-281-1/+2
|\
| * * minibuffer.el (minibuffer-confirm-exit-commands): Add completion-at-point.Stefan Monnier2012-06-231-1/+2
| | | | | | | | Fixes: debbugs:11725
* | * lisp/minibuffer.el (completion--twq-try): Try to fail more gracefully whenStefan Monnier2012-06-221-5/+16
| | | | | | | | | | | | the requote function doesn't work properly. Fixes: debbugs:11714
* | * minibuffer.el (read-file-name-default): Revert the patch from 2012-06-17.Michael Albinus2012-06-181-3/+2
| |
* | * minibuffer.el (read-file-name-default): Bind `non-essential' to `t'.Michael Albinus2012-06-171-1/+2
| | | | | | | | | | | | | | | | * net/tramp.el (tramp-file-name-handler): Catch 'non-essential. * net/ange-ftp.el (ange-ftp-gwp-start, ange-ftp-start-process): * net/tramp-sh.el (tramp-maybe-open-connection): Throw if `non-essential' is non-nil.
* | * lisp/minibuffer.el (completion--sifn-requote): Fix last change.Stefan Monnier2012-05-151-9/+11
| | | | | | | | | | (minibuffer-local-must-match-filename-map): Move define-obsolete-variable-alias before its var.
* | * lisp/minibuffer.el (completion--sifn-requote): Handle sifn's truncationStefan Monnier2012-05-151-12/+32
| | | | | | | | | | | | behavior. (completion--string-equal-p): New function. (completion--twq-all): Use it to get better assertion failure data.
* | * lisp/minibuffer.el (completion--twq-all): Again, allow case differences.Stefan Monnier2012-05-111-3/+4
| |
* | * minibuffer.el (completion--twq-all): Beware completion-ignore-case.Stefan Monnier2012-05-031-3/+6
| |
* | * lisp/minibuffer.el (completion-table-with-quoting): Fix compatibilityStefan Monnier2012-04-301-4/+15
| | | | | | | | all-completions code to not return a number in the last cdr.
* | * lisp/vc/vc-mtn.el:Stefan Monnier2012-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/vc-hg.el: * lisp/vc/vc-git.el: * lisp/vc/vc-dir.el: * lisp/vc/vc-cvs.el: * lisp/vc/vc-bzr.el: * lisp/vc/vc-arch.el: * lisp/vc/vc.el: Replace lexical-let by lexical-binding. * lisp/minibuffer.el (lazy-completion-table): Avoid ((λ ...) ...). * lisp/emacs-lisp/cl-macs.el (lexical-let): Fix use in lexical-binding. * lisp/emacs-lisp/cconv.el (cconv-analyse-form): Warn use of ((λ ...) ...).
* | Remove unnecessary use of minibuffer-completing-file-name.Stefan Monnier2012-04-251-1/+1
| | | | | | | | | | | | * lisp/ffap.el: Remove old code for obsolete package. (ffap-complete-as-file-p): Remove. * lisp/mh-e/mh-utils.el (minibuffer-completing-file-name): Don't declare.
* | * lisp/minibuffer.el: Use completion-table-with-quoting for read-file-name.Stefan Monnier2012-04-251-49/+34
| | | | | | | | | | | | (minibuffer--double-dollars): Preserve properties. (completion--sifn-requote): New function. (completion--file-name-table): Rewrite using it and c-t-with-quoting.
* | * lisp/minibuffer.el: Add support for completion of quoted/escaped data.Stefan Monnier2012-04-251-30/+252
| | | | | | | | | | | | | | (completion-table-with-quoting, completion-table-subvert): New funs. (completion--twq-try, completion--twq-all): New functions. (completion--nth-completion): New function. (completion-try-completion, completion-all-completions): Use it.
* | * lisp/minibuffer.el (completion-file-name-table): Complete user names.Stefan Monnier2012-04-201-0/+6
| |
* | Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.orgGlenn Morris2012-04-131-1/+1
|\ \ | |/
| * Fix bug #11182 with the effect of typing '?' in Shell mode.Eli Zaretskii2012-04-071-1/+1
| | | | | | | | | | lisp/minibuffer.el (completion-in-region-mode-map): Bind completion-help-at-point to M-? rather than ?.
* | Make `C-M-f' and friends work better when prompting for file namesMasatake YAMATO2012-04-131-1/+17
|/ | | | | | * minibuffer.el (minibuffer-local-filename-syntax): New variable to allow `C-M-f' and `C-M-b' to move to the nearest path separator.
* Document completion-extra-properties in Lisp manual.Chong Yidong2012-04-041-10/+17
| | | | | | | | | | * doc/lispref/minibuf.texi (Programmed Completion): Remove obsolete variable completion-annotate-function. (Completion Variables): Rename from Completion Styles. Document completion-extra-properties. Document completion-styles-alist change. * lisp/minibuffer.el (completion-extra-properties): Doc fix.
* * lisp/minibuffer.el (minibuffer-complete): Don't get confused when theStefan Monnier2012-03-121-2/+3
| | | | | | | function is run twice via different commands. (complete-with-action): Fix docstring. Fixes: debbugs:10958
* Give completion field overlays high priority.Chong Yidong2012-03-101-2/+6
| | | | | | | * lisp/minibuffer.el (completion-in-region, completion-help-at-point): Give the completion field overlay a high priority. Fixes: debbugs:6830
* * lisp/minibuffer.el: Make sure cycling is reset upon edit with icomplete.el.Stefan Monnier2012-02-231-22/+25
| | | | | | | (completion--cache-all-sorted-completions): New function. (completion-all-sorted-completions): Use it. (completion--do-completion, minibuffer-force-complete): Use it to re-instate the flush hook.
* Checked mini.texiGlenn Morris2012-02-231-1/+3
| | | | | | | | | | | * doc/emacs/mini.texi (Minibuffer File, Completion Options, Repetition): Copyedits. (Completion Example): Other M-x au* commands may be defined. (Completion Styles): Mention emacs21 and completion-category-overrides. * lisp/minibuffer.el (completion-category-overrides): Doc fix. * admin/FOR-RELEASE: Related markup.
* * lisp/minibuffer.el (completion-table-with-context): Fix inf-loop.Stefan Monnier2012-02-221-24/+25
| | | | Reported by Aaron S. Hawley <aaron.s.hawley@gmail.com>.
* Docstring and manual updates for completion-at-point-functions.Chong Yidong2012-02-151-4/+4
| | | | | | | | | | | | | | * doc/lispref/minibuf.texi (Basic Completion): Define "completion table". Move completion-in-region to Completion in Buffers node. (Completion Commands): Use "completion table" terminology. (Completion in Buffers): New node. * doc/lispref/modes.texi (Hooks): add-hook can be used for abnormal hooks too. (Setting Hooks): Update minor mode usage example. (Major Mode Conventions): Note that completion-at-point-functions should be altered locally. Add xref to Completion in Buffers. * lisp/minibuffer.el (completion-at-point-functions): Doc fix.
* Tweak previous doc changeGlenn Morris2012-02-131-1/+1
|
* * lisp/minibuffer.el (read-file-name): Doc fix. (Bug#10798)Glenn Morris2012-02-131-3/+10
| | | | * src/gtkutil.c: Related comment.
* Add missing :version tags to new defgroups and defcustomsGlenn Morris2012-02-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * window.el (window-sides-slots): * tool-bar.el (tool-bar-position): * term/xterm.el (xterm-extra-capabilities): * ses.el (ses-self-reference-early-detection): * progmodes/verilog-mode.el (verilog-auto-declare-nettype) (verilog-auto-wire-type) (verilog-auto-delete-trailing-whitespace) (verilog-auto-reset-blocking-in-non, verilog-auto-inst-sort) (verilog-auto-tieoff-declaration): * progmodes/sql.el (sql-login-hook, sql-ansi-statement-starters) (sql-oracle-statement-starters, sql-oracle-scan-on): * progmodes/prolog.el (prolog-align-comments-flag) (prolog-indent-mline-comments-flag, prolog-object-end-to-0-flag) (prolog-left-indent-regexp, prolog-paren-indent-p) (prolog-paren-indent, prolog-parse-mode, prolog-keywords) (prolog-types, prolog-mode-specificators) (prolog-determinism-specificators, prolog-directives) (prolog-electric-newline-flag, prolog-hungry-delete-key-flag) (prolog-electric-dot-flag) (prolog-electric-dot-full-predicate-template) (prolog-electric-underscore-flag, prolog-electric-tab-flag) (prolog-electric-if-then-else-flag, prolog-electric-colon-flag) (prolog-electric-dash-flag, prolog-old-sicstus-keys-flag) (prolog-program-switches, prolog-prompt-regexp) (prolog-debug-on-string, prolog-debug-off-string) (prolog-trace-on-string, prolog-trace-off-string) (prolog-zip-on-string, prolog-zip-off-string) (prolog-use-standard-consult-compile-method-flag) (prolog-use-prolog-tokenizer-flag, prolog-imenu-flag) (prolog-imenu-max-lines, prolog-info-predicate-index) (prolog-underscore-wordchar-flag, prolog-use-sicstus-sd) (prolog-char-quote-workaround): * progmodes/cc-vars.el (c-defun-tactic): * net/tramp.el (tramp-encoding-command-interactive) (tramp-local-end-of-line): * net/soap-client.el (soap-client): * net/netrc.el (netrc-file): * net/gnutls.el (gnutls): * minibuffer.el (completion-category-overrides) (completion-cycle-threshold) (completion-pcm-complete-word-inserts-delimiters): * man.el (Man-name-local-regexp): * mail/feedmail.el (feedmail-display-full-frame): * international/characters.el (glyphless-char-display-control): * eshell/em-ls.el (eshell-ls-date-format): * emacs-lisp/cl-indent.el (lisp-lambda-list-keyword-alignment) (lisp-lambda-list-keyword-parameter-indentation) (lisp-lambda-list-keyword-parameter-alignment): * doc-view.el (doc-view-image-width, doc-view-unoconv-program): * dired-x.el (dired-omit-verbose): * cus-theme.el (custom-theme-allow-multiple-selections): * calc/calc.el (calc-highlight-selections-with-faces) (calc-lu-field-reference, calc-lu-power-reference) (calc-note-threshold): * battery.el (battery-mode-line-limit): * arc-mode.el (archive-7z-extract, archive-7z-expunge) (archive-7z-update): * allout.el (allout-prefixed-keybindings) (allout-unprefixed-keybindings) (allout-inhibit-auto-fill-on-headline) (allout-flattened-numbering-abbreviation): * allout-widgets.el (allout-widgets-auto-activation) (allout-widgets-icons-dark-subdir) (allout-widgets-icons-light-subdir, allout-widgets-icon-types) (allout-widgets-theme-dark-background) (allout-widgets-theme-light-background) (allout-widgets-item-image-properties-emacs) (allout-widgets-item-image-properties-xemacs) (allout-widgets-run-unit-tests-on-load) (allout-widgets-time-decoration-activity) (allout-widgets-hook-error-post-time) (allout-widgets-track-decoration): * gnus/sieve-manage.el (sieve-manage-default-stream): * gnus/shr.el (shr): * gnus/nnir.el (nnir-ignored-newsgroups, nnir-summary-line-format) (nnir-retrieve-headers-override-function) (nnir-imap-default-search-key, nnir-notmuch-program) (nnir-notmuch-additional-switches, nnir-notmuch-remove-prefix) (nnir-method-default-engines): * gnus/message.el (message-cite-reply-position): * gnus/gssapi.el (gssapi-program): * gnus/gravatar.el (gravatar): * gnus/gnus-sum.el (gnus-refer-thread-use-nnir): * gnus/gnus-registry.el (gnus-registry-unfollowed-addresses) (gnus-registry-max-pruned-entries): * gnus/gnus-picon.el (gnus-picon-inhibit-top-level-domains): * gnus/gnus-int.el (gnus-after-set-mark-hook) (gnus-before-update-mark-hook): * gnus/gnus-async.el (gnus-async-post-fetch-function): * gnus/auth-source.el (auth-source-cache-expiry): Add missing :version tags to new defcustoms and defgroups.