1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
Commit Graph

835 Commits

Author SHA1 Message Date
Masatake YAMATO
9a1120eaf9 (completion-setup-function): Set an initial value to element-common-end' before entering loop. Set a value to element-common-end' at the end of loop. The bug is reported by Juri Linkov <juri@jurta.org> in emacs-devel list. 2004-04-16 08:45:40 +00:00
Masatake YAMATO
abcdd45aee (completion-setup-function): Emphasize the first uncommon characters in the completions;and de-emphasize the common prefix substrings.
(completion-emphasis): New face.
(completion-de-emphasis): New face.
2004-03-25 16:01:38 +00:00
Luc Teirlinck
186f9ad113 (clone-buffer): Doc fix. 2004-03-18 02:57:32 +00:00
Richard M. Stallman
2c6a22540a (undo): Temporarily set this-command to `undo-start',
then set it to `undo' once undo-start returns without error.

(minibuffer-history-sexp-flag): Doc fix.

(kill-line): Don't disregard trailing whitespace
in eol condition, if show-trailing-whitespace is set.
2004-03-04 17:00:09 +00:00
Luc Teirlinck
8e5d85ffc0 (interprogram-cut-function)
(interprogram-paste-function, kill-new, kill-append): Doc fixes.
(kill-region): Make it return nil.  Doc fix.
(yank-pop): Make its argument optional.
(yank): Make ARG `-' equivalent to `-1'.
2004-02-18 03:04:32 +00:00
Luc Teirlinck
7e46b7bf24 (kill-new): Put yank-handler property on the entire string. 2004-02-13 23:10:59 +00:00
Luc Teirlinck
fb2dcf046c (kill-append): Doc fix. 2004-02-12 04:23:54 +00:00
Kim F. Storm
4109ce02c4 (line-number-at-pos): Rename from line-at-pos.
Uses changed (what-line and vc-annotate-warp-version).
2004-02-07 00:37:13 +00:00
Luc Teirlinck
11178a0606 (edit-and-eval-command): Bind print-level and
minibuffer-history-sexp-flag around call to read-from-minibuffer.
Correct initial position in command-history.
2004-01-31 15:07:40 +00:00
Kim F. Storm
f076870ac3 (line-at-pos): New defun.
(what-line): Use it.  Optimize by only counting lines in narrowed region once.
2004-01-22 20:42:52 +00:00
Richard M. Stallman
9462bf2c71 (sendmail-user-agent-compose): Use assoc-string. 2003-12-29 19:52:25 +00:00
Andreas Schwab
7dcd2d16f1 (set-variable): Fix indentation. 2003-11-19 13:23:30 +00:00
Eli Zaretskii
6904b34bf4 (overriding-map-is-bound, saved-overriding-map): New variables.
(ensure-overriding-map-is-bound, restore-overriding-map): New functions.
(universal-argument, universal-argument-more, negative-argument)
(digit-argument, universal-argument-other-key): Minor changes.
2003-11-01 17:02:32 +00:00
Stefan Monnier
fd2c4cd833 (reindent-then-newline-and-indent): Delete space *after*
reindenting the first line.
2003-10-27 15:22:38 +00:00
Richard M. Stallman
683e741557 (eval-expression): Bind standard-output in to-buffer case. 2003-09-22 15:11:02 +00:00
Lute Kamstra
cf045f9a8d (size-indication-mode): New. 2003-09-08 08:01:41 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
01ce617af9 (blink-matching-open): Work correctly on chars that
are designated as parens through the syntax-table text property.
2003-08-29 16:07:16 +00:00
Richard M. Stallman
b82d844fa4 (eval-expression): Use eval-last-sexp-print-value.
(backward-word, forward-to-indentation)
(backward-to-indentation):  Argument changed to optional.
(next-line, previous-line): Use `or' instead of `unless'.
2003-08-17 00:15:53 +00:00
John Paul Wallington
1a0d0b6ab1 (choose-completion-string): Use `minibufferp';
test `completion-reference-buffer' if `buffer' arg is nil.
(push-mark): Use `when' and `unless'.
(pop-mark): Use `when'.
2003-07-25 12:18:04 +00:00
John Paul Wallington
81d171731e (current-word): Don't include punctuation char when
`really-word' arg is non-nil.
2003-07-18 22:46:08 +00:00
Richard M. Stallman
0f7df53513 (visible-mode): Renamed from vis-mode.
(vis-mode-saved-buffer-invisibility-spec): Doc fix.

(current-word): New arg REALLY-WORD specifies
don't include punctuation chars.
2003-07-07 21:00:26 +00:00
Luc Teirlinck
191ec00e85 (vis-mode): Update documentation string to reflect earlier changes. 2003-07-01 22:15:33 +00:00
Andreas Schwab
bf473948b3 (vis-mode): Doc fix. 2003-06-22 16:49:31 +00:00
Stefan Monnier
aca8bee599 (kill-new): Leave yank-handler property alone if no
explicit yank-handler is specified.
(vis-mode-saved-buffer-invisibility-spec): Rename from
saved-buffer-invisibility-spec.
(vis-mode): Correctly handle the case where the mode is turned on
or off several times in a row.
2003-06-17 18:40:06 +00:00
Luc Teirlinck
4e57881d89 (vis-mode): New function.
(saved-buffer-invisibility-spec): New variable.
2003-06-17 02:35:46 +00:00
Luc Teirlinck
c6ff5a4c80 (yank-excluded-properties): Expand documentation string. 2003-06-04 21:13:41 +00:00
Luc Teirlinck
6c770e384d (kill-whole-line): Make it interact correctly with the kill ring. 2003-05-29 23:29:29 +00:00
Kai Großjohann
8a7cda9bfa (kill-region): If nothing was killed, and the
previous command was not a kill, break kill sequence.
2003-05-28 20:07:10 +00:00
Juanma Barranquero
ea82f0df29 (idle-update-delay): New variable. 2003-05-25 01:45:14 +00:00
Juanma Barranquero
f5fd8833fb (forward-visible-line): Fix negative arguments. 2003-05-25 01:34:37 +00:00
Stefan Monnier
46e14f67f7 (ctl-x-map): Remove the C-x U binding added recently. 2003-05-21 15:29:36 +00:00
Kai Großjohann
348de80b31 * simple.el (kill-whole-line): New function.
* bindings.el (global-map): Bind it.
2003-05-19 15:47:14 +00:00
Stefan Monnier
c2020c27ff (shell-command): Undo last change. 2003-05-16 21:17:52 +00:00
Stefan Monnier
c86c975de6 (undo): Remove left over asserts. 2003-05-14 00:57:02 +00:00
Stefan Monnier
1e96c0077d (back-to-indentation): Simplify.
(undo-equiv-table, undo-in-region, undo-no-redo): New vars.
(undo): Use them to implement the no-redo form of undo.
(undo-only): New fun.
(shell-command): Don't require `shell' since shell-mode is autoloaded.
(insert-buffer): Simplify.
(completion-setup-function): Use minibufferp.
(event-apply-alt-modifier, event-apply-super-modifier)
(event-apply-hyper-modifier, event-apply-shift-modifier)
(event-apply-control-modifier, event-apply-meta-modifier):
Fix docstring to show the proper key sequence.
2003-05-13 19:45:01 +00:00
Juanma Barranquero
6688f85fc7 (newline): Don't quote nil and t in docstrings. 2003-05-06 17:52:20 +00:00
Richard M. Stallman
b986346637 (back-to-indentation): Call backward-prefix-chars. 2003-04-24 01:57:46 +00:00
Richard M. Stallman
1a534b89fc (kill-line): Doc fix. 2003-04-21 01:35:20 +00:00
Kim F. Storm
de02e8b450 (pop-global-mark-quick-repeat): Remove defcustom.
(set-mark-command): Unconditionally repeat pop-global-mark without
C-x prefix.  Fix doc.
2003-03-31 21:49:09 +00:00
Kim F. Storm
18c5df4079 Rework last change so C-x C-SPC C-SPC does not
repeat pop-global-mark by default.
(pop-global-mark-quick-repeat): New user option.
(set-mark-command): Use it.
2003-03-24 11:00:39 +00:00
Kim F. Storm
66ef2df9d6 (set-mark-command): Doc fixes.
Allow pop-global-mark to be repeated with C-x C-SPC C-SPC...
C-u C-u C-SPC now unconditionally sets the mark.
2003-03-21 23:49:23 +00:00
Juanma Barranquero
39c0722f09 (backward-delete-char-untabify): Fix use of character constant. 2003-02-14 09:57:03 +00:00
Juanma Barranquero
f1180544bb Trailing whitespace deleted. 2003-02-04 12:29:42 +00:00
Richard M. Stallman
0ea364e605 (back-to-indentation): Skip all whitespace except for newlines. 2003-02-04 10:41:10 +00:00
Kim F. Storm
2a26256366 (kill-new): Improve doc string for yank-handler.
Signal args-out-of-range error if yank-handler is specified for
an empty string.
2003-01-27 21:44:48 +00:00
Kim F. Storm
44f5a7b277 Doc fixes. 2003-01-21 21:11:12 +00:00
Richard M. Stallman
c2639ed073 (completion-setup-function): Set default-directory
in the minibuffer, so it'll be copied into the completion list buffer.
2003-01-20 09:03:09 +00:00
Kim F. Storm
8254897f32 (yank-pop): Always call yank-undo-function with start <= end. 2003-01-18 23:59:12 +00:00
Kim F. Storm
be5936a745 (kill-new, kill-append, kill-region): New optional parameter yank-handler.
(yank-excluded-properties): Add yank-handler to list.
(yank-undo-function): New variable.
(yank): Use it to undo previous yank or yank-pop command.
Allow insert-for-yank to override this-command.
2003-01-18 23:34:14 +00:00
Kim F. Storm
403ca8d9a7 (clone-process): Copy process' plist to new process. 2003-01-14 10:16:00 +00:00
Markus Rost
90b4a15745 (set-variable): Load deps of custom variables without type. 2003-01-07 19:25:20 +00:00
Richard M. Stallman
d77bbdc98d (split-line): Clean up implementation. 2003-01-06 01:17:19 +00:00
Kim F. Storm
da7d231b34 (split-line): If present, copy fill-prefix from
current line to new line.  Don't copy if prefix arg.
From Lisp, arg may be an alternative prefix string to copy.
Inspired by Ehud Karni <ehud@unix.mvs.co.il>.
2003-01-03 22:46:06 +00:00
Richard M. Stallman
536b728a07 (repeat-complex-command): Signal real error on failure. 2002-12-28 21:23:23 +00:00
Stefan Monnier
2d64b6f696 (completion-setup-function): Fix last change to use
minibuffer-completing-file-name instead.
2002-12-02 22:24:34 +00:00
Richard M. Stallman
15c064363c (completion-setup-function): Handle ffap-read-file-or-url-internal
specially like read-file-name-internal.
2002-12-02 16:18:33 +00:00
Richard M. Stallman
120de5bda3 (yank-window-start): New variable.
(yank): Record yank-window-start
(yank-pop): Use yank-window-start.
2002-11-29 15:09:37 +00:00
Richard M. Stallman
40a6481652 (indicate-unused-lines, default-indicate-unused-lines): New variable aliases. 2002-11-18 04:55:28 +00:00
Dave Love
c2f516353a (quoted-insert): Bind translation-table-for-input, not
keyboard-translate-table.
2002-11-09 12:56:04 +00:00
Dave Love
940fe4866f (quoted-insert): Bind keyboard-translate-table around
read-char.
2002-11-06 23:27:24 +00:00
Richard M. Stallman
4f01718584 (toggle-truncate-lines): When turning off truncation,
clear out the hscroll value in this buffer's windows.

(display-message-or-buffer): Don't display empty output in the echo area.
2002-10-26 22:40:31 +00:00
Markus Rost
9f4b608417 (edit-and-eval-command): Protect command-history.
(repeat-complex-command):  Protect command-history.
2002-09-24 18:40:59 +00:00
Stefan Monnier
82dc968ca9 (transient-mark-mode, line-number-mode, column-number-mode):
Pass an explicit `:require nil' argument.
2002-09-13 14:21:45 +00:00
Stefan Monnier
00398e3b5c Provide `simple'. 2002-09-13 13:56:41 +00:00
Stefan Monnier
6710df484a (transient-mark-mode, line-number-mode, column-number-mode):
Use define-minor-mode.
(define-mail-user-agent): Delete.  Moved to subr.el.
2002-09-11 20:46:33 +00:00
Markus Rost
775c33bff4 (transient-mark-mode, line-number-mode, column-number-mode): Undo the
recent change in 2002-09-09T22:09:14Z!monnier@iro.umontreal.ca.  The use of define-minor-mode in
simple.el creates bootstrap problems.
2002-09-10 01:32:59 +00:00
Miles Bader
0e53a3732a (do-auto-fill): `fill-indent-according-to-mode' is a variable, not a
function.
2002-09-10 01:24:12 +00:00
Kim F. Storm
f5e130577e (keyboard-quit): Set defining-kbd-macro to nil to
cancel defining keyboard macro when applicablex.
2002-09-09 22:45:03 +00:00
Stefan Monnier
d99f849681 (what-line): Don't hard-code 1.
(transient-mark-mode, line-number-mode, column-number-mode):
Use define-minor-mode.
(do-auto-fill): Only ignore prefix if it's really empty.
2002-09-09 22:09:14 +00:00
Richard M. Stallman
12a9371238 (undo-elt-in-region): Fix one-off error at END.
(forward-visible-line): Handle invisibility by ignoring
invisible newlines.  Also include entire invisible lines beyond
the stopping point.
2002-09-09 00:27:30 +00:00
Juanma Barranquero
89a6cfe319 (choose-completion-string-functions): Fix spacing. 2002-09-06 07:17:49 +00:00
Richard M. Stallman
5560dc5d19 (kill-line): Use end-of-visible-line to determine
if rest of line is blank.
(end-of-visible-line): Cope if end-of-line moved back over
invisible intangible chars at end of line.

(completion-setup-function): Don't use directory-sep-char.
2002-09-01 13:29:34 +00:00
Richard M. Stallman
46cdfe8f2e (toggle-truncate-lines): Force redisplay. Display status message. 2002-08-13 01:48:42 +00:00
Richard M. Stallman
16236388b2 (set-variable): If given a prefix argument, set variable buffer-locally.
Give locality status in prompt.
2002-08-09 14:14:32 +00:00
Richard M. Stallman
fa1735d766 (undo, undo-more): Adjust messages when undoing in a region. 2002-07-23 19:25:27 +00:00
Richard M. Stallman
f0bfada77f (choose-completion-delete-max-match): Handle minibuffer prompts explicitly. 2002-07-18 14:57:46 +00:00
Richard M. Stallman
e36aeef949 (choose-completion-string): Doc fix. 2002-07-16 13:38:19 +00:00
Per Abrahamsen
0bb64d7645 2002-07-04 Per Abrahamsen <abraham@dina.kvl.dk>
* simple.el (toggle-truncate-lines): New command.
2002-07-04 13:36:12 +00:00
Andreas Schwab
637fff820c (shell-command-default-error-buffer): Doc fix. 2002-06-29 18:16:27 +00:00
Andreas Schwab
61b80ebf7f (display-message-or-buffer): Fix last change. 2002-06-29 18:13:06 +00:00
Andreas Schwab
d4bbcbb4dc (shell-command-on-region): Handle errors and signals
from shell command execution.
2002-06-29 18:08:32 +00:00
Richard M. Stallman
aab5d2c5d9 (shell-command): Match & only at end of whole command.
(display-message-or-buffer): Don't use echo area if output buffer is visible.
2002-06-26 08:59:32 +00:00
Richard M. Stallman
0b69eec589 (what-cursor-position): Use describe-char. 2002-06-17 16:15:09 +00:00
Miles Bader
85fd1cfa83 (line-move-finish): Inhibit field motion when computing `line-end'. 2002-06-10 08:05:13 +00:00
Richard M. Stallman
cc76a58cf1 Don't require cl. 2002-06-04 23:31:58 +00:00
Richard M. Stallman
12829a07d6 (choose-completion-string-functions): Doc fix.
(choose-completion-string): Add doc string.
2002-06-02 00:01:59 +00:00
Kim F. Storm
bbbbb15b5c Reworked 2001-06-01 change.
(choose-completion-string1): Merged back into choose-completion-string.
(choose-completion-string): Run choose-completion-string-functions
after checking for proper minibuffer window.  Added mini-p arg to
the hook functions.  Insert choice if all hook functions return nil.
(choose-completion-string-functions): Doc update.
2002-06-01 21:56:40 +00:00
Kim F. Storm
ba36181bdf (choose-completion-string-functions): New special hook.
(choose-completion-string1): Renamed from choose-completion-string.
(choose-completion-string): Run choose-completion-string-functions
until success, and only call choose-completion-string1 if it fails.
2002-06-01 00:00:29 +00:00
Richard M. Stallman
9cd450a4f0 (open-network-stream, open-network-stream-nowait)
(open-network-stream-server, process-kill-without-query):
Moved to subr.el.

(byte-compiling-files-p): Function deleted.
2002-05-30 17:12:15 +00:00
Kim F. Storm
5f64b52b67 (open-network-stream-server): Pass on optional args
sentinel and filter to make-network-process (from Luke Gorrie).
2002-05-28 22:04:14 +00:00
Kim F. Storm
d00ffe213e (push-mark-command): Added optional NOMSG arg. 2002-05-27 12:13:56 +00:00
Markus Rost
a2d10c40a8 (yank-excluded-properties): Change :version attribute to a string. 2002-05-20 03:06:24 +00:00
Pavel Janík
307645975c Follow coding conventions. 2002-05-02 05:41:46 +00:00
Eli Zaretskii
acd39eb62f (clone-indirect-buffer-other-window): Fix a typo in `pop-up-window'. 2002-05-01 15:08:25 +00:00
Kim F. Storm
8209310978 (yank-excluded-properties): Added help-echo to list. 2002-04-29 21:13:51 +00:00
Richard M. Stallman
f54b0d85a8 (next-buffer, prev-buffer): New commands.
Bind C-x left and C-x right to them.
2002-04-27 23:16:18 +00:00
Richard M. Stallman
1f98092039 (line-move-finish): Find beg and end of line
before calling line-move-to-column.  Do consider intangible
when finding the end.  Take more care in analyzing the results
of intangibility after line-move-to-column.
2002-04-22 22:35:46 +00:00
Richard M. Stallman
cfb4f12394 (yank-excluded-properties): New user option.
(yank-pop, yank): Use insert-for-yank.
2002-04-19 00:05:22 +00:00
Kim F. Storm
1841f9e393 (pop-to-mark-command): Do not set this-command.
(set-mark-command): Always jump to mark when called with arg.
2002-04-18 22:16:50 +00:00
Kim F. Storm
868c2f498c (pop-to-mark-command, push-mark-command): New commands.
(set-mark-command): Use them.
Enhanced functionality when command is repeated:
- If first command set the mark (no prefix arg), repeat temporarily
enables transient-mark-mode.
- If first command jumped to mark off ring (with argument),
repeat (with or without arg) jump to next mark off ring.
- Use C-u C-u prefix to set mark after jump.
(exchange-point-and-mark): Temporarily enable transient-mark-mode
if prefix arg.
2002-04-14 17:27:55 +00:00
Stefan Monnier
41d22ee0a0 (line-move): Use memq rather than or.
(transpose-sexps): Don't presume as much of forward-sexp's behavior.
(do-auto-fill): Use fill-move-to-break-point.
(syntax-code-table): Remove.
2002-04-11 23:44:06 +00:00
Pavel Janík
cf6f437fc9 (play-sound): Move to subr.el. 2002-04-07 10:11:24 +00:00
Pavel Janík
de6debfb1c (play-sound): New function (uses play-sound-internal). 2002-04-05 05:50:11 +00:00
Richard M. Stallman
3e505153da (kill-new): Doc fix. 2002-03-31 16:28:07 +00:00
Richard M. Stallman
2d88b5562c (play-sound-file): Moved from subr.el, made unconditional. 2002-03-29 23:16:11 +00:00
Richard M. Stallman
a615252beb (line-move-to-column): Don't call move-to-column if COL=0. 2002-03-28 18:27:23 +00:00
Pavel Janík
b75b82abf6 Fix typo. 2002-03-26 06:29:01 +00:00
Kim F. Storm
41ad623325 Test for network process support with featurep. 2002-03-21 12:37:23 +00:00
Kim F. Storm
557ba8b2d6 (open-network-stream-nowait): Use featurep.
(open-network-stream-server): Ditto.
2002-03-21 12:23:22 +00:00
Kim F. Storm
ed7069afda Update copyright.
(clone-process): Use make-network-process to clone network
processes. Get command list via (process-contact ... t).
Use set-process-query-on-exit-flag and process-query-on-exit-flag
instead of process-kill-without-query.
(open-network-stream): Replaces C-version from process.c.
(open-network-stream-nowait, open-network-stream-server): New
functions.
(process-kill-without-query): Replaces C-version from process.c.
2002-03-17 20:28:53 +00:00
Eli Zaretskii
3088377355 (shell-command-on-region): Call push-mark with
non-nil second arg, to suppress the "Mark set" message.
2002-03-09 09:06:04 +00:00
Kim F. Storm
9a98fa641d (shell-command-on-region): Report non-zero exit
status in mode line instead of buffer.
2002-02-27 23:03:34 +00:00
Richard M. Stallman
94ddbe6d9e (shell-command-on-region): Display the exit status when a command fails. 2002-02-20 22:33:01 +00:00
Kai Großjohann
cad113ae34 * lisp/simple.el (mark-word): Mark more if repeated.
* lisp/textmodes/paragraphs.el (mark-paragraph): Ditto.
(mark-end-of-sentence): Ditto.
2002-02-15 08:53:15 +00:00
Richard M. Stallman
dc7d755295 (undo-get-state, undo-revert-to-state): Fns deleted.
(transpose-subr-1): Use atomic-change-group.
2002-02-06 15:08:45 +00:00
Richard M. Stallman
195ce31160 (shell-command-on-region): Err if no mark before reading the command string. 2002-02-01 04:20:02 +00:00
Richard M. Stallman
e9cd25fe9d (line-move): If we can't move enough lines, go to beginning or end of line. 2002-01-13 04:02:49 +00:00
Richard M. Stallman
2192bd73b1 Whitespace change. 2002-01-11 21:24:17 +00:00
Richard M. Stallman
af894fc98a (line-move-invisible): New subroutine.
(line-move-to-column): New subroutine--smarter about advancing over
invisible parts of a line, or lines, but only as long as hpos grows.
(line-move-finish): New subroutine: repeatedly processes desired
column, intangibility, and fields.
(line-move): Use those subroutines.
When moving lines downward, skip invisible text first rather than last.
2001-12-28 05:15:59 +00:00
Richard M. Stallman
d26b26dc59 (eval-expression-print-level, eval-expression-print-length): Doc fixes. 2001-12-18 23:39:21 +00:00
Dave Love
058d49996c (newline): Doc fix.
(eval-expression-print-level, eval-expression-print-length): Doc
fix.  Amend :type.
(next-line, previous-line): Make arg optional.
(newline): Doc fix.
2001-12-18 15:53:57 +00:00
Richard M. Stallman
2e0336939b (undo): Always set this-command to `undo',
so that the next undo after an error will not begin redoing.

(shell-command): Doc fix.
(shell-command-on-region): If there is output an an error,
add "...Shell command failed" to the output.
2001-12-13 07:43:28 +00:00
Richard M. Stallman
cc17378efe (line-move): Cope if next-single-property-change
or previous-single-property-change returns nil.
2001-12-10 20:38:47 +00:00
Richard M. Stallman
e02e6f7502 (minibuffer-history-sexp-flag): Doc fix. 2001-11-17 22:28:30 +00:00
Richard M. Stallman
61acfe7f5d (clone-indirect-buffer): Error if major mode symbol
has a no-clone-indirect property.
(clone-buffer): Check for obvious errors before reading clone name.
2001-11-13 02:09:59 +00:00
Stefan Monnier
e1e0435051 (reindent-then-newline-and-indent): Insert the newline
before indenting the first line.
(undo-get-state, undo-revert-to-state): New funs.
(shell-command): Don't kill the buffer even if empty.
(transpose-subr-start1, transpose-subr-start2, transpose-subr-end1)
(transpose-subr-end2): Remove.
(transpose-subr): Add `special' arg and simplify.
(transpose-subr-1): Rewrite.
(do-auto-fill): Use fill-indent-according-to-mode and fill-nobreak-p.
(rfc822-goto-eoh): Simplify.
2001-10-31 00:57:04 +00:00
Kim F. Storm
db6f8ff125 Don't let kill-ring-save show extent if transient-mark-mode and region
fully visible.
2001-10-19 23:25:34 +00:00
Miles Bader
4d251ae727 (what-line): Avoid problems with field properties. 2001-10-18 01:05:28 +00:00
Miles Bader
31252c009c (display-message-or-buffer): Pass the correct buffer to `display-buffer'. 2001-10-15 01:01:21 +00:00
Stefan Monnier
01f9ba177c (minibuffer-local*-map): Remove redundant bindings. 2001-10-12 19:25:04 +00:00
Gerd Moellmann
919f28126b (end-of-buffer): Fix code scrolling specially
for the buffer end.
2001-10-10 11:55:39 +00:00
Miles Bader
6d74d713e0 (previous-matching-history-element): Fix misplaced parentheses. 2001-10-05 15:16:24 +00:00
Miles Bader
efaac2e650 (previous-matching-history-element, next-history-element)
next-complete-history-element): Use `minibuffer-' functions instead of
calling `field-' functions directly.
(minibuffer-prompt-end, minibuffer-contents):
(minibuffer-contents-no-properties, delete-minibuffer-contents):
Functions removed (now subrs).
(minibuffer-prompt-width): Use `minibuffer-prompt-end'.
2001-10-05 12:28:31 +00:00
Gerd Moellmann
49c14a0533 Comment out change of 2001-09-13. 2001-09-14 11:08:20 +00:00
Gerd Moellmann
9b35015281 (minibuffer-prompt-modification)
(minibuffer-prompt-insertion): New functions.
(minibuffer-prompt-properties): Use `modification-hooks' and
`insert-in-front-hooks'.
2001-09-13 10:02:35 +00:00
Gerd Moellmann
003550c5e3 (undo): Remove positions from buffer-undo-list up to
the next undo boundary only.
2001-09-06 08:49:34 +00:00
Gerd Moellmann
b7e91b0cf8 (backward-word): Doc fix. 2001-09-04 08:37:35 +00:00
Gerd Moellmann
e8b1643c82 (eval-expression-print-level): Fix last change. 2001-08-30 15:32:56 +00:00
Gerd Moellmann
170adbff11 (eval-expression-print-level): Change the type
of the defcustom to allow nil.
2001-08-30 11:20:45 +00:00
Eli Zaretskii
32f2f98e58 (line-number-mode): Mention the variable line-number-display-limit-width
in the doc string.
2001-08-22 18:30:36 +00:00
Miles Bader
50af0a5b40 (line-move): Undo previous change. 2001-08-16 14:51:25 +00:00
Miles Bader
1369261b86 (line-move): Pass an ESCAPE-FROM-EDGE argument of t when calling
`constrain-to-field', to avoid problems with comint prompts.
2001-08-16 07:40:51 +00:00
Gerd Moellmann
661aa5c75c (delete-trailing-whitespace): Save match data
around looking-at.  From Markus Rost <rost@math.ohio-state.edu>.
2001-07-20 09:40:27 +00:00
Gerd Moellmann
36755dd923 (set-variable): Require 'cus-edit' instead of
`wid-edit', so that the Custom widgets get defined.
2001-07-16 11:52:56 +00:00
Richard M. Stallman
fd344fb75f (shell-command-on-region): Never kill the *Shell Command Output* buffer. 2001-06-13 15:26:29 +00:00
Miles Bader
9ab59a1aa7 (delete-horizontal-space, just-one-space): Use `constrain-to-field'
instead of `field-end'/`field-beginning', because it's more efficient
for large files.
2001-05-18 07:13:47 +00:00
Gerd Moellmann
c8d6d636a8 (completion-list-mode-finish): New function.
(toplevel): Add completion-list-mode-finish to
temp-buffer-show-hook.
2001-04-10 14:48:42 +00:00
Eli Zaretskii
e02160a302 (normal-erase-is-backspace-mode): Doc fix. 2001-04-06 13:36:54 +00:00
Eli Zaretskii
7f62656ba4 (normal-erase-is-backspace): Rename from
delete-key-deletes-forward.  Doc fix.
(normal-erase-is-backspace-mode): Rename from
delete-key-deletes-forward-mode.  Doc fix.  Run
normal-erase-is-backspace-hook.
2001-04-04 14:07:13 +00:00
Eli Zaretskii
8e843bc4c7 (transient-mark-mode): Mention ESC ESC ESC in the doc string as well. 2001-03-30 11:37:52 +00:00
Eli Zaretskii
1465c66bbe (transient-mark-mode): Mention C-g in the doc string. 2001-03-30 08:35:49 +00:00
Gerd Moellmann
96e8e60394 (choose-completion-string): When not leaving the
minibuffer, raise the minibuffer frame when minibuffer-auto-raise
is set.
2001-03-08 15:47:58 +00:00
Eli Zaretskii
815588675f (kill-region, kill-line, kill-ring-save): Doc fix. 2001-02-16 12:09:39 +00:00
Richard M. Stallman
103db06c7a (delete-key-deletes-forward-mode):
Change `let' to `let*' to fix gross bug in last change.
2001-02-10 16:34:42 +00:00
Eli Zaretskii
a6a1ee536e (eval-expression): Doc fix. 2001-02-10 06:45:56 +00:00
Eli Zaretskii
9889af089d (previous-matching-history-element, next-matching-history-element): Doc fix. 2001-02-06 19:39:07 +00:00
Eli Zaretskii
d3f2278494 (kill-line): Doc fix. 2001-02-06 06:54:56 +00:00
Gerd Moellmann
24886813f4 (next-line): Goto end-of-line before inserting a newline. 2001-02-05 10:16:47 +00:00
Gerd Moellmann
be4f1e412a (delete-key-deletes-forward-mode): Treat `kp-delete'
like `delete'.
2001-01-31 15:05:25 +00:00
Gerd Moellmann
3a76825133 (delete-trailing-whitespace): Don't delete formfeeds. 2001-01-29 20:36:26 +00:00
Eli Zaretskii
4c5f7215bf (transient-mark-mode): Doc fix. 2001-01-27 17:15:58 +00:00
Eli Zaretskii
c4e39bddb4 Fix last change. 2001-01-27 11:53:09 +00:00
Eli Zaretskii
cfa702446e (transient-mark-mode): Document the fact that many
commands act on the region when mark is active.
2001-01-27 11:45:54 +00:00
Gerd Moellmann
207d7545b7 (next-line): Don't let `newline' expand abbrevs.
Simplify slightly.
(open-line): Don't let `newline' expand abbrevs.
2001-01-26 09:23:17 +00:00
Gerd Moellmann
ec9f475427 (delete-key-deletes-forward-mode): Bind <backspace>
and <delete> via function-key-map.
2001-01-16 20:25:23 +00:00
Dave Love
e1d6e383c7 (next-line-add-newlines): Add :version. 2001-01-16 12:13:43 +00:00
Dave Love
03167a34ec (backward-delete-char-untabify-method): Add :version. 2001-01-16 10:51:35 +00:00
Gerd Moellmann
a2aef08028 (set-variable): Force a thorough redisplay for the
case that the variable has an effect on the display, like
`tab-width' has.
2001-01-10 15:10:01 +00:00
Gerd Moellmann
2ece9174d1 (delete-key-deletes-forward-mode): Bind backspace
and delete in isearch-mode-map.
2000-12-28 15:16:15 +00:00
Gerd Moellmann
d25cc9a9b8 (delete-key-deletes-forward-mode): Simplify. Also
backspace key combinations, depending on
delete-key-deletes-forward.
2000-12-22 13:18:19 +00:00
Gerd Moellmann
f060b8348d (delete-key-deletes-forward): Doc fix. 2000-12-22 12:50:39 +00:00
Andrew Innes
741e56a0e6 (delete-key-deletes-forward-mode): Fix typo in
docstring.
2000-12-19 13:03:33 +00:00
Dave Love
15d0c9b1d5 (mail-user-agent): Doc fix.
(input-mode-8-bit): Removed.
2000-12-18 17:09:42 +00:00
Miles Bader
7981d89f17 (delete-trailing-whitespace): Remove extraneous let. 2000-12-15 16:25:51 +00:00
Eli Zaretskii
13a9eed7d9 (delete-key-deletes-forward-mode): Treat ms-dos and
windows-nt as windowed environments, even under -nw.
2000-12-14 16:51:52 +00:00
Gerd Moellmann
1d4b11bf96 (delete-key-deletes-forward): New user-option.
(delete-key-deletes-forward-mode): New function.
2000-12-14 13:36:59 +00:00
Miles Bader
5ff4ba3ddf (delete-horizontal-space): Add BACKWARD-ONLY parameter.
Respect field end too.
(just-one-space): Respect fields as `delete-horizontal-space'.
(newline-and-indent, reindent-then-newline-and-indent): Use
`delete-horizontal-space'.
2000-12-12 01:20:55 +00:00
Gerd Moellmann
ab7e20d586 (kill-new): Don't try to setcar kill-ring if it is
nil.
2000-12-11 15:33:34 +00:00
Miles Bader
5c9b3fac0e (delete-trailing-whitespace): Don't delete newlines too. 2000-12-03 02:29:36 +00:00
Gerd Moellmann
95791033b8 (next-line-add-newlines): Change default to nil. 2000-12-02 10:14:48 +00:00
Miles Bader
b90d06b07e (minibuffer-contents, minibuffer-contents-no-properties)
(delete-minibuffer-contents): New functions.
2000-12-01 03:31:49 +00:00
Miles Bader
fa6d1ca870 (delete-horizontal-space): Handle fields more generally. 2000-11-28 13:07:12 +00:00
Gerd Moellmann
dfe8ece372 (delete-horizontal-space): Handle minibuffer prompt. 2000-11-28 11:54:12 +00:00
Eli Zaretskii
0b3f96d4d8 (shell-command): Mention the effect of the prefix
argument in the doc string.
2000-11-25 08:48:13 +00:00
Sam Steingold
eaae8106d7 * simple.el (delete-trailing-whitespace): New interactive function.
* progmodes/ada-mode.el (ada-mode): Use it instead of
`ada-remove-trailing-spaces'
(ada-remove-trailing-spaces): Removed.
* textmodes/two-column.el (2C-merge): Recommend it in the doc.
* textmodes/picture.el (picture-mode-exit): Call it instead of
`picture-clean'.
(picture-clean): Removed.
2000-11-22 20:59:39 +00:00
Stefan Monnier
58dd38f196 (comment-line-break-function): Use the new name
indent-new-comment-line -> comment-indent-new-line.
(clone-indirect-buffer): Don't ignore NORECORD.
(next-completion): Properly handle the case where items are adjacent.
2000-11-22 19:47:30 +00:00
Miles Bader
6e7d0ff7bc (minibuffer-avoid-prompt): New function. 2000-11-21 15:58:33 +00:00
Gerd Moellmann
9985d3915e (byte-compiling-files-p): New function. 2000-11-09 23:01:40 +00:00
Gerd Moellmann
939ac10c1e (shell-command, display-message-or-buffer)
(shell-command-on-region): Mention resize-mini-windows in the doc
string.
(display-message-or-buffer): Take the value of resize-mini-windows
into account.
2000-11-08 17:35:57 +00:00
Miles Bader
3c1b77ca33 (undo): Correctly distinguish between numeric and non-numeric prefix
args in non-transient-mark-mode, as per the doc string.  When in
transient-mark-mode, treat all prefix-args as numeric.
2000-10-26 07:44:46 +00:00
Miles Bader
e276a14ac5 (previous-matching-history-element):
Position point on match.
  Handle N == 0 correctly.
  Miscellaneous cleanup.
2000-10-26 04:35:48 +00:00
Stefan Monnier
a1a8827285 (syntax-flag-table, string-to-syntax): Remove. 2000-10-15 22:09:04 +00:00
Eli Zaretskii
8be7408c88 (kill-line): Doc fix. 2000-10-08 06:10:40 +00:00
Miles Bader
2a3f00bf5f Doc fix. 2000-10-08 01:37:42 +00:00
Dave Love
20ecc11096 (backward-word): Doc fix. 2000-10-06 18:13:28 +00:00
Miles Bader
f69aad2bcb (display-message-or-buffer): New function.
(shell-command-on-region): Use `display-message-or-buffer'.
2000-10-06 11:35:56 +00:00
Miles Bader
0693380496 (shell-command-on-region): If the output is short enough to display in
an expanded echo area, show it here.
2000-10-06 08:19:15 +00:00
Miles Bader
8dc3ba7d01 (minibuffer-temporary-goal-position):
New variable.
(next-history-element):
  Try to keep the position of point in the input string constant.
2000-10-03 17:32:34 +00:00
Stefan Monnier
76c64e2476 (read-expression-map): Define more properly.
(comment-indent-hook): Remove.
(string-to-syntax): Bug fix.
2000-09-29 03:18:24 +00:00
Dave Love
9023837e89 (read-mail-command): Doc fix.
(mail-user-agent): Add gnus-user-agent option for upcoming Gnus.
2000-09-12 17:59:26 +00:00
Dave Love
a339f9097e Autoload widget-convert when compiling.
(mail-user-agent): Doc fix.
2000-08-15 14:29:03 +00:00
Miles Bader
59b19d324b (line-move):
Pass INHIBIT-CAPTURE-PROPERTY argument to constrain-to-field.
  Pass nil ESCAPE-FROM-EDGE argument to constrain-to-field.
2000-07-24 23:48:53 +00:00
Gerd Moellmann
bd7acc8d7c (universal-argument-map): Bind numeric keypad keys
kp-0 to kp-9 and kp-subtract.
(digit-argument): Handle these keys.
2000-07-20 20:35:05 +00:00
Gerd Moellmann
56437999a0 (eval-expression-print-length): Change custom type to
allow entering nil as value.
2000-07-13 17:46:34 +00:00
Gerd Moellmann
3a99c8191b (turn-off-auto-fill): New function. 2000-06-20 18:24:59 +00:00
Dave Love
7b0c573e6a (newline): Don't bind before-change-function, after-change-function. 2000-05-31 22:50:41 +00:00
Stefan Monnier
64e5710226 (fill-comment, comment-column, comment-start)
(comment-start-skip, comment-end, comment-indent-function)
(block-comment-start, block-comment-end, indent-for-comment)
(set-comment-column, kill-comment, comment-padding, comment-region)
(comment-multi-line, indent-new-comment-line): Remove.
2000-05-25 19:13:41 +00:00
Kenichi Handa
24dad5d5d3 (what-cursor-position): If DETAIL is non-nil, call
describe-char-after instead of displaying the detail in the echo
area.
2000-05-13 00:28:57 +00:00
Gerd Moellmann
c2e303c840 (shell-command): Set default directory for "*Shell
Command Output" buffer.
2000-04-25 19:14:45 +00:00
Gerd Moellmann
14583cb1e0 Fix typo in key binding of clone-indirect-buffer-other-window. 2000-04-19 20:45:52 +00:00
Gerd Moellmann
7e3afb0402 (clone-indirect-buffer-other-window): New command.
(clone-indirect-buffer): Add optional arg NORECROD.
(toplevel): Bind `C-x 4 c' to clone-indirect-buffer-other-window.
2000-04-19 20:40:46 +00:00
Gerd Moellmann
fa65f20bcb (clone-indirect-buffer): New function. 2000-04-17 15:24:58 +00:00
Gerd Moellmann
0740c73886 (sendmail-user-agent-compose): Recognize a `body'
header and insert its value as mail body.
2000-04-03 19:31:33 +00:00
Gerd Moellmann
f1a9c7b94a (syntax-code-table, syntax-flag-table): New variables.
(string-to-syntax): New function.
2000-03-18 01:33:56 +00:00
Gerd Moellmann
c069a4804f (append-to-buffer): Update point of windows after
insertion.
2000-03-17 22:33:28 +00:00
Dave Love
0d6e23cfa7 (completion-setup-function): Use display-color-p. 2000-03-12 15:34:37 +00:00
Dave Love
e761e42c18 (zap-to-char, kill-line, kill-region, kill-word)
(backward-kill-word): Revert addition of * to interactive spec.
2000-02-23 23:08:02 +00:00
Gerd Moellmann
74fd23805e (what-cursor-position): Change formatting of
messages.
2000-01-28 17:27:56 +00:00
Gerd Moellmann
ed8bcabea8 (eval-expression): Don't bind debug-on-error if
eval-expression-debug-on-error is nil.  Detect changed
debug-on-error, and propagate new value to global binding, if
eval-expression-debug-on-error is non-nil,
(eval-expression-debug-on-error): Change doc string.
2000-01-12 13:06:52 +00:00
Richard M. Stallman
83c8f4616a (with-syntax-table): Moved to subr.el. 2000-01-12 03:08:29 +00:00
Dave Love
7683b5c2bf (with-syntax-table): Fix backquoting.
(read-mail-command): New option.
2000-01-07 12:53:36 +00:00
Eli Zaretskii
0aad4805af (completion-setup-function): Count completion-size
from minibuffer-prompt-end, not from point-min.
2000-01-03 09:18:54 +00:00
Richard M. Stallman
f436a90ae2 (choose-completion-string): In minibuffer,
do not delete the prompt string.
1999-12-31 04:02:38 +00:00
Kenichi Handa
f0d16a7fec (what-cursor-position): Show "(composed)" if the
character is composed.
1999-12-15 00:39:33 +00:00
Stefan Monnier
a1eb02bddb (kill-region): Use the new `delete-and-extract-region'
rather than the undo log (which is incorrect with *-change-functions).
1999-12-07 06:30:44 +00:00
Gerd Moellmann
6cb6e7a20b (insert-buffer): Doc fix. 1999-12-06 13:34:50 +00:00
Gerd Moellmann
c29cefdfa0 (with-syntax-table): Don't switch buffers. 1999-11-21 15:08:37 +00:00
Dave Love
618bd252b5 (input-mode-8-bit): Fix the customization. 1999-11-18 23:49:29 +00:00
Gerd Moellmann
aad9b36243 (with-syntax-table): Save buffer explicitly instead of
using save-excursion.
1999-11-17 21:09:57 +00:00
Gerd Moellmann
d01a33cf8d (with-syntax-table): New. 1999-11-16 13:29:51 +00:00
Sam Steingold
1e722f9f18 * simple.el (backward-delete-char-untabify):
backward-delete-char-untabify-method can be `all' now - to delete
hungrily including newlines.
1999-11-15 16:11:14 +00:00
Gerd Moellmann
e3de129b92 (comment-region): Strip off white space at end of
comment-start.
1999-11-05 13:36:19 +00:00
Gerd Moellmann
12de1411b3 (previous-matching-history-element)
(next-history-element): Use delete-field instead of erase-field.
1999-11-04 20:42:27 +00:00
Gerd Moellmann
314808dc64 (end-of-buffer): Use window-end to find the window end
instead of vertical-motion because this handles variable-height
lines correctly.
1999-11-01 11:44:58 +00:00
Dave Love
22e4ec9848 (input-mode-8-bit): New defcustom. 1999-10-26 16:27:51 +00:00
Gerd Moellmann
bf2083f9c7 (minibuffer-prompt-end): Return the position
after the prompt, not the position of that last character
of the prompt.
1999-10-17 16:30:39 +00:00
Gerd Moellmann
a4d1159b77 Doc fixes.
(previous-matching-history-element, next-history-element):
Change to work correctly even if the point is in the prompt.
(choose-completion-string): Likewise.
(minibuffer-prompt-width): New function (compatibility with old subr).
(line-move): Supply new ESCAPE-FROM-EDGE argument to
constrain-to-field.
(line-move): Use constrain-to-field to avoid
moving into a prompt.
(previous-complete-history-element): Clarify doc string.
(next-complete-history-element): Likewise.
Use field-beginning instead of point-min.
(next-matching-history-element): Use field-beginning and
erase-field instead of point-min and erase-buffer.
(previous-matching-history-element): Get the
minibuffer input with field-string instead of buffer-string.
(choose-completion-string): Likewise.
(next-history-element): Likewise.
Erase the minibuffer input with erase-field, not erase-buffer.
Use field-beginning to find the beginning of the input.
1999-10-17 12:50:04 +00:00
Stefan Monnier
b005abd5c0 (shell-command, shell-command-on-region): use make-temp-file.
(clone-buffer, clone-process, clone-buffer-hook): new functions.
1999-10-13 00:48:17 +00:00
Richard M. Stallman
b49df39ddc (eval-expression-print-level): New variable.
(eval-expression-print-length): New variable.
(eval-expression-debug-on-error): New variable.
(eval-expression): Bind print-level, print-length and
debug-on-error from those vars.
1999-09-14 07:00:04 +00:00
Gerd Moellmann
280decf4d1 (next-history-element): Use minibuffer-prompt-end once
again.  Remove test for minibuffer-prompt-in-buffer.
1999-09-02 20:35:50 +00:00
Eli Zaretskii
171a45d9f6 (shell-command, shell-command-on-region): Use
make-temp-name properly.  Use small-temporary-file-directory if
non-nil, otherwise temporary-file-directory, to generate temporary
files.
1999-09-02 12:05:07 +00:00
Gerd Moellmann
89ee2bf620 (kill-word): Undo previous change. 1999-08-25 21:12:15 +00:00
Gerd Moellmann
572da0fe1e (next-history-element): Use minibuffer-prompt-end.
Remove test for minibuffer-prompt-in-buffer.
(kill-word): Don't move point into mini-buffer prompt.
1999-08-21 19:27:30 +00:00
Karl Heuer
2127b7c641 (assoc-ignore-case, assoc-ignore-representation): Moved to subr.el. 1999-08-16 21:04:19 +00:00
Karl Heuer
93be67de75 Functions reordered. 1999-08-16 20:42:38 +00:00
Dave Love
86a4c778b5 (hscroll-step, hscroll-point-visible, hscroll-window-column): Remove
now we have the mentioned real horizontal autoscrolling.
1999-08-10 17:38:19 +00:00
Richard M. Stallman
a92da273b4 (shell-command-on-region): EXIT-STATUS can be a string. 1999-08-01 16:12:32 +00:00
Gerd Moellmann
fd6bc60fe4 (next-history-element): Set point to the end of the
prompt if minibuffer-prompt-in-buffer.
1999-07-23 10:59:35 +00:00
Dave Love
74399eac92 (append-to-buffer, prepend-to-buffer, copy-to-buffer): Check for
readonly buffer in interactive spec.
(zap-to-char, kill-line, kill-region, comment-region, kill-word)
(backward-kill-word): Add * to interactive spec.
1999-07-20 16:09:54 +00:00