aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/simple.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/simple.el (execute-extended-command): Set real-this-command.Stefan Monnier2012-06-021-4/+8
| | | | | | | | * src/keyboard.c: Export real-this-command to Elisp. (syms_of_keyboard): Rename real_this_command to Vreal_this_command and DEFVAR it. Update all users. Fixes: debbugs:11506
* Remove obsolete binding in choose-completion.Martin Rudalics2012-06-011-2/+1
| | | | | * simple.el (choose-completion): Remove now obsolete binding for owindow.
* * lisp/simple.el (choose-completion): Use quit-window.Martin Rudalics2012-05-291-10/+1
| | | | Fixes: debbugs:11567
* * lisp/isearch.el (isearch-search-fun-default): New function.Juri Linkov2012-05-291-60/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (isearch-search-fun): Move default part to the new function `isearch-search-fun-default'. (isearch-search-fun-function): Set the default value to `isearch-search-fun-default'. * lisp/comint.el (comint-history-isearch-end): Use `isearch-search-fun-default'. (comint-history-isearch-search): Use `isearch-search-fun-default' and remove spacial case for `isearch-word'. (comint-history-isearch-wrap): Remove spacial case for `isearch-word'. * lisp/hexl.el (hexl-isearch-search-function): Use `isearch-search-fun-default'. * lisp/info.el (Info-isearch-search): Use `isearch-search-fun-default'. Use `word-search-regexp' for `isearch-word'. * lisp/misearch.el (multi-isearch-search-fun): Use `isearch-search-fun-default'. * lisp/simple.el (minibuffer-history-isearch-search): Use `isearch-search-fun-default' and remove spacial case for `isearch-word'. (minibuffer-history-isearch-wrap): Remove spacial case for `isearch-word'. * lisp/textmodes/reftex-global.el (reftex-isearch-wrap-function): Remove spacial case for `isearch-word'. (reftex-isearch-isearch-search): Use `isearch-search-fun-default'. Fixes: debbugs:11381
* Add new error and function `user-error'.Stefan Monnier2012-05-041-16/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (user-error): New function. * lisp/window.el (switch-to-buffer): * lisp/vc/smerge-mode.el (smerge-resolve-function, smerge-resolve) (smerge-match-conflict): * lisp/simple.el (previous-matching-history-element) (next-matching-history-element, goto-history-element, undo-more) (undo-start): * lisp/progmodes/etags.el (visit-tags-table-buffer, find-tag-tag) (find-tag-noselect, find-tag-in-order, etags-goto-tag-location) (next-file, tags-loop-scan, list-tags, complete-tag): * lisp/progmodes/compile.el (compilation-loop): * lisp/mouse.el (mouse-minibuffer-check): * lisp/man.el (Man-bgproc-sentinel, Man-goto-page): * lisp/info.el (Info-find-node-2, Info-extract-pointer, Info-history-back) (Info-history-forward, Info-follow-reference, Info-menu) (Info-extract-menu-item, Info-extract-menu-counting) (Info-forward-node, Info-backward-node, Info-next-menu-item) (Info-last-menu-item, Info-next-preorder, Info-last-preorder) (Info-next-reference, Info-prev-reference, Info-index) (Info-index-next, Info-follow-nearest-node) (Info-copy-current-node-name): * lisp/imenu.el (imenu--make-index-alist) (imenu-default-create-index-function, imenu-add-to-menubar): * lisp/files.el (basic-save-buffer, recover-file): * lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation): * lisp/emacs-lisp/checkdoc.el (checkdoc-continue, checkdoc-comments) (checkdoc-message-text, checkdoc-defun): * lisp/dabbrev.el (dabbrev-completion, dabbrev--abbrev-at-point): * lisp/cus-edit.el (customize-changed-options, customize-rogue) (customize-saved, custom-variable-set, custom-variable-mark-to-save) (custom-variable-mark-to-reset-standard) (custom-variable-reset-backup, custom-face-mark-to-reset-standard) (custom-file): * lisp/completion.el (check-completion-length): * lisp/comint.el (comint-search-arg) (comint-previous-matching-input-string-position) (comint-previous-matching-input) (comint-replace-by-expanded-history-before-point, comint-send-input) (comint-copy-old-input, comint-backward-matching-input) (comint-goto-process-mark, comint-set-process-mark): * lisp/calendar/calendar.el (calendar-cursor-to-date): Use it. * lisp/bindings.el (debug-ignored-errors): Remove regexps, add `user-error'. * src/data.c (PUT_ERROR): New macro. (syms_of_data): Use it. Add new error type `user-error'. * src/undo.c (user_error): New function. (Fprimitive_undo): Use it. * src/print.c (print_error_message): Adjust print style for `user-error'. * src/keyboard.c (user_error): New function. (Fexit_recursive_edit, Fabort_recursive_edit): Use it.
* Reimplement execute-extended-command in Elisp.Aaron S. Hawley2012-05-011-0/+50
| | | | | | | * src/keyboard.c (Fexecute_extended_command, Vsuggest_key_bindings): Move to simple.el. * lisp/simple.el (suggest-key-bindings, execute-extended-command): Move from keyboard.c.
* Merge changes from emacs-24 branchChong Yidong2012-04-271-1/+1
|\
| * * simple.el (delete-active-region): Move to killing custom group.Chong Yidong2012-04-221-1/+1
| |
* | * simple.el (line-move): Use forward-line if in batch mode.Chong Yidong2012-04-181-17/+19
| | | | | | | | Fixes: debbugs:11053
* | Merge from emacs-24 branchChong Yidong2012-04-151-5/+5
|\ \ | |/
| * Doc and manual fixes related to processesGlenn Morris2012-04-141-5/+5
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Processes, Subprocess Creation, Shell Arguments): (Synchronous Processes): Copyedits. (Subprocess Creation): Discourage modifying exec-path directly. (Synchronous Processes): Update some example output. (Process Information): Fix typo. (Bindat Spec): Use Texinfo-recommended form of quote+punctuation. * lisp/simple.el (process-file-side-effects): Doc fix.
* | Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.orgGlenn Morris2012-04-131-3/+3
|\ \ | |/
| * Fix bug #11208 with inaccurate doc string of shell-command-on-region.Eli Zaretskii2012-04-091-3/+3
| | | | | | | | lisp/simple.el (shell-command-on-region): Doc fix.
* | * simple.el (zap-to-char): Allow zapping using input methods.Lars Magne Ingebrigtsen2012-04-101-2/+2
| | | | | | | | Fixes: debbugs:1580
* | Remove * characters from the front of variable docstrings.Chong Yidong2012-04-091-2/+2
| |
* | Remove defining user variables via * in docstring.Chong Yidong2012-04-091-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/apropos.el (apropos-variable): * lisp/files-x.el (read-file-local-variable): * lisp/simple.el (set-variable): * lisp/woman.el (woman-mini-help): * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Callers changed. * lisp/custom.el (custom-variable-p): Return nil for non-symbol arguments instead of signaling an error. (user-variable-p): Obsolete alias for custom-variable-p. * lisp/erc/erc.el (erc-cmd-SET): Call custom-variable-p instead of user-variable-p. * src/callint.c (Finteractive, Fcall_interactively): * src/minibuf.c (Fread_variable): Callers changed. * src/eval.c (Fuser_variable_p, user_variable_p_eh) (lisp_indirect_variable): Functions deleted. (Fdefvar): Caller changed. * doc/lispref/commands.texi (Interactive Codes): * doc/lispref/help.texi (Accessing Documentation): * doc/lispref/minibuf.texi (High-Level Completion): Callers changed. * doc/lispref/customize.texi (Variable Definitions): Remove user-variable-p.
* Fix corner case in end-of-visible-line.Chong Yidong2012-03-221-1/+2
| | | | | | | * lisp/simple.el (end-of-visible-line): Handle return value of next-single-property-change properly. Fixes: debbugs:9371
* * lisp/simple.el (kill-new): Use equal-including-properties forLeo Liu2012-03-131-4/+8
| | | | | comparison. (kill-do-not-save-duplicates): Doc fix.
* * simple.el (goto-line): Doc fix.Chong Yidong2012-03-121-6/+13
| | | | Fixes: debbugs:9938
* * lisp/simple.el (backward-delete-char-untabify): Constrain point toLeo Liu2012-03-051-2/+4
| | | | | | field. Fixes: debbugs:10939
* Tweaks to count-words and count-words-region behavior.Chong Yidong2012-03-051-38/+43
| | | | | | | | | | | | In particular, make count-words more analogous to the existing count-lines function. * lisp/simple.el (count-words): If called from Lisp, return the word count, for symmetry with `count-lines'. Arglist changed. (count-words--message): Args changed. Consolidate counting code from count-words and count-words-region. (count-words-region): Caller changed. (count-lines-region): Make it an obsolete alias.
* `mail-user-agent' doc fixLars Ingebrigtsen2012-02-131-2/+2
| | | | | * simple.el (mail-user-agent): Mention that `gnus-user-agent' only does its stuff if Gnus is running.
* Minor-mode doc fixes for ARG behaviorGlenn Morris2012-02-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * simple.el (list-processes--refresh): Delete exited processes.Chong Yidong2012-02-061-39/+42
| | | | Fixes: debbugs:8094
* Try to document filter-buffer-substring changesGlenn Morris2012-02-041-10/+28
| | | | | | | | | | * doc/lispref/text.texi (Buffer Contents): Update filter-buffer-substring description. * lisp/simple.el (filter-buffer-substring-functions) (buffer-substring-filters, filter-buffer-substring): Doc fixes. * etc/NEWS: Related edits.
* * lisp/simple.el (deactivate-mark): Doc fix (Bug#8614).Chong Yidong2012-01-281-4/+12
|
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-12-181-3/+3
|
* Fix typos.Juanma Barranquero2011-12-091-5/+5
|
* Fix "C-x =" wrt display of strong RTL characters and directional controls.Eli Zaretskii2011-12-051-12/+20
| | | | | | | lisp/descr-text.el (describe-char): Fix display of strong right-to-left characters and directional embeddings and overrides. lisp/simple.el (what-cursor-position): Fix display of codepoints of strong right-to-left characters by appending LRM.
* Spelling fixes.Paul Eggert2011-12-041-3/+3
|
* Fix bug #10076 with vertical cursor motion in hscrolled windows.Eli Zaretskii2011-11-191-8/+6
| | | | | | lisp/simple.el (line-move): Force movement by logical lines for any hscrolled window, not only when auto-hscroll-mode is on. (line-move-visual): Update doc string to that effect.
* Spelling fixes.Paul Eggert2011-11-171-1/+1
|
* Fix typos.Juanma Barranquero2011-11-151-1/+1
|
* * lisp/simple.el (mark-whole-buffer): Doc fix. (Bug#10023)Glenn Morris2011-11-141-0/+1
|
* Spelling fixes.Paul Eggert2011-11-141-1/+1
|
* Replace fundamental-mode-hook with change-major-mode-after-body-hook.Chong Yidong2011-10-271-1/+2
| | | | | | | | | | | | * lisp/simple.el (fundamental-mode): * lisp/emacs-lisp/derived.el (define-derived-mode): Revert 2010-04-28 change introducing fundamental-mode-hook. * lisp/subr.el (change-major-mode-after-body-hook): New hook. (run-mode-hooks): Run it. * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Use change-major-mode-before-body-hook.
* Fix minor mode docstrings for the new meaning of a nil ARG.Chong Yidong2011-10-191-53/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * abbrev.el (abbrev-mode): * allout.el (allout-mode): * autoinsert.el (auto-insert-mode): * autoarg.el (autoarg-mode, autoarg-kp-mode): * autorevert.el (auto-revert-mode, auto-revert-tail-mode) (global-auto-revert-mode): * battery.el (display-battery-mode): * composite.el (global-auto-composition-mode) (auto-composition-mode): * delsel.el (delete-selection-mode): * desktop.el (desktop-save-mode): * dired-x.el (dired-omit-mode): * dirtrack.el (dirtrack-mode): * doc-view.el (doc-view-minor-mode): * double.el (double-mode): * electric.el (electric-indent-mode, electric-pair-mode): * emacs-lock.el (emacs-lock-mode): * epa-hook.el (auto-encryption-mode): * follow.el (follow-mode): * font-core.el (font-lock-mode): * frame.el (auto-raise-mode, auto-lower-mode, blink-cursor-mode): * help.el (temp-buffer-resize-mode): * hilit-chg.el (highlight-changes-mode) (highlight-changes-visible-mode): * hi-lock.el (hi-lock-mode): * hl-line.el (hl-line-mode, global-hl-line-mode): * icomplete.el (icomplete-mode): * ido.el (ido-everywhere): * image-file.el (auto-image-file-mode): * image-mode.el (image-minor-mode): * iswitchb.el (iswitchb-mode): * jka-cmpr-hook.el (auto-compression-mode): * linum.el (linum-mode): * longlines.el (longlines-mode): * master.el (master-mode): * mb-depth.el (minibuffer-depth-indicate-mode): * menu-bar.el (menu-bar-mode): * minibuf-eldef.el (minibuffer-electric-default-mode): * mouse-sel.el (mouse-sel-mode): * msb.el (msb-mode): * mwheel.el (mouse-wheel-mode): * outline.el (outline-minor-mode): * paren.el (show-paren-mode): * recentf.el (recentf-mode): * reveal.el (reveal-mode, global-reveal-mode): * rfn-eshadow.el (file-name-shadow-mode): * ruler-mode.el (ruler-mode): * savehist.el (savehist-mode): * scroll-all.el (scroll-all-mode): * scroll-bar.el (scroll-bar-mode): * server.el (server-mode): * shell.el (shell-dirtrack-mode): * simple.el (auto-fill-mode, transient-mark-mode) (visual-line-mode, overwrite-mode, binary-overwrite-mode) (line-number-mode, column-number-mode, size-indication-mode) (auto-save-mode, normal-erase-is-backspace-mode, visible-mode): * strokes.el (strokes-mode): * time.el (display-time-mode): * t-mouse.el (gpm-mouse-mode): * tool-bar.el (tool-bar-mode): * tooltip.el (tooltip-mode): * type-break.el (type-break-mode-line-message-mode) (type-break-query-mode): * view.el (view-mode): * whitespace.el (whitespace-mode, whitespace-newline-mode) (global-whitespace-mode, global-whitespace-newline-mode): * xt-mouse.el (xterm-mouse-mode): Doc fix. * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix autogenerated docstring.
* Fix the "C-x =" display of the character info for LRE, LRO, RLE, and RLO.Eli Zaretskii2011-10-131-4/+14
| | | | | | lisp/simple.el (what-cursor-position): Fix the display of the character info for LRE, LRO, RLE, and RLO characters, by appending a PDF to them.
* Rework count-words-region. New command count-words.Chong Yidong2011-10-081-16/+34
| | | | | | | | | | | | | | | | | | | See discussion at http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00193.html * lisp/simple.el (count-words-region): Always count in the region. Report the number of lines and characters too. (count-words): New command, which counts in the buffer if the region is inactive, as count-words-region used to. (count-words--message): New function. Handle plurals. (count-lines-region): Make it an alias for count-words-region. * lisp/bindings.el (esc-map): Replace count-lines-region with count-words-region. * doc/emacs/basic.texi (Position Info): Omit page commands. Document count-words-region and count-words. * doc/emacs/text.texi (Pages): Move what-page documentation here.
* Change scroll-up/down bindings to Emacs 24's scroll-*-command.Chong Yidong2011-10-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | * cus-edit.el (custom-mode-map): * epa.el (epa-key-list-mode-map): * man.el (Man-mode-map): * startup.el (splash-screen-keymap): * simple.el (special-mode-map): Use scroll-up-command and scroll-down-command. * progmodes/idlw-help.el (idlwave-help-mode-map): * progmodes/ebrowse.el (ebrowse-electric-position-mode-map): * net/newst-plainview.el (newsticker-mode-map): * emulation/ws-mode.el (wordstar-mode-map): * emulation/vi.el (vi-com-map): * calc/calc-graph.el (calc-graph-show-dumb): * term/sun.el (terminal-init-sun): * term/ns-win.el (global-map): * progmodes/grep.el (grep-mode-map): * progmodes/ebrowse.el (ebrowse-electric-list-mode-map): * mail/rmail.el (rmail-mode-map): * progmodes/cpp.el (cpp-edit-mode-map): Likewise.
* Fix bug #9607 with vertical motion when auto-hscroll-mode is disabled.Eli Zaretskii2011-09-291-2/+12
| | | | | | lisp/simple.el (line-move): If auto-hscroll-mode is disabled and the window is hscrolled, move by logical lines. (line-move-visual): Update the doc string to the above effect.
* * simple.el (delete-trailing-whitespace): Fix last change.Stefan Monnier2011-09-281-2/+2
|
* * lisp/simple.el (delete-trailing-whitespace): Document last change; simplify.Stefan Monnier2011-09-231-10/+11
|
* * lisp/simple.el (delete-trailing-whitespace): Also deletePeter J. Weisberg2011-09-231-0/+6
| | | | extra newlines at the end of the buffer.
* * simple.el (kill-line): Note effect of `show-trailing-whitespace'.Lars Magne Ingebrigtsen2011-09-231-0/+4
| | | | Fixes: debbugs:4538
* Make "C-x =" show display properties from overlays.Eli Zaretskii2011-09-221-2/+2
| | | | | | lisp/simple.el (what-cursor-position): Use get-char-property-change and next-single-char-property-change, to be able to show display properties that come from overlays as well as text properties.
* Fix bug #971 with next/previous-line when goal-column is set.Eli Zaretskii2011-09-161-5/+12
| | | | | | | lisp/simple.el (line-move): If goal-column is set, move by logical lines, not by display lines. (next-line, previous-line, goal-column, line-move-visual): Doc fix to reflect the above change.
* * lisp/simple.el (count-words-region): Use buffer if there's no region.Reuben Thomas2011-09-091-11/+14
|
* Fix bug #9392 with rmail-forward.Eli Zaretskii2011-09-091-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | lisp/simple.el (mail-encode-mml): New defvar. lisp/mail/rmail.el (mail-encode-mml): Add a defvar. (rmail-enable-mime-composing): Default to t. (rmail-forward): Use MIME method of forwarding only if both rmail-enable-mime-composing and rmail-enable-mime are non-nil. Set mail-encode-mml non-nil if the MIME method was used. lisp/mail/sendmail.el (mml-to-mime): Add autoload form. (mail-encode-mml): Add a defvar. (mail-mode): Make mail-encode-mml buffer-local and initialize it to nil. (mail-send): If mail-encode-mml is non-nil, run the outgoing message through mml-to-mime, and reset mail-encode-mml to nil.