Commit graph

841 commits

Author SHA1 Message Date
Kim F. Storm
ed02c1db47 (line-move): Add fourth optional arg try-vscroll which
must be set to perform auto-window-vscroll.
When moving backwards and doing auto-window-vscroll, automatically
vscroll to the last part of lines which are taller than the window.
(next-line, previous-line): Set try-vscroll arg on line-move.
2005-02-19 23:30:29 +00:00
Richard M. Stallman
9bb25ed3b8 (eval-expression-print-format): Avoid warning about edebug-active. 2005-02-10 06:47:58 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Luc Teirlinck
28cb725d59 (undo-ask-before-discard): New var.
(undo-outer-limit-truncate): Implement it.
(undo-extra-outer-limit): Doc update.
2005-01-30 00:32:39 +00:00
Richard M. Stallman
a7fe694c13 (undo): Fix the test for continuing a series of undos.
(undo-more): Set pending-undo-list to t when we reach end.
(pending-undo-list): defvar moved up.
2005-01-29 17:24:41 +00:00
Kim F. Storm
257a694c19 * simple.el (line-move): Adapt to new return value from
pos-visible-in-window-p.
2005-01-23 13:28:16 +00:00
Kim F. Storm
860ea5165a (line-move): Fix last change. Check partial
visibility at point rather than at window-start.
2005-01-23 00:53:32 +00:00
Kim F. Storm
16c2f92f01 (line-move-1): Rename from line-move.
(line-move): New function that adjusts vscroll for partially
visible rows, and calls line-move-1 otherwise.
2005-01-22 01:44:56 +00:00
Stefan Monnier
14b495ffb1 (blink-matching-open): Strip extra info from syntax. 2005-01-18 20:50:43 +00:00
Kim F. Storm
68c16b5994 (just-one-space): Make arg optional. 2005-01-17 10:56:07 +00:00
Richard M. Stallman
56abefac4f (just-one-space): Argument specifies number of spaces.
(eval-expression-print-format): Avoid warning about edebug-active.
2005-01-15 18:08:46 +00:00
Juri Linkov
0137bae605 (pop-mark): Move deactivate-mark out of conditional
part to deactivate the active mark regardless of the state of the
mark ring.
2005-01-12 00:42:57 +00:00
Kim F. Storm
771069f89d (completion-list-mode-map): Map follow-link to mouse-face. 2005-01-06 22:00:36 +00:00
Richard M. Stallman
d020fce006 (undo): Use undo-equiv-table to detect
unexpected changes since previous undo.
(undo-list-saved): Variable deleted.
(buffer-disable-undo): Don't alter undo-list-saved.
2004-12-31 15:13:00 +00:00
Richard M. Stallman
a1a801de6a (mark-word): New arg ALLOW-EXTEND
enables the feature to extend the existing region.
2004-12-29 01:33:04 +00:00
Richard M. Stallman
0d808a6319 (buffer-disable-undo): Fix previous change. 2004-12-28 05:11:26 +00:00
Richard M. Stallman
e829899894 (undo): Fix previous change. 2004-12-27 22:12:53 +00:00
Richard M. Stallman
e967cd114c (next-error-buffer-p): New arg AVOID-CURRENT.
Test that the buffer is live, and maybe reject current buffer too.
Rewrite for clarity.
(next-error-find-buffer): Rewrite for clarity.

(undo-list-saved): New variable (buffer-local).
(undo): Set and test it.

(next-matching-history-element): Use same
`interactive' form as previous-matching-history-element.
2004-12-27 16:34:43 +00:00
Richard M. Stallman
b6e8e8e55d (undo-outer-limit-truncate): New function.
(undo-outer-limit-function): Use undo-outer-limit-truncate.
2004-12-21 11:37:52 +00:00
Kim F. Storm
24199fe75a (inhibit-mark-movement): Remove defvar.
(beginning-of-buffer, end-of-buffer): Don't use it.
2004-12-14 12:17:43 +00:00
Juri Linkov
f1e2a03326 (next-error-buffer-p, next-error-find-buffer): Doc fix. 2004-12-14 00:51:02 +00:00
Juri Linkov
705a593394 * simple.el (beginning-of-buffer, end-of-buffer):
Do not push mark when mark is active in transient-mark-mode.
* simple.el (mark-word):
Extend the region when mark is active in transient-mark-mode,
regardless of the last command.  Doc fix.
* simple.el (mark-word): Preserve direction when repeating.
Make arg optional.  Interactive "p" -> "P".
(transient-mark-mode, inhibit-mark-movement): Doc fix.
2004-12-13 03:08:52 +00:00
Stefan Monnier
c6db81aa8d (blink-matching-open): Obey syntax-table text properties. 2004-12-03 22:26:13 +00:00
Teodor Zlatanov
5f9e0ca5da simple.el (next-error-buffer-p): allow for inclusive and
exclusive tests for finding a buffer
(next-error-find-buffer): pass the exclusive and inclusive tests
to next-error-buffer-p

replace.el (occur-next-error): switch to the Occur buffer when
appropriate, and use the exclusive filter to
next-error-find-buffer to do it.  Use the absolute value of the
motion amount.
2004-11-29 18:44:29 +00:00
Richard M. Stallman
20782abb0e (line-move-finish): New arg FORWARD.
Ignore invisible newlines, not intangible ones.
Conditions for acceptable stopping positions depend on FORWARD.
(line-move): Pass FORWARD arg to line-move-finish.
2004-11-20 19:08:45 +00:00
Richard M. Stallman
bbf4169032 (next-error group, face): Move before first use.
(next-error-highlight, next-error-highlight-no-select): Likewise.

(line-move-invisible-p): Renamed from line-move-invisible.
(line-move): New args NOERROR and TO-END.
Return t if if succeed in moving specified number of lines.
(move-end-of-line): New function.

(beginning-of-buffer-other-window, end-of-buffer-other-window):
Use with-no-warnings.
2004-11-08 16:59:43 +00:00
Kim F. Storm
8a7644e9fd (keyboard-quit): Call kmacro-keyboard-quit. 2004-11-01 23:03:12 +00:00
Kai Großjohann
85af630d59 (process-file): Fix logic. 2004-10-25 08:31:52 +00:00
Kai Großjohann
8de40f9f3b (process-file): Accept nil for INFILE. Reported by
Luc Teirlinck.
2004-10-24 09:06:05 +00:00
Kai Großjohann
0457dd5538 * simple.el (process-file): New function, similar to call-process
but supports file handlers.
* vc.el (vc-do-command): Use it, instead of call-process.
* net/tramp-vc.el (vc-do-command): Do not advise it if
process-file is fboundp.
* net/tramp.el (tramp-file-name-handler-alist): Add entry for
process-file.
(tramp-handle-process-file): New function.
(tramp-file-name-for-operation): Support process-file.
2004-10-23 19:52:18 +00:00
Luc Teirlinck
e174f8db47 (fundamental-mode): Run `after-change-major-mode-hook'. 2004-09-19 00:02:44 +00:00
Kim F. Storm
17aa33855f (choose-completion-string): Set buffer before running
choose-completion-string-functions hook so it can be buffer-local.
2004-09-12 18:52:03 +00:00
Eli Zaretskii
8a98a6c2fe (next-error-follow-minor-mode): Fix last change. 2004-09-06 18:51:57 +00:00
Eli Zaretskii
2a223f35db Fix last change. 2004-09-04 13:06:38 +00:00
Eli Zaretskii
282d6eaec0 (next-error-follow-mode, next-error-follow-mode-post-command-hook):
New functions.
(next-error-follow-last-line): New defvar.
2004-09-04 12:45:26 +00:00
Juri Linkov
ee9c5954f0 * simple.el (next-error): New defgroup and defface.
(next-error-highlight, next-error-highlight-no-select):
New defcustoms.
(next-error-no-select): Let-bind next-error-highlight to the value
of next-error-highlight-no-select before calling `next-error'.
2004-09-01 18:41:06 +00:00
Juri Linkov
03e75c7e0a * simple.el (next-error-find-buffer): Move the rule
"if current buffer is a next-error capable buffer" after the
rule "if next-error-last-buffer is set to a live buffer".
Simplify to test all rules in one `or'.
(next-error): Doc fix.
2004-09-01 17:05:59 +00:00
Juri Linkov
310abb0b81 (next-error, previous-error, first-error)
(next-error-no-select, previous-error-no-select):
Make arguments optional.
2004-09-01 16:19:04 +00:00
Richard M. Stallman
63619f4233 (shell-command-on-region): New arg DISPLAY-ERROR-BUFFER
controls whether to display the error buffer.
2004-08-22 16:59:57 +00:00
Eli Zaretskii
abaf2e77e7 (completion-root-regexp): New defvar.
(completion-setup-function): Use it instead of a literal string.
2004-08-07 16:47:41 +00:00
Eli Zaretskii
55c4a67ca8 (completion-setup-function): Compute the common parts
and the first difference place correctly when
partial-completion-mode is on.
2004-07-23 11:53:07 +00:00
Kim F. Storm
a416e7ef56 (inhibit-mark-movement): New defvar.
(beginning-of-buffer, end-of-buffer): Do not push mark if
inhibit-mark-movement is non-nil or C-u prefix is given.
2004-07-16 10:42:00 +00:00
Richard M. Stallman
0fa19a5713 (current-word): Doc fix. 2004-07-09 16:08:17 +00:00
Richard M. Stallman
5794c45d21 (previous-matching-history-element): Specify a default. 2004-06-13 22:00:17 +00:00
Juri Linkov
c9f0110e21 (eval-expression-print-format): Don't print additional
information on the first call to `eval-print-last-sexp'.
(next-error-find-buffer): Fix punctuation.
(killing) <defgroup>: Fix punctuation.
(yank-excluded-properties): Change group from editing to killing.
2004-06-10 04:20:02 +00:00
Juanma Barranquero
c15dc81fc3 (kill-region): Doc fix. 2004-06-07 20:52:16 +00:00
Juri Linkov
fa219ebdf7 (eval-expression-print-format): New fun.
(eval-expression): Print additionally the value returned by
`eval-expression-print-format'.
2004-05-28 21:00:14 +00:00
Juri Linkov
675254bc4b (next-error-find-buffer): Add a rule to return next-error capable buffer
if one window on the selected frame displays such buffer.
2004-05-23 21:05:08 +00:00
Stefan Monnier
621a3f6266 (do-auto-fill): Remove unused vars bol' and opoint'.
(completion-setup-function): Use with-current-buffer.
Properly save excursion.  Simplify.
Don't assume there is necessarily a `mouse-face' property somewhere.
2004-05-19 19:10:19 +00:00
Juanma Barranquero
e249a6d8e2 (next-error): Fix typo in docstring.
(open-line): Make argument names match their use in docstring.
(split-line): Fix docstring.
2004-05-07 22:31:54 +00:00