1. 10 Apr, 2014 1 commit
    • Paul Eggert's avatar
      Spelling fixes. · 10ee3b3f
      Paul Eggert authored
      * automated/electric-tests.el: Fix spelling error in test name.
      (whitespace-skipping-for-quotes-not-outside):
      Rename from whitespace-skipping-for-quotes-not-ouside.
      10ee3b3f
  2. 07 Apr, 2014 2 commits
    • João Távora's avatar
      Improve on previous quote autopairing change · 190f899a
      João Távora authored
      Backported from trunk 2014-04-04T23:31:02Z!joaotavora@gmail.com
      
      * lisp/elec-pair.el:
      (electric-pair--syntax-ppss): When inside comments parse from
      comment beginning.
      (electric-pair--balance-info): Fix typo in comment.
      (electric-pair--in-unterminated-string-p): Delete.
      (electric-pair--unbalanced-strings-p): New function.
      (electric-pair-string-bound-function): New var.
      (electric-pair-inhibit-if-helps-balance): Decide quote pairing
      according to `electric-pair--in-unterminated-string-p'
      
      * test/automated/electric-tests.el (define-electric-pair-test): Don't
      overtest..
      (inhibit-in-mismatched-string-inside-ruby-comments): New test.
      (inhibit-in-mismatched-string-inside-c-comments): New test.
      190f899a
    • João Távora's avatar
      Inhibit quote autopairing more frequently · 528c33b5
      João Távora authored
      Backported from trunk 2014-04-02T09:59:06Z!joaotavora@gmail.com
      
      * lisp/elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit
      quote pairing if point-max is inside an unterminated string.
      (electric-pair--looking-at-unterminated-string-p):
      Delete.
      (electric-pair--in-unterminated-string-p): New function.
      
      * test/automated/electric-tests.el (inhibit-if-strings-mismatched):
      New test, change from `inhibit-only-of-next-is-mismatched'.
      528c33b5
  3. 06 Apr, 2014 2 commits
    • João Távora's avatar
      Fix electric-pair-delete-adjacent-pairs in modes binding backspace. · be411138
      João Távora authored
      * lisp/elec-pair.el (electric-pair-backward-delete-char): Delete.
      (electric-pair-backward-delete-char-untabify): Delete.
      (electric-pair-mode-map): Bind backspace to a menu item filtering
      a new `electric-pair-delete-pair' command.
      (electric-pair-delete-pair): New command.
      
      Fixes: debbugs:16981
      be411138
    • João Távora's avatar
      Fix electric-pair-skip-whitespace with quotes in text-mode · 89f20f76
      João Távora authored
      * lisp/elec-pair.el (electric-pair-post-self-insert-function): Don't
      skip whitespace for quote syntax when `electric-pair-text-pairs'
      and `electric-pair-pairs' were used.
      
      * test/automated/electric-tests.el (electric-pair-define-test-form):
      More readable test docstrings.
      (whitespace-skipping-for-quotes-not-ouside)
      (whitespace-skipping-for-quotes-only-inside)
      (whitespace-skipping-not-without-proper-syntax):
      
      Fixes: debbugs:17183
      89f20f76
  4. 23 Feb, 2014 1 commit
    • Juanma Barranquero's avatar
      lisp/elec-pair.el: Fix typos. · 025f2c81
      Juanma Barranquero authored
      (electric-pair-text-syntax-table, electric-pair-syntax-info)
      (electric-pair--syntax-ppss, electric-pair--balance-info)
      (electric-pair-mode): Fix docstring typos.
      (electric-pair--looking-at-unterminated-string-p): Doc fix.
      (electric-pair--inside-string-p): Doc fix.  Use `let', not `let*'.
      025f2c81
  5. 20 Feb, 2014 1 commit
  6. 03 Feb, 2014 1 commit
  7. 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
  8. 01 Jan, 2014 1 commit
  9. 28 Dec, 2013 3 commits
    • João Távora's avatar
      Fix bug #16272 when inserting newline at point-min in electric-pair-mode. · e9d6c46a
      João Távora authored
      * elec-pair.el (electric-pair-post-self-insert-function): Don't
      open extra newlines at beginning of buffer.
      e9d6c46a
    • Paul Eggert's avatar
      Spelling and typo fixes. · 7e99158a
      Paul Eggert authored
      7e99158a
    • Glenn Morris's avatar
      Misc small custom fixes · 9c61f806
      Glenn Morris authored
      The value of defcustom's const should not be quoted!
      
      * lisp/desktop.el (desktop-restore-in-current-display):
      * lisp/newcomment.el (comment-empty-lines):
      * lisp/progmodes/idlwave.el (idlwave-scan-all-buffers-for-routine-info)
      (idlwave-pad-keyword):
      * lisp/progmodes/tcl.el (tcl-tab-always-indent):
      * lisp/textmodes/reftex-vars.el (reftex-index-default-tag):
      * lisp/elec-pair.el (electric-pair-skip-whitespace):
      * lisp/progmodes/cfengine.el (cfengine-cf-promises):
      * lisp/cedet/ede/linux.el (project-linux-build-directory-default)
      (project-linux-architecture-default):
      * lisp/erc/erc-button.el (erc-button-alist):
      * lisp/gnus/auth-source.el (auth-sources):
      * lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close):
      * lisp/url/url-history.el (url-history-track):
      * lisp/url/url-vars.el (url-honor-refresh-requests):
      Fix custom types.
      
      * lisp/net/tls.el (tls-certtool-program): Fix default value.
      9c61f806
  10. 27 Dec, 2013 1 commit
  11. 26 Dec, 2013 1 commit
    • João Távora's avatar
      Make Electric Pair mode smarter/more useful: · 3b8d5131
      João Távora authored
      * lisp/electric.el: Pairing/skipping helps preserve
        balance. Autobackspacing behaviour. Opens extra newlines between
        pairs. Skip whitespace before closing delimiters.
      
      * lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Use new
        features.
      
      * test/automated/electric-tests.lisp: New file.
      
      * doc/emacs/programs.texi: Describe new features.
      
      * lisp/simple.el: Pass non-nil interactive arg to newline call inside
        newline-and-indent.
      3b8d5131
  12. 29 Nov, 2013 1 commit
  13. 18 Nov, 2013 1 commit
  14. 06 Nov, 2013 2 commits
  15. 04 Nov, 2013 1 commit
  16. 07 Oct, 2013 1 commit
  17. 23 Sep, 2013 1 commit
  18. 19 Jun, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/electric.el (electric-pair-mode): Improve interaction with · 102626e2
      Stefan Monnier authored
      electric-layout-mode.
      (electric-pair-default-inhibit): Don't assume (eq char (char-before)).
      (electric-pair-syntax): Use text-mode-syntax-table in comments and strings.
      (electric-pair--insert): New function.
      (electric-pair-post-self-insert-function): Use it and electric--after-char-pos.
      102626e2
  19. 04 Apr, 2013 1 commit
  20. 01 Apr, 2013 1 commit
  21. 01 Jan, 2013 1 commit
  22. 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
  23. 14 Jul, 2012 1 commit
  24. 10 Jul, 2012 1 commit
    • Stefan Monnier's avatar
      Reduce use of (require 'cl). · f58e0fd5
      Stefan Monnier authored
      * admin/bzrmerge.el: Use cl-lib.
      * leim/quail/hangul.el: Don't require CL.
      * leim/quail/ipa.el: Use cl-lib.
      * vc/smerge-mode.el, vc/pcvs.el, vc/pcvs-util.el, vc/pcvs-info.el:
      * vc/diff-mode.el, vc/cvs-status.el, uniquify.el, scroll-bar.el:
      * register.el, progmodes/sh-script.el, net/gnutls.el, net/dbus.el:
      * msb.el, mpc.el, minibuffer.el, international/ucs-normalize.el:
      * international/quail.el, info-xref.el, imenu.el, image-mode.el:
      * font-lock.el, filesets.el, edmacro.el, doc-view.el, bookmark.el:
      * battery.el, avoid.el, abbrev.el: Use cl-lib.
      * vc/pcvs-parse.el, vc/pcvs-defs.el, vc/log-view.el, vc/log-edit.el:
      * vc/diff.el, simple.el, pcomplete.el, lpr.el, comint.el, loadhist.el:
      * jit-lock.el, international/iso-ascii.el, info.el, frame.el, bs.el:
      * emulation/crisp.el, electric.el, dired.el, cus-dep.el, composite.el:
      * calculator.el, autorevert.el, apropos.el: Don't require CL.
      * emacs-bytecomp.el (byte-recompile-directory, display-call-tree)
      (byte-compile-unfold-bcf, byte-compile-check-variable):
      * emacs-byte-opt.el (byte-compile-trueconstp)
      (byte-compile-nilconstp):
      * emacs-autoload.el (make-autoload): Use pcase.
      * face-remap.el (text-scale-adjust): Simplify pcase patterns.
      f58e0fd5
  25. 19 Apr, 2012 1 commit
  26. 09 Feb, 2012 1 commit
    • Glenn Morris's avatar
      Doc fixes for electric.el · a075a2c5
      Glenn Morris authored
      * lisp/electric.el (electric-indent-mode, electric-pair-mode)
      (electric-layout-rules, electric-layout-mode): Doc fixes.
      (electric-pair-pairs, electric-pair-skip-self): Add :version tags.
      
      * etc/NEWS: Related edits.
      a075a2c5
  27. 08 Feb, 2012 1 commit
    • Glenn Morris's avatar
      Minor-mode doc fixes for ARG behavior · e1ac4066
      Glenn Morris authored
      * 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.
      e1ac4066
  28. 11 Jan, 2012 1 commit
  29. 05 Jan, 2012 1 commit
  30. 04 Dec, 2011 1 commit
  31. 03 Dec, 2011 1 commit
  32. 20 Nov, 2011 1 commit
  33. 11 Nov, 2011 1 commit
  34. 09 Nov, 2011 1 commit