1. 27 Dec, 2017 1 commit
    • Eli Zaretskii's avatar
      Fix documentation of delsel and of killing text · 5b384064
      Eli Zaretskii authored
      * doc/emacs/killing.texi (Appending Kills): Make sure the text
      with 2 spaces is not broken between 2 lines.
      * doc/emacs/mark.texi (Using Region): Remove the sentence about
      delsel mode that describes behavior which exists even without
      delsel mode turned on.  Suggested by Petteri Hintsanen
      <petterih@iki.fi> in emacs-manual-bugs@gnu.org.
      
      * lisp/delsel.el (delete-selection-mode): Doc fix.
      5b384064
  2. 24 Nov, 2017 1 commit
    • Eli Zaretskii's avatar
      Improve documentation of self-insert-uses-region-functions · eea4e919
      Eli Zaretskii authored
      * lisp/simple.el (self-insert-uses-region-functions): Clarify the
      doc string.
      * lisp/delsel.el (delete-selection-uses-region-p): Mention
      'self-insert-command' in the doc string.  (Bug#29373)
      
      * doc/lispref/text.texi (Commands for Insertion): Mention
      'self-insert-uses-region-functions'.
      * doc/lispref/modes.texi (Keymaps and Minor Modes): Add a
      cross-reference to "Commands for Insertion".
      eea4e919
  3. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  4. 26 Aug, 2017 1 commit
  5. 01 Jan, 2017 1 commit
  6. 01 May, 2016 1 commit
    • Lars Ingebrigtsen's avatar
      delsel doc touch ups · c3557740
      Lars Ingebrigtsen authored
      * lisp/delsel.el (delete-selection-helper): Use non-nil
      instead of t and clarify function return values (bug#18089).
      
      (cherry picked from commit d7a5b5be)
      c3557740
  7. 29 Apr, 2016 1 commit
    • Lars Ingebrigtsen's avatar
      delsel doc touch ups · d7a5b5be
      Lars Ingebrigtsen authored
      * lisp/delsel.el (delete-selection-helper): Use non-nil
      instead of t and clarify function return values (bug#18089).
      d7a5b5be
  8. 08 Jan, 2016 1 commit
    • Eli Zaretskii's avatar
      Improve documentation of Delete Selection mode · 4b37cba3
      Eli Zaretskii authored
      * lisp/delsel.el (delete-selection-mode)
      (delete-selection-helper): Update and expand the doc strings.
      (Bug#22296)
      
      * doc/emacs/mark.texi (Using Region): Document the behavior of
      delete commands in Delete Selection mode.  (Bug#22296)
      
      * doc/lispref/markers.texi (The Mark): Document how to add the
      support for Delete Selection mode to Lisp programs. (Bug#22296)
      4b37cba3
  9. 01 Jan, 2016 1 commit
  10. 19 Aug, 2015 1 commit
    • Alan Mackenzie's avatar
      Make electric-pair-mode, delete-selection-mode and CC Mode cooperate. · 82a3da21
      Alan Mackenzie authored
      Fixes debbugs#21275.
      
      In Emacs >= 25, let electric-pair-mode take precedence over
      delete-selection-mode.
      delsel.el (delete-selection-uses-region-p): New function, previously a
      lambda expression in a property value for `self-insert-command'.
      (top-level) Set the `delete-selection' property of `self-insert-command'
      to `delete-selection-uses-region-p'.
      
      progmodes/cc-cmds.el (top-level): Give the `delete-selection' property
      for c-electric-\(brace\|paren\) the value `delete-selection-uses-region-p'
      when the latter function exists.
      82a3da21
  11. 05 Feb, 2015 1 commit
  12. 01 Jan, 2015 2 commits
  13. 30 Oct, 2014 1 commit
    • Kim F. Storm's avatar
      Restore cua-delete-copy-to-register-0 and M-v command. · 71477684
      Kim F. Storm authored
      * lisp/delsel.el (delete-selection-save-to-register)
      (delsel--replace-text-or-position): New vars.
      (delete-active-region): Use them.
      (delete-selection-repeat-replace-region): New command, moved from
      cua-base.el.
      * lisp/emulation/cua-base.el (cua--repeat-replace-text): Remove var.
      (cua-repeat-replace-region): Move command to delsel.el.
      (cua--init-keymaps): Update binding accordingly.
      (cua-mode): Set delete-selection-save-to-register.
      
      Fixes: debbugs:18886
      71477684
  14. 17 Jun, 2014 1 commit
  15. 18 Feb, 2014 1 commit
  16. 10 Feb, 2014 1 commit
  17. 31 Jan, 2014 1 commit
    • Glenn Morris's avatar
      Delete Selection mode doc updates · a69ecd19
      Glenn Morris authored
      * lisp/delsel.el (delete-selection-mode): Doc fix.
      
      * doc/misc/efaq.texi (Replacing highlighted text):
      Update delete-selection-mode doc.
      
      * etc/NEWS: Related edit.
      a69ecd19
  18. 05 Jan, 2014 1 commit
    • Paul Eggert's avatar
      Spelling fixes. · da5ecfa9
      Paul Eggert authored
      * 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.
      da5ecfa9
  19. 01 Jan, 2014 1 commit
  20. 11 Dec, 2013 2 commits
  21. 08 Dec, 2013 1 commit
  22. 29 Oct, 2013 1 commit
    • Stefan Monnier's avatar
      Add pre-redisplay-function and rectangular region · 3472b6c6
      Stefan Monnier authored
      * 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.
      3472b6c6
  23. 01 Jan, 2013 1 commit
  24. 22 Oct, 2012 2 commits
    • Stefan Monnier's avatar
      Rework the last delsel/electric fix. · c77d37e2
      Stefan Monnier authored
      * 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.
      c77d37e2
    • Simon Law's avatar
      * lisp/delsel.el (delete-selection-helper): New function, extracted from · b1d39ccc
      Simon Law authored
      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
      b1d39ccc
  25. 09 Aug, 2012 1 commit
  26. 11 Jan, 2012 1 commit
  27. 05 Jan, 2012 1 commit
  28. 04 Dec, 2011 1 commit
  29. 19 Oct, 2011 1 commit
    • Chong Yidong's avatar
      Fix minor mode docstrings for the new meaning of a nil ARG. · 06e21633
      Chong Yidong authored
      * 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.
      06e21633
  30. 25 Jan, 2011 1 commit
  31. 15 Jan, 2011 1 commit
  32. 02 Jan, 2011 1 commit
  33. 13 Jan, 2010 1 commit
  34. 05 Jan, 2009 1 commit
  35. 06 May, 2008 1 commit
  36. 10 Apr, 2008 1 commit
  37. 24 Jan, 2008 1 commit