Commit graph

1223 commits

Author SHA1 Message Date
Chong Yidong
b677cb960a (visual-line-mode): Add lighter. 2008-07-21 03:54:03 +00:00
Chong Yidong
4dec5cff26 (visual-line): New custom group.
(visual-line-fringe-indicators): New var.
(visual-line-mode): Set fringe-indicator-alist based on
visual-line-fringe-indicators.
2008-07-21 03:50:17 +00:00
Chong Yidong
a2cf21a2c4 (line-move-visual): Make it a defcustom.
(line-move-1): Convert temporary-goal-column back to an integer if
it was set as a float by a previous call to line-move-visual.
(end-of-visual-line, beginning-of-visual-line, kill-visual-line)
(next-logical-line, previous-logical-line)
(turn-on-visual-line-mode): New functions.
(visual-line-mode-map): New variable.
(visual-line-mode, global-visual-line-mode): New minor mode.
2008-07-17 23:37:50 +00:00
Adrian Robert
edfda78355 merging Emacs.app (NeXTstep port) 2008-07-15 18:15:18 +00:00
Chong Yidong
2c80f06bd6 (line-move-visual): Handle null pixel position gracefully. 2008-07-12 18:33:47 +00:00
Chong Yidong
53a22af4f7 (previous-line, next-line): Update docstring. 2008-07-11 18:11:06 +00:00
Chong Yidong
4efebb82ef (line-move-visual): Obey goal-column and no-error arg.
(track-eol, temporary-goal-column): Update docstring.
(move-end-of-line, move-beginning-of-line): Bind line-move-visual
to nil.
(line-move-visual): New var.
(line-move-visual): New function.
(line-move): Call line-move-visual.
2008-07-11 18:07:01 +00:00
Stefan Monnier
d445b3f863 (special-mode-map): New var.
(special-mode): New major mode.
2008-06-20 17:10:33 +00:00
Chong Yidong
2a1e0c92c3 (line-move-1): If we did not move as far as desired, ensure that
point-left and point-entered hooks are called.
2008-06-03 22:56:56 +00:00
Stefan Monnier
ba2b460a1b Docstring improvement. 2008-05-28 17:36:04 +00:00
Michael Albinus
5a5abb2cee * simple.el (start-file-process): Clarify docstring. 2008-05-09 17:39:33 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Stefan Monnier
6138158d86 * minibuffer.el (completion-common-substring): Mark obsolete.
(completions-first-difference, completions-common-part): Move from simple.el.
(completion-hilit-commonality): New fun.
(display-completion-list, completion-emacs21-all-completions)
(completion-emacs22-all-completions): Use it.
* simple.el (completions-first-difference, completions-common-part):
Move to minibuffer.el.
(choose-completion-string): Use field functions and minibufferp.
(completion-setup-function): Don't set completions faces.
2008-04-29 05:36:55 +00:00
Glenn Morris
9b59816e23 (quoted-insert, zap-to-char): Revert previous change. 2008-04-26 20:13:00 +00:00
Glenn Morris
b528434a25 (quoted-insert, zap-to-char): Remove uses of obsolete
`translation-table-for-input'.
2008-04-26 02:34:49 +00:00
Juri Linkov
a98a2fe87a (minibuffer-default-add-shell-commands): New function.
Use declare-function for mailcap-file-default-commands from "mailcap".
(shell-command): Set local minibuffer-default-add-function to
minibuffer-default-add-shell-commands in minibuffer-with-setup-hook
before calling read-shell-command.  Set 4th arg default-value of
read-shell-command to relative buffer-file-name in file buffers.
2008-04-22 19:50:11 +00:00
Stefan Monnier
d23734dc17 (choose-completion-string): Use minibuffer-completion-table. 2008-04-21 20:48:10 +00:00
Stefan Monnier
e2947429e7 * minibuffer.el (completion-all-completion-with-base-size): New var.
(completion--some): New function.
(completion-table-with-context, completion--file-name-table):
Return the base-size if requested.
(completion-table-in-turn): Generalize to multiple arguments.
(complete-in-turn): Compatibility alias.
(completion-styles-alist): New var.
(completion-styles): New customization.
(minibuffer-try-completion, minibuffer-all-completions):
New functions.
(minibuffer--do-completion, minibuffer-complete-and-exit)
(minibuffer-try-word-completion): Use them.
(display-completion-list, minibuffer-completion-help): Use them.
Handle all-completions's new base-size info to set completion-base-size.
* info.el (Info-read-node-name-1): Use completion-table-with-context,
completion-table-with-terminator and complete-with-action.
Remove the now obsolete completion-base-size-function property.
* simple.el (completion-list-mode-map): Move init into declaration.
(completion-list-mode): Use define-derived-mode.
(completion-setup-function): Use any completion-base-size that may
have been set before.  Remove handling of completion-base-size-function.
* loadup.el: Move abbrev.el up earlier.
2008-04-13 22:12:02 +00:00
Stefan Monnier
21622c6d10 * minibuffer.el (complete-with-action, lazy-completion-table):
Move from subr.el.
(apply-partially, completion-table-dynamic)
(completion-table-with-context, completion-table-with-terminator)
(completion-table-in-turn): New funs.
(completion--make-envvar-table, completion--embedded-envvar-table): New funs.
(read-file-name-internal): Use them.
(completion-setup-hook): Move from simple.el.
* subr.el (complete-with-action, lazy-completion-table):
* simple.el (completion-setup-hook): Move to minibuffer.el.
2008-04-11 22:28:02 +00:00
Glenn Morris
627bb5dcb5 (toggle-truncate-lines): Doc fix. 2008-04-10 07:46:40 +00:00
Stefan Monnier
7c37335792 (set-fill-column): Prompt rather than error by default. 2008-04-04 16:16:23 +00:00
Chong Yidong
ac1491a77f (handle-shift-selection): New arg. 2008-04-03 16:37:39 +00:00
Stefan Monnier
d34c311ab4 (beginning-of-buffer, end-of-buffer, goto-line, undo)
(copy-region-as-kill, kill-ring-save, use-region-p, mark-word)
(keyboard-escape-quit): Check region-active-p i.s.o transient-mark-mode.
2008-04-03 02:16:17 +00:00
Chong Yidong
109cfe4e37 (deactivate-mark): When the mark is temporarily
active, restore the original value of transient-mark-mode.
(set-mark-command): First deactivate the mark if was temporarily
active.
(exchange-point-and-mark): Reactivate the mark if it was
temporarily active.
(handle-shift-selection): New fun.
(transient-mark-mode): Move var documentation here from buffer.c.
(next-line, previous-line, backward-word, move-end-of-line)
(move-beginning-of-line, forward-to-indentation)
(backward-to-indentation, back-to-indentation)
(beginning-of-buffer, end-of-buffer): Add ^ interactive spec.
2008-04-02 20:16:10 +00:00
Juri Linkov
7f914bbedf (minibuffer-default-add-function): New variable with
the default to minibuffer-default-add-completions.
(minibuffer-default-add-done): New variable.  Make it buffer-local.
(minibuffer-default-add-completions): New function.
(goto-history-element): Set minibuffer-default-add-done to t and
call a function in minibuffer-default-add-function when the
specified absolute history position is greater than the length of
the minibuffer-default list and minibuffer-default-add-done is nil.
Change "^End of history; no next item$" to "^End of defaults;
no next item$".
2008-03-29 22:56:17 +00:00
Stefan Monnier
2977fc373a (activate-mark): New function.
(set-mark-command): Use it with region-active-p to clean up the code.
(exchange-point-and-mark): Invert the meaning of C-u when
transient-mark-mode is active.
2008-03-26 03:40:40 +00:00
Chong Yidong
715043a5cb (transient-mark-mode): Turn on by default. 2008-03-23 22:52:20 +00:00
Stefan Monnier
29b465e1e3 (read-shell-command): Other typo. 2008-03-20 21:30:29 +00:00
Stefan Monnier
7c6d20657f (read-shell-command): Typo. 2008-03-20 19:52:30 +00:00
Stefan Monnier
e5c4079cc4 (minibuffer-local-shell-command-map): New var.
(minibuffer-complete-shell-command, read-shell-command): New funs.
(shell-command, shell-command-on-region): Use them.
2008-03-20 19:48:07 +00:00
Juri Linkov
f564644bb2 (goto-line): Leave mark at previous position. Doc fix. 2008-03-16 17:45:11 +00:00
Dan Nicolaescu
f31b125795 * faces.el (xw-defined-colors):
* simple.el (widget-convert, shell-mode): Declare as functions
instead of autoloading.

* abbrev.el:
* button.el:
* cus-face.el:
* ediff-hook.el:
* emacs-lisp/backquote.el:
* emacs-lisp/timer.el:
* facemenu.el:
* faces.el:
* menu-bar.el:
* simple.el:
* subr.el:
* textmodes/fill.el:
* textmodes/paragraphs.el: Remove autoloads, redundant when the
files are preloaded.
2008-03-14 17:42:18 +00:00
Chong Yidong
17923ef297 (set-mark-command): Doc fix. 2008-03-11 02:00:08 +00:00
Glenn Morris
43d16385af (transient-mark-mode): Don't turn on by default. 2008-03-03 02:16:29 +00:00
Stefan Monnier
6d25a31264 (set-mark-command): Deactivate mark on second C-SPC C-SPC
when using transient-mark-mode.
2008-02-26 19:41:53 +00:00
Dan Nicolaescu
a2b84f35b3 * simple.el (transient-mark-mode): Add an :init-value.
* startup.el (command-line): Use custom-reevaluate-setting for
transient-mark-mode.

* callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
with Qt.
2008-02-17 16:57:44 +00:00
Stefan Monnier
64663f061c (clone-indirect-buffer-hook): New hook.
(clone-indirect-buffer): Run it.
2008-02-12 02:25:10 +00:00
Glenn Morris
3a77346c8e Kevin Ryde <user42 at zip.com.au>
(completion-list-mode): Show full completion-list-mode-map in the docstring.
2008-02-11 04:03:25 +00:00
Miles Bader
430d2ee291 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
2008-01-09 01:21:15 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Miles Bader
a0c92ed92d Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-306
2007-12-29 02:39:17 +00:00
Miles Bader
b17f53abc2 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-966
2007-12-28 22:26:14 +00:00
Richard M. Stallman
afa39f21c8 (region-active-p): Doc fix. 2007-12-25 23:00:51 +00:00
Richard M. Stallman
02d5251960 (region-active-p): New function. 2007-12-25 22:43:44 +00:00
Richard M. Stallman
cb3a9d33b3 (use-region-p): Renamed from `region-active-p'. 2007-12-25 22:12:56 +00:00
Richard M. Stallman
4496b02bed (yank-pop-change-selection): New option.
(current-kill): Obey it.
2007-12-25 20:19:13 +00:00
Richard M. Stallman
98b2fff491 (select-active-regions): New option.
(set-mark): Obey it.
2007-12-25 20:02:45 +00:00
Richard M. Stallman
d03b9b3108 (region-active-p): New function.
(use-empty-active-region): New variable.
2007-12-23 21:46:25 +00:00
Eli Zaretskii
987ec16d97 (set-variable-value-history): Add reference to history-length in
the doc string.
2007-12-22 17:15:48 +00:00