Commit graph

1403 commits

Author SHA1 Message Date
Stefan Monnier
d5e637154f Replace completion-base-size by completion-base-position to fix bugs
such as (bug#4699).
* simple.el (completion-base-position): New var.
(completion-base-size): Mark as obsolete.
(choose-completion): Make it work for mouse events as well.
Pass the new base-position to choose-completion-string.
(choose-completion-guess-base-position): New function, extracted from
choose-completion-delete-max-match.
(choose-completion-delete-max-match): Use it.  Make obsolete.
(choose-completion-string): Use the new base-position info.
(completion-root-regexp): Delete.
(completion-setup-function): Preserve completion-base-position.
Eliminate obsolete base-size manipulation.
* minibuffer.el (display-completion-list): Don't mess with base-size.
(minibuffer-completion-help): Set completion-base-position instead.
* mouse.el (mouse-choose-completion): Redefine as a mere alias to
choose-completion.
* textmodes/bibtex.el (bibtex-complete):
* emacs-lisp/crm.el (crm--choose-completion-string):
Adjust to new calling convention.
* complete.el (partial-completion-mode): Use minibufferp to avoid
bumping into incompatible change to choose-completion-string-functions.
* ido.el (ido-choose-completion-string): Make its calling convention
more permissive.
* comint.el (comint-dynamic-list-input-ring-select): Remove obsolete
base-size manipulation.
(comint-dynamic-list-input-ring): Use dotimes and push.
* iswitchb.el (iswitchb-completion-help): Remove dead-code call to
fundamental-mode.  Use `or'.
2009-10-15 01:50:17 +00:00
Eli Zaretskii
a7a8618bcd (eval-expression): Doc fix. 2009-10-05 11:42:18 +00:00
Michael Albinus
91f1142403 * simple.el (start-file-process): Say in the doc-string, that file
handlers might not support pty association, if PROGRAM is nil.
2009-10-02 13:27:29 +00:00
Juanma Barranquero
32226619c5 Use called-interactively-p' instead of interactive-p'. 2009-10-02 03:48:36 +00:00
Glenn Morris
28fab7b561 (hard-newline): Give it a doc-string. 2009-09-17 06:02:20 +00:00
Stefan Monnier
31cd2dd4e1 * simple.el: Add mapping for backspace/delete/clear/tab/escape/return
to function-key-map, and give them ascii-character property.
* term/x-win.el (x-alternatives-map):
* term/ns-win.el (ns-alternatives-map):
* term/internal.el (msdos-key-remapping-map):
* w32-fns.el (x-alternatives-map): Remove redundant mappings.
2009-09-14 01:22:42 +00:00
Stefan Monnier
adba8116c3 * mail/sendmail.el (send-mail-function):
* tooltip.el (tooltip-mode):
* simple.el (transient-mark-mode):
* rfn-eshadow.el (file-name-shadow-mode):
* frame.el (blink-cursor-mode):
* font-core.el (global-font-lock-mode):
* files.el (temporary-file-directory)
(small-temporary-file-directory, auto-save-file-name-transforms):
* epa-hook.el (auto-encryption-mode):
* composite.el (global-auto-composition-mode):
Use custom-initialize-delay.
* startup.el (command-line): Don't explicitly call
custom-reevaluate-setting for all the above vars.
* custom.el (custom-initialize-safe-set)
(custom-initialize-safe-default): Delete.
2009-09-13 00:52:55 +00:00
Stefan Monnier
8cb95edf7c * keymap.c (QCadvertised_binding): New constant.
(syms_of_keymap): Initialize it.
(Fwhere_is_internal): Try and use bindings from :advertised-binding
if applicable.

* progmodes/xscheme.el (xscheme-evaluation-commands):
Put a :advertised-binding property rather than using
advertised-xscheme-send-previous-expression.
(advertised-xscheme-send-previous-expression): Declare obsolete.
* emulation/crisp.el (crisp-mode-map): Use `undo' rather than
`advertised-undo'.
(crisp-mode): Add corresponding bindings to
undo's :advertised-binding instead.
* dired.el (dired-mode-map): Put a :advertised-binding property rather
than using dired-advertised-find-file.
(dired-advertised-find-file):
* simple.el (advertised-undo):
* wid-edit.el (advertised-widget-backward): Declare obsolete.
(widget-keymap): Put a :advertised-binding property rather
than using advertised-widget-backward.
* bindings.el (ctl-x-map): Put a :advertised-binding property rather
than using advertised-undo.
* tutorial.el (tutorial--default-keys): Adjust accordingly.
2009-09-11 00:58:59 +00:00
Juri Linkov
50c737e439 (shell-command): Set asynchronous process filter to
`comint-output-filter'.  (Bug#4343)
2009-09-10 00:54:36 +00:00
Stefan Monnier
b56a5ae0fe * mh-e/mh-comp.el (mh-send-letter):
* mail/sendmail.el (mail-recover-1):
* international/mule-diag.el (describe-current-coding-system-briefly)
(describe-current-coding-system):
* international/mule-cmds.el (select-safe-coding-system)
(select-message-coding-system)
(set-language-environment-coding-systems, set-locale-environment):
* hexl.el (hexl-insert-multibyte-char):
* dos-w32.el (find-buffer-file-type-coding-system):
* simple.el (what-cursor-position):
Replace uses of default-buffer-file-coding-system
with (default-value 'buffer-file-coding-system).
2009-08-28 04:21:14 +00:00
Sam Steingold
ba83a64e18 (kill-do-not-save-duplicates): New user option.
(kill-new): When it is non-nil, and the new string is the same as
the latest kill, set replace to t to avoid duplicates in kill-ring.
2009-08-27 14:56:17 +00:00
Sam Steingold
4ed8c7aadb (save-interprogram-paste-before-kill): New user option.
(kill-new): When `save-interprogram-paste-before-kill' is non-nil,
save the interprogram-paste into kill-ring before overriding it
with the Emacs kill.
2009-08-26 20:55:39 +00:00
Michael Albinus
2c4f2562bb * simple.el (process-file-side-effects): New defvar. 2009-08-25 08:45:41 +00:00
Stefan Monnier
85be9ec4ff (choose-completion-string): Don't rely on minibuffer-completing-file-name
and ad-hoc checks to decide whether to continue completion or not.
2009-08-19 02:31:59 +00:00
Richard M. Stallman
8cdba32b6c (next-error-move-function): New variable. 2009-08-13 00:57:17 +00:00
Stefan Monnier
a578553483 (goto-line): Fix up docstring. 2009-08-10 16:38:16 +00:00
Chong Yidong
34be836cc7 * simple.el (line-move-visual): Perform hscroll to the recorded position. 2009-07-31 02:14:43 +00:00
Chong Yidong
54b99340fd * simple.el (line-move-finish): Pass whole number to
line-move-to-column.
2009-07-31 01:34:26 +00:00
Glenn Morris
fd413a3765 (blink-matching-paren-distance): Bump to 100k. (Bug#3889) 2009-07-22 02:35:45 +00:00
Glenn Morris
cfc4766482 (mail-user-agent): Doc fix. Set :version tag. 2009-07-19 00:33:11 +00:00
Eli Zaretskii
102e1a41cd (deactivate-mark, activate-mark, set-mark): Don't call x-set-selection
if display-selections-p returns nil for the current frame.
2009-07-18 19:04:22 +00:00
Chong Yidong
16f2e9fca0 * simple.el (region-active-p, use-region-p): Doc fix (Bug#3873). 2009-07-18 17:39:35 +00:00
Chong Yidong
0013b70f1d * simple.el (set-mark): Revert last change. 2009-07-18 04:37:52 +00:00
Chong Yidong
3f5c9cad17 * w32-fns.el (x-selection-owner-p): New function.
* mouse.el (mouse-drag-track): Call deactivate-mark earlier.
(mouse-yank-at-click): If select-active-regions is non-nil,
deactivate the mark before insertion.

* simple.el (deactivate-mark, set-mark): Only save selection if we
own it.
2009-07-17 15:45:08 +00:00
Chong Yidong
2066b4fe21 * simple.el (kill-visual-line): Obey kill-whole-line (Bug#3695). 2009-07-15 02:05:32 +00:00
Chong Yidong
f9be2e3569 * simple.el (deactivate-mark): Optional argument FORCE.
(set-mark): Use deactivate-mark.

* info.el (Info-search): No need to check transient-mark-mode
before calling deactivate-mark.

* select.el (x-set-selection): Doc fix.
(x-valid-simple-selection-p): Allow buffer values.
(xselect--selection-bounds): Handle buffer values.  Suggested by
David De La Harpe Golden.

* mouse.el (mouse-set-region, mouse-drag-track): Call
copy-region-as-kill before setting the mark, to let
select-active-regions work.

* simple.el (deactivate-mark): If select-active-regions is
non-nil, copy the selection data into a string.
(activate-mark): If select-active-regions is non-nil, set the
selection to the current buffer.
(set-mark): Update selection if select-active-regions is non-nil.

* select.el (x-valid-simple-selection-p): Allow buffer values.
2009-07-15 01:25:32 +00:00
Stefan Monnier
cbd61418b3 (mail-user-agent): Default to the upwardly-UI-compatible
and more featureful message-mode.
2009-07-14 19:57:58 +00:00
Chong Yidong
774409a10b * simple.el (temporary-goal-column): Change the value for
line-move-visual to a cons cell.
(line-move-visual): Record or set the window hscroll, if
necessary (Bug#3494).
(line-move-1): Handle cons value of temporary-goal-column.
2009-07-11 16:36:05 +00:00
Juri Linkov
c945a962d9 (async-shell-command): New command. 2009-07-02 22:47:52 +00:00
Chong Yidong
ad4c1f6264 * simple.el (kill-visual-line): Rewrite (Bug#3437). Don't try to
handle kill-whole-line, as it doesn't make sense in this context.
2009-06-13 18:56:07 +00:00
Stefan Monnier
a9e3ff690b (completion-setup-function):
Only modify the default-directory in *Completions* (bug#3250).
Take partial-completion into account when setting default-directory.
2009-05-11 15:35:44 +00:00
Chong Yidong
624a662f9a * simple.el (line-move-visual): If point is stuck moving backwards
against a display string, temporarily ignore the goal
column (Bug#3020).
2009-04-25 15:27:45 +00:00
Sam Steingold
45f8cb0c08 (completion-list-mode-map): Bind "q" to quit-window,
just like in all other read-only buffers.
2009-04-06 15:45:00 +00:00
Chong Yidong
337c561c77 * simple.el (handle-shift-selection): Clarify docstring. 2009-04-06 01:21:48 +00:00
Stefan Monnier
74ab01ffd8 (auto-fill-function): Mark it as safe for nil.
Suggested by Leo Liu <sdl.web@gmail.com>.
2009-04-02 01:56:43 +00:00
Juri Linkov
7f3130fc99 (minibuffer-default-add-completions):
Remove `(interactive)'.  (Bug#2805)
2009-03-28 21:18:02 +00:00
Andreas Schwab
11ff3b6711 * simple.el (shift-select-mode): Make it a defcustom.
* cus-start.el: Remove shift-select-mode.
2009-03-27 16:50:14 +00:00
Stefan Monnier
84db11d602 * callint.c (Fcall_interactively): For '^' just delegate the work to
handle-shift-selection.
(syms_of_callint): Move declaration of shift-select-mode to simple.el.
* simple.el (shift-select-mode): Move declaration from callint.c.
(handle-shift-selection): Remove `deactivate' arg and check
shift-select-mode instead.
2009-03-26 17:07:54 +00:00
Eli Zaretskii
520558d258 (handle-shift-selection): Fix last change. 2009-03-21 18:38:40 +00:00
Eli Zaretskii
acc060e4e4 (handle-shift-selection): Doc fix. (Bug#2738) 2009-03-21 18:30:38 +00:00
Juanma Barranquero
673e51692e * subr.el (forward-point): Add obsolescence declaration.
* paren.el (show-paren-function):
* simple.el (kill-forward-chars, kill-backward-chars):
 Use (+/- (point) N), instead of `forward-point'.
2009-03-19 14:45:02 +00:00
Chong Yidong
14f01bef2c (undo-outer-limit-truncate): Mention that warning-suppress-types is
defined in the warnings library (Bug#2668).
2009-03-14 17:43:16 +00:00
Stefan Monnier
86f0d932e5 (undo): Don't loop when encountering empty undo records. 2009-03-14 01:51:34 +00:00
Glenn Morris
9dda5b0e58 (compose-mail): Doc fix. 2009-03-10 05:01:43 +00:00
Glenn Morris
9af66738a6 (eval-expression): Mention truncation in doc. 2009-02-25 08:18:30 +00:00
Eli Zaretskii
a6c39c14a2 (quoted-insert, zap-to-char): Use `with-no-warnings' around forms that refer
to translation-table-for-input.
2009-02-14 09:06:30 +00:00
Juri Linkov
c899b3db0c (toggle-word-wrap): New command. 2009-02-08 00:47:15 +00:00
Chong Yidong
b6d79b2f06 (line-move-visual): Handle overflow-newline-into-fringe. 2009-02-07 05:51:27 +00:00
Glenn Morris
186133b411 (kill-whole-line): Provide a default argument of 1. 2009-02-06 03:59:15 +00:00
Chong Yidong
411c010477 the latter is not available on ttys anyway. 2009-01-27 20:09:38 +00:00