1. 05 May, 2014 1 commit
  2. 21 Mar, 2014 1 commit
  3. 20 Mar, 2014 2 commits
  4. 12 Mar, 2014 1 commit
  5. 04 Mar, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/electric.el (electric-indent-mode-has-been-called): Remove. · 8d4901dc
      Stefan Monnier authored
      (electric-indent-mode): Fix accordingly.
      * lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Only hook into
      electric-indent-mode-hook if we obey electric-indent-mode.
      (c-basic-common-init): Use (fboundp 'electric-indent-local-mode) to
      decide whether we obey electric-indent-mode.
      (c-change-set-fl-decl-start, c-extend-after-change-region):
      Silence warnings.
      (c-electric-indent-mode-hook): Assume we do want to obey
      electric-indent-mode.
      8d4901dc
  6. 21 Feb, 2014 1 commit
  7. 17 Feb, 2014 1 commit
    • Alan Mackenzie's avatar
      Connect electric-indent-mode up with CC Mode. Bug #15478. · 29238d28
      Alan Mackenzie authored
      * progmodes/cc-mode.el (c-initialize-cc-mode): add CC Mode hooks
      to electric-indent-{,local-}-mode.
      (c-basic-common-init): Set electric-indent-inhibit.  Initialise
      c-electric-flag from electric-indent-mode.
      (c-electric-indent-mode-hook, c-electric-indent-local-mode-hook):
      New hook functions which propagate electric-indent-mode to CC Mode.
      
      * progmodes/cc-cmds.el (c-toggle-electric-state): When C-c C-l is
      hit, toggle electric-indent-local-moode.
      
      * electric.el (electric-indent-mode-has-been-called): New variable.
      29238d28
  8. 10 Feb, 2014 1 commit
  9. 01 Jan, 2014 1 commit
  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
  35. 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
  36. 19 Apr, 2011 1 commit
  37. 25 Jan, 2011 1 commit