summaryrefslogtreecommitdiff
path: root/lisp/delsel.el
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes.Paul Eggert2014-01-041-2/+2
| | | | | | | | * lib-src/Makefile.in (regex.o): Remove reference to no-longer-used macros CONFIG_BROKETS and INHIBIT_STRING_HEADER. "BROKETS" was a misspelling anyway.... * src/nsterm.h (updateCollectionBehavior): Rename from updateCollectionBehaviour. All uses changed.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* * lisp/delsel.el (delete-selection-mode): Don't enable transient-mark-mode.Stefan Monnier2013-12-111-7/+10
| | | | | | (delete-selection-helper): Make sure yank starts at the top of the deleted region. (minibuffer-keyboard-quit): Use region-active-p.
* * lisp/delsel.el (delete-active-region): Let-bind `this-command'Juri Linkov2013-12-111-4/+16
| | | | | | | | | | to prevent `kill-region' from changing its original value. (delete-selection-helper): Handle `overwrite-mode' for the type `kill' exactly the same way as for the type `t'. (insert-char, quoted-insert, reindent-then-newline-and-indent): Support more commands. Fixes: debbugs:13312
* Make registers and delete-selection-mode work on rectangles.Stefan Monnier2013-12-071-5/+5
| | | | | | * lisp/register.el (describe-register-1): Don't modify the register's value. (copy-to-register): Obey region-extract-function. * lisp/delsel.el (delete-active-region): Obey region-extract-function.
* Add pre-redisplay-function and rectangular regionStefan Monnier2013-10-291-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/rect.el: Use lexical-binding. Add new rectangular region support. (rectangle-mark): New command. (rectangle--region): New var. (deactivate-mark-hook): Reset rectangle--region. (rectangle--extract-region, rectangle--insert-for-yank) (rectangle--highlight-for-redisplay) (rectangle--unhighlight-for-redisplay): New functions. (region-extract-function, redisplay-unhighlight-region-function) (redisplay-highlight-region-function): Use them to handle rectangular region. * lisp/simple.el (region-extract-function): New var. (delete-backward-char, delete-forward-char, deactivate-mark): Use it. (kill-new, kill-append): Remove obsolete `yank-handler' argument. (kill-region): Replace obsolete `yank-handler' arg with `region'. (copy-region-as-kill, kill-ring-save): Add `region' argument. (redisplay-unhighlight-region-function) (redisplay-highlight-region-function): New vars. (redisplay--update-region-highlight): New function. (pre-redisplay-function): Use it. (exchange-point-and-mark): Don't deactivate the mark before reactivate-it anyway. * lisp/comint.el (comint-kill-region): Remove yank-handler argument. * lisp/delsel.el (delete-backward-char, backward-delete-char-untabify) (delete-char): Remove property, since it's now part of their default behavior. (self-insert-iso): Remove property since this command doesn't exist. * src/xdisp.c (prepare_menu_bars): Call Vpre_redisplay_function. (syms_of_xdisp): Declare pre-redisplay-function. (markpos_of_region): Remove function. (init_iterator, compute_stop_pos, handle_face_prop) (face_before_or_after_it_pos, reseat_to_string) (get_next_display_element, window_buffer_changed) (redisplay_internal, try_cursor_movement, redisplay_window) (try_window_reusing_current_matrix, try_window_id, display_line) (note_mode_line_or_margin_highlight, note_mouse_highlight) (display_string, mouse_face_from_buffer_pos): Remove region handling. * src/window.h (struct window): Remove field `region_showing'. * src/dispextern.h (struct it): Remove region_beg/end_charpos. (face_at_buffer_position, face_for_overlay_string) (face_at_string_position): Update prototypes. * src/xfaces.c (face_at_buffer_position, face_for_overlay_string) (face_at_string_position): Remove `region_beg' and `region_end' args. * src/fontset.c (Finternal_char_font): * src/font.c (font_at, font_range): Adjust calls accordingly. * src/insdel.c (Qregion_extract_function): New var. (syms_of_insdel): Initialize it. (prepare_to_modify_buffer_1): Use it.
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+2
|
* Rework the last delsel/electric fix.Stefan Monnier2012-10-221-32/+23
| | | | | | | | | | | | | * lisp/delsel.el (delete-selection-helper): Use a function instead of a hook. (delete-selection-pre-hook): Use use-region-p. (delete-selection-self-insert-function): Remove. (self-insert-command): Obey self-insert-uses-region-functions. (self-insert-iso): Revert to previous setting, since we don't actually know what that command does. (delete-selection-self-insert-hooks): Remove. * lisp/electric.el (electric-pair-delete-selection-self-insert-function): Rename to electric-pair-will-use-region, return a boolean. (electric-pair-mode): Adjust accordingly. Don't require delsel.
* * lisp/delsel.el (delete-selection-helper): New function, extracted fromSimon Law2012-10-211-50/+93
| | | | | | | | | | | | | | | | delete-selection-pre-hook. (delete-selection-pre-hook): Use it. (delete-selection-self-insert-function): New function. (delete-selection-self-insert-hooks): New hook. (self-insert-command, self-insert-iso): Use it. * lisp/electric.el (electric-pair-syntax): New function, extracted from electric-pair-post-self-insert-function. (electric-pair-post-self-insert-function): Use it. (electric-pair-delete-selection-self-insert-function): New function. (electric-pair-mode): Require delsel and setup delete-selection-self-insert-hooks. Fixes: debbugs:11520
* * lisp/delsel.el (delete-selection-pre-hook): Don't propagate theStefan Monnier2012-08-081-7/+7
| | | | | | file-supersession signals. Fixes: debbugs:12161
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-12-041-1/+1
|
* Fix minor mode docstrings for the new meaning of a nil ARG.Chong Yidong2011-10-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-1/+0
|
* Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
|
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* Fix up comment convention on the arch-tag lines.Stefan Monnier2008-04-101-1/+1
|
* (delsel-unload-function): Don't use `remprop'; it is not autoloaded,Juanma Barranquero2008-01-241-1/+1
| | | | | and we wouldn't want to load CL just to unload delsel.el anyway. Suggested by Martin Rudalics <rudalics@gmx.at>.
* (delete-selection-pre-hook): Avoid clearing outMartin Rudalics2008-01-241-1/+17
| | | | pre-command-hook when text is read-only.
* Merge from emacs--rel--22Miles Bader2008-01-081-3/+3
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
| * (delete-selection-mode): Doc fix.Richard M. Stallman2008-01-041-2/+2
| |
* | (delsel-unload-hook): Remove function and variable.Juanma Barranquero2007-10-311-5/+10
| | | | | | | | | | (delsel-unload-function): New-style unload function, adapted from `delsel-unload-hook'.
* | (delete-selection-pre-hook): Check if mouse-region-match is fboundJuri Linkov2007-10-061-0/+1
| | | | | | | | to not fail on mouseless tty.
* | (delete-selection-pre-hook): Use `mouse-region-match' instead of checking ↵Juri Linkov2007-08-211-6/+3
| | | | | | | | last-command.
* | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <rgm@gnu.org> * Relicense all FSF files to GPLv3 or later. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
* | (delete-selection-pre-hook): Before a yank command,Juri Linkov2007-07-151-6/+10
|/ | | | | check also whether last-command is one of mouse-save-then-kill, mouse-secondary-save-then-kill, mouse-set-region, mouse-drag-region.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (delete-selection-pre-hook): If overwrite-mode isJuri Linkov2005-08-141-1/+5
| | | | | | enabled and the current command is self-insert-command, call it explicitly with overwrite-mode bound to nil, to not allow it to delete the character after the selected region.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-061-1/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (delsel-unload-hook): Set as a variable.Richard M. Stallman2004-10-171-0/+2
|
* Don't put `delete-selection' property on `insert-parentheses' symbolJuri Linkov2004-05-011-2/+0
| | | | | to take advantage of region handling in `insert-pair' function. Suggested by Stephan Stahl <stahl@eos.franken.de>
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (delete-active-region): Don't explicitly deactivate mark.Richard M. Stallman2003-04-031-2/+0
|
* (delete-selection-pre-hook): Handle and resignalRichard M. Stallman2001-11-191-18/+25
| | | | file-supersession errors to interact properly with userlock.el.
* (delete-selection-pre-hook): Don't set this-commandGerd Moellmann2001-07-311-3/+5
| | | | to `ignore' if the region is empty.
* (delete-selection-mode): Drop unneeded positional args.Stefan Monnier2000-11-031-1/+1
|
* (delete-selection-mode): Use define-minor-mode.Stefan Monnier2000-10-011-24/+2
|
* (delsel-unload-hook): New function.Dave Love2000-08-151-7/+14
|
* Add finder keywords.Dave Love2000-05-241-0/+1
|
* Revert previous change -- region is significant to skeleton.Dave Love1999-12-041-2/+0
|
* Grok skeleton-pair-insert-maybe.Dave Love1999-12-011-0/+2
|
* (delete-selection-mode): Doc fix.Dave Love1999-04-271-2/+2
|
* *** empty log message ***Karl Heuer1999-03-301-1/+1
|