1. 08 Dec, 2013 9 commits
    • Paul Eggert's avatar
      Spelling fixes. · 09a7c0fe
      Paul Eggert authored
      09a7c0fe
    • Dmitry Gutov's avatar
      Port indentation code from js2-mode to js-mode · 47e59c66
      Dmitry Gutov authored
      * lisp/progmodes/js.el (js-auto-indent-flag): Remove, was unused.
      (js-switch-indent-offset): New option.
      (js--proper-indentation): Use it.  And handle the case when
      "default" is actually a key in an object literal.
      (js--same-line): New function.
      (js--multi-line-declaration-indentation): Use it.
      (js--indent-in-array-comp, js--array-comp-indentation): New
      functions.
      (js--proper-indentation): Use them, to handle array comprehension
      continuations.
      47e59c66
    • Leo Liu's avatar
      Re-write flymake-highlight-line in flymake.el · 974ebc9c
      Leo Liu authored
      * progmodes/flymake.el (flymake-highlight-line): Re-write.
      (flymake-make-overlay): Remove arg MOUSE-FACE.
      (flymake-save-string-to-file, flymake-read-file-to-string): Remove.
      974ebc9c
    • Stefan Monnier's avatar
      Make CUA-mode use shift-select-mode. · 27262e39
      Stefan Monnier authored
      * lisp/emulation/cua-base.el (cua--explicit-region-start)
      (cua--last-region-shifted): Remove.
      (cua--deactivate): Use deactivate-mark.
      (cua--pre-command-handler-1): Don't handle shift-selection.
      (cua--post-command-handler-1): Don't change transient-mark-mode.
      (cua--select-keymaps): Use region-active-p rather than
      cua--explicit-region-start or cua--last-region-shifted.
      (cua-mode): Enable shift-select-mode.
      * lisp/emulation/cua-rect.el (cua--rectangle-highlight-for-redisplay):
      New function.
      (redisplay-highlight-region-function): Use it.
      27262e39
    • Stefan Monnier's avatar
      * lisp/rect.el (rectangle-mark-mode): Activate mark even if · 02033d49
      Stefan Monnier authored
      transient-mark-mode is off.
      (rectangle--highlight-for-redisplay): Fix boundary condition when point
      is > mark and at bolp.
      
      Fixes: debbugs:16066
      02033d49
    • Leo Liu's avatar
      Re-implement popup menu for flymake · 6407822c
      Leo Liu authored
      * progmodes/flymake.el (flymake-popup-current-error-menu): Rename
      from flymake-display-err-menu-for-current-line. Reimplement.
      (flymake-posn-at-point-as-event, flymake-popup-menu)
      (flymake-make-emacs-menu): Remove.
      
      Fixes: debbugs:16077
      6407822c
    • Stefan Monnier's avatar
      Use delete-selection-mode in cua-mode. · 6f8dfccf
      Stefan Monnier authored
      * lisp/emulation/cua-base.el (cua--prefix-copy-handler)
      (cua--prefix-cut-handler): Rely on region-extract-function rather than
      checking cua--rectangle.
      (cua-delete-region): Use region-extract-function.
      (cua-replace-region): Delete function.
      (cua-copy-region, cua-cut-region): Obey region-extract-function.
      (cua--pre-command-handler-1): Don't do the delete-selection thing.
      (cua--self-insert-char-p): Ignore `self-insert-iso'.
      (cua--init-keymaps): Don't remap delete-selection commands.
      (cua-mode): Use delete-selection-mode instead of rolling our own.
      * lisp/emulation/cua-rect.el (cua--rectangle-region-extract): New function.
      (region-extract-function): Use it.
      (cua-mouse-save-then-kill-rectangle): Use cua-copy-region.
      (cua-copy-rectangle, cua-cut-rectangle, cua-delete-rectangle):
      Delete functions.
      (cua--init-rectangles): Don't re-remap copy-region-as-kill,
      kill-ring-save, kill-region, delete-char, delete-forward-char.
      Ignore self-insert-iso.
      * lisp/menu-bar.el (clipboard-kill-ring-save, clipboard-kill-region):
      Obey region-extract-function.
      * lisp/emulation/cua-gmrk.el (cua--init-global-mark):
      Ignore `self-insert-iso'.
      
      Fixes: debbugs:16085
      6f8dfccf
    • Stefan Monnier's avatar
      Make registers and delete-selection-mode work on rectangles. · 00a2b823
      Stefan Monnier authored
      * 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.
      00a2b823
    • Leo Liu's avatar
      Clean up flymake.el · a92fa5f1
      Leo Liu authored
      * lisp/progmodes/flymake.el (flymake, flymake-error-bitmap)
      (flymake-warning-bitmap, flymake-fringe-indicator-position)
      (flymake-compilation-prevents-syntax-check)
      (flymake-start-syntax-check-on-newline)
      (flymake-no-changes-timeout, flymake-gui-warnings-enabled)
      (flymake-start-syntax-check-on-find-file, flymake-log-level)
      (flymake-xml-program, flymake-master-file-dirs)
      (flymake-master-file-count-limit)
      (flymake-allowed-file-name-masks): Relocate.
      (flymake-makehash, flymake-float-time)
      (flymake-replace-regexp-in-string, flymake-split-string)
      (flymake-get-temp-dir): Remove.
      (flymake-popup-menu, flymake-nop, flymake-make-xemacs-menu)
      (flymake-current-row, flymake-selected-frame)
      (flymake-get-point-pixel-pos): Remove xemacs compatibity and
      related functions.
      
      Fixes: debbugs:16077
      a92fa5f1
  2. 07 Dec, 2013 3 commits
  3. 06 Dec, 2013 8 commits
  4. 05 Dec, 2013 3 commits
    • Cameron Desautels's avatar
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Fix ^. · bf4906d7
      Cameron Desautels authored
      * test/automated/regexp-tests.el: New file.
      
      Fixes: debbugs:16046
      bf4906d7
    • Ted Zlatanov's avatar
      eww: add command to view page source · ff69c18f
      Ted Zlatanov authored
      * net/eww.el (eww-current-source): New variable to store page
      source.
      (eww-display-html, eww-mode, eww-save-history)
      (eww-restore-history): Use it.
      (eww-view-source): New command to view page source.
      Opportunistically uses `html-mode' to highlight the buffer.
      (eww-mode-map): Install it.
      ff69c18f
    • Michael Albinus's avatar
      Minor changes, detected by test suite. · b85eff45
      Michael Albinus authored
      * net/dbus.el (dbus-unregister-service)
      (dbus-escape-as-identifier, dbus-unescape-from-identifier):
      Fix docstring.
      (dbus-unregister-service): Skip :serial entries in
      `dbus-registered-objects-table'.
      (dbus-byte-array-to-string): New optional arg MULTIBYTE.
      b85eff45
  5. 04 Dec, 2013 8 commits
  6. 03 Dec, 2013 5 commits
  7. 02 Dec, 2013 4 commits