Stefan Monnier
b938340493
* lisp/minibuffer.el (completion--twq-all): Disable too-strict assertions.
...
Fixes: debbugs:11714
2012-10-28 15:07:52 -04:00
Stefan Monnier
86957a0cd3
* lisp/minibuffer.el (completion--sifn-requote): Rewrite to handle things
...
like Tramp's "/foo:~bar//baz" -> "/scpc:foo:/baz" mapping.
Fixes: debbugs:11714
2012-10-28 14:48:17 -04:00
Jambunathan K
55f197b219
* lisp/minibuffer.el (completion-category-overrides): New completion
...
category `bookmark'.
Fixes: debbugs:11131
2012-10-26 16:44:38 -04:00
Stefan Monnier
414a8595f0
* lisp/minibuffer.el (minibuffer-force-complete): Fix thinko.
2012-10-25 08:56:13 -04:00
Stefan Monnier
3c92de7031
* lisp/minibuffer.el (minibuffer-force-complete): Use one more marker
...
for the temporary-overlay-map command.
Fixes: debbugs:12619
2012-10-24 15:40:23 -04:00
Stefan Monnier
5c78877693
* minibuffer.el (completion--flush-all-sorted-completions): Fix typo.
...
Fixes: debbugs:12619
2012-10-23 23:22:21 -04:00
Stefan Monnier
d92df117f9
* lisp/minibuffer.el (completion--all-sorted-completions-location): New var.
...
(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
2012-10-23 23:18:32 -04:00
Stefan Monnier
8e8083185c
* lisp/minibuffer.el (minibuffer-force-complete): Make the next completion use
...
the same completion-field (bug@12221).
2012-10-19 14:59:36 -04:00
Glenn Morris
281c9d2b20
* lisp/minibuffer.el (completion-cycle-threshold): Doc fix
2012-10-17 20:30:04 -07:00
Stefan Monnier
d39109c3e1
* lisp/subr.el (read-passwd-map): New var.
...
(read-passwd): Use `read-string' again.
* lisp/minibuffer.el (delete-minibuffer-contents): Make it interactive.
2012-10-06 13:29:15 -04:00
Chong Yidong
48de8b1221
Update docs for a bunch of 24.3 changes.
...
* 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.
2012-09-30 17:18:38 +08:00
Bastien Guerry
9011078f9d
Fix 2012-09-11T14:06:33Z!bastien1@free.fr.
2012-09-11 19:43:21 +02:00
Bastien Guerry
96d0357142
* minibuffer.el (completion-table-subvert): Fix docstring. (bug#12347)
2012-09-11 16:06:33 +02:00
Stefan Monnier
3d10e1343d
* lisp/minibuffer.el (completion-at-point-functions): Complete docstring.
...
Fixes: debbugs:12254
2012-09-01 00:28:24 -04:00
Chong Yidong
4abcdac823
More doc fixes.
...
* 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
2012-08-15 01:10:38 +08:00
Stefan Monnier
f58e0fd503
Reduce use of (require 'cl).
...
* 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.
2012-07-10 07:51:54 -04:00
Glenn Morris
c8d3a25c09
Merge from emacs-24; up to 2012-04-30T11:57:47Z!sdl.web@gmail.com
2012-06-28 23:28:37 -07:00
Stefan Monnier
ec55c5e0b0
* minibuffer.el (minibuffer-confirm-exit-commands): Add completion-at-point.
...
Fixes: debbugs:11725
2012-06-23 00:48:55 -04:00
Stefan Monnier
e33c6771f6
* lisp/minibuffer.el (completion--twq-try): Try to fail more gracefully when
...
the requote function doesn't work properly.
Fixes: debbugs:11714
2012-06-22 23:48:18 -04:00
Michael Albinus
6b11952a33
* minibuffer.el (read-file-name-default): Revert the patch from 2012-06-17.
2012-06-18 22:39:52 +02:00
Michael Albinus
298551496f
* minibuffer.el (read-file-name-default): Bind non-essential' to
t'.
...
* 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.
2012-06-17 20:54:39 +02:00
Stefan Monnier
1a72a195d0
* lisp/minibuffer.el (completion--sifn-requote): Fix last change.
...
(minibuffer-local-must-match-filename-map):
Move define-obsolete-variable-alias before its var.
2012-05-15 21:57:20 -04:00
Stefan Monnier
036dfb8b56
* lisp/minibuffer.el (completion--sifn-requote): Handle sifn's truncation
...
behavior.
(completion--string-equal-p): New function.
(completion--twq-all): Use it to get better assertion failure data.
2012-05-15 14:07:36 -04:00
Stefan Monnier
dbacb4bd91
* lisp/minibuffer.el (completion--twq-all): Again, allow case differences.
2012-05-11 13:11:03 -04:00
Stefan Monnier
f7ae671912
* minibuffer.el (completion--twq-all): Beware completion-ignore-case.
2012-05-03 15:54:07 -04:00
Stefan Monnier
6eac8dc9ac
* lisp/minibuffer.el (completion-table-with-quoting): Fix compatibility
...
all-completions code to not return a number in the last cdr.
2012-04-30 20:21:23 -04:00
Stefan Monnier
0d42eb3e96
* lisp/vc/vc-mtn.el:
...
* 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 ((λ ...) ...).
2012-04-25 23:18:47 -04:00
Stefan Monnier
cc356a5d47
Remove unnecessary use of minibuffer-completing-file-name.
...
* 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.
2012-04-25 14:57:09 -04:00
Stefan Monnier
79c4eeb450
* lisp/minibuffer.el: Use completion-table-with-quoting for read-file-name.
...
(minibuffer--double-dollars): Preserve properties.
(completion--sifn-requote): New function.
(completion--file-name-table): Rewrite using it and c-t-with-quoting.
2012-04-25 14:42:15 -04:00
Stefan Monnier
ef24141c36
* lisp/minibuffer.el: Add support for completion of quoted/escaped data.
...
(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.
2012-04-25 14:40:42 -04:00
Stefan Monnier
ed571ccb1d
* lisp/minibuffer.el (completion-file-name-table): Complete user names.
2012-04-20 15:56:59 -04:00
Glenn Morris
35dc09a19c
Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.org
2012-04-13 18:46:06 -07:00
Masatake YAMATO
09b95ce39b
Make `C-M-f' and friends work better when prompting for file names
...
* minibuffer.el (minibuffer-local-filename-syntax): New variable
to allow `C-M-f' and `C-M-b' to move to the nearest path
separator.
2012-04-13 23:43:03 +02:00
Eli Zaretskii
82b24fb279
Fix bug #11182 with the effect of typing '?' in Shell mode.
...
lisp/minibuffer.el (completion-in-region-mode-map): Bind
completion-help-at-point to M-? rather than ?.
2012-04-07 11:12:04 +03:00
Chong Yidong
321cc491c5
Document completion-extra-properties in Lisp manual.
...
* 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.
2012-04-04 17:19:32 +08:00
Stefan Monnier
dbbc2e69e4
* lisp/minibuffer.el (minibuffer-complete): Don't get confused when the
...
function is run twice via different commands.
(complete-with-action): Fix docstring.
Fixes: debbugs:10958
2012-03-12 00:10:59 -04:00
Chong Yidong
7a2c7ca7ca
Give completion field overlays high priority.
...
* lisp/minibuffer.el (completion-in-region, completion-help-at-point):
Give the completion field overlay a high priority.
Fixes: debbugs:6830
2012-03-10 15:08:51 +08:00
Stefan Monnier
3e88618b12
* lisp/minibuffer.el: Make sure cycling is reset upon edit with icomplete.el.
...
(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.
2012-02-23 10:41:12 -05:00
Glenn Morris
49fe4321fb
Checked mini.texi
...
* 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.
2012-02-23 00:32:18 -08:00
Stefan Monnier
b291b57241
* lisp/minibuffer.el (completion-table-with-context): Fix inf-loop.
...
Reported by Aaron S. Hawley <aaron.s.hawley@gmail.com>.
2012-02-22 23:38:29 -05:00
Chong Yidong
60236b0dca
Docstring and manual updates for completion-at-point-functions.
...
* 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.
2012-02-15 21:45:02 +08:00
Glenn Morris
fba9b8b646
Tweak previous doc change
2012-02-13 17:49:16 -05:00
Glenn Morris
2605051a7f
* lisp/minibuffer.el (read-file-name): Doc fix. (Bug#10798)
...
* src/gtkutil.c: Related comment.
2012-02-13 17:46:43 -05:00
Glenn Morris
2bed3f0483
Add missing :version tags to new defgroups and defcustoms
...
* 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.
2012-02-11 14:13:29 -08:00
Glenn Morris
e1ac4066d1
Minor-mode doc fixes for ARG behavior
...
* lisp/completion.el (dynamic-completion-mode):
* lisp/dirtrack.el (dirtrack-debug-mode):
* lisp/electric.el (electric-layout-mode):
* lisp/epa-mail.el (epa-mail-mode, epa-global-mail-mode):
* lisp/face-remap.el (text-scale-mode, buffer-face-mode):
* lisp/iimage.el (iimage-mode):
* lisp/image-mode.el (image-transform-mode):
* lisp/minibuffer.el (completion-in-region-mode):
* lisp/scroll-lock.el (scroll-lock-mode):
* lisp/simple.el (next-error-follow-minor-mode):
* lisp/tar-mode.el (tar-subfile-mode):
* lisp/tooltip.el (tooltip-mode):
* lisp/vcursor.el (vcursor-use-vcursor-map):
* lisp/wid-browse.el (widget-minor-mode):
* lisp/emulation/tpu-edt.el (tpu-edt-mode):
* lisp/emulation/tpu-extras.el (tpu-cursor-free-mode):
* lisp/international/iso-ascii.el (iso-ascii-mode):
* lisp/language/thai-util.el (thai-word-mode):
* lisp/mail/supercite.el (sc-minor-mode):
* lisp/net/goto-addr.el (goto-address-mode):
* lisp/net/rcirc.el (rcirc-multiline-minor-mode, rcirc-track-minor-mode):
* lisp/progmodes/cwarn.el (cwarn-mode):
* lisp/progmodes/flymake.el (flymake-mode):
* lisp/progmodes/glasses.el (glasses-mode):
* lisp/progmodes/hideshow.el (hs-minor-mode):
* lisp/progmodes/pascal.el (pascal-outline-mode):
* lisp/textmodes/enriched.el (enriched-mode):
* lisp/vc/smerge-mode.el (smerge-mode):
Doc fixes (minor mode argument).
* etc/NEWS: Related markup.
2012-02-07 21:12:24 -05:00
Stefan Monnier
1d00653d9e
* lisp/minibuffer.el (completion--replace): Strip properties.
...
Fixes: debbugs:10062
2012-01-16 10:50:28 -05:00
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Paul Eggert
9858f6c326
Spelling fixes.
2011-12-29 18:52:49 -08:00
Paul Eggert
5396468298
Spelling fixes.
2011-11-19 01:18:31 -08:00
Paul Eggert
3ed8598c49
Spelling fixes.
2011-11-18 00:31:02 -08:00