1. 22 Dec, 2013 6 commits
  2. 21 Dec, 2013 10 commits
    • Richard M. Stallman's avatar
      Document how to make RET not indent. · b51ad4cf
      Richard M. Stallman authored
      * simple.el (newline): Doc fix.
    • Kenjiro NAKAYAMA's avatar
      eww: fix wrong key binding · dde4de31
      Kenjiro NAKAYAMA authored
      * net/eww.el (eww-checkbox-map): Fix wrong key bind to `eww-toggle-checkbox'.
    • Kenjiro NAKAYAMA's avatar
      eww: support disabled and readonly text · 5edcc2dc
      Kenjiro NAKAYAMA authored
      * net/eww.el (eww-form-text): Support text form with disabled and readonly attributes.
    • Ted Zlatanov's avatar
      eww: machinery to list browser history · d49fbfd6
      Ted Zlatanov authored
      * net/eww.el (eww-list-histories, eww-list-histories)
      (eww-history-browse, eww-history-quit, eww-history-kill)
      (eww-history-mode-map, eww-history-mode): New command and
      functions to list browser histories.
    • Rüdiger Sonderfeld's avatar
      eww: minor code fixes and toolbar support · 5e1901c1
      Rüdiger Sonderfeld authored
      * net/eww.el (eww-back-url, eww-forward-url, eww-next-url)
      (eww-previous-url, eww-up-url, eww-top-url, eww-add-bookmark)
      (eww-bookmark-prepare, eww-bookmark-kill, eww-bookmark-yank)
      (eww-bookmark-browse, eww-next-bookmark, eww-previous-bookmark):
      Use `user-error'.
      (eww-bookmark-mode-map): Add menu.
      (eww-render, eww-mode): Use `setq-local'.
      (eww-tool-bar-map): New variable.
      (eww-mode): Set `tool-bar-map'.
      (eww-view-source): Check for `html-mode' with `fboundp'.
    • Lars Magne Ingebrigtsen's avatar
      * net/shr.el (shr--extract-best-source): Don't bug out on audio elements · 073d5cfd
      Lars Magne Ingebrigtsen authored
      That have text inside.  Also remove debugging.
    • Jan Djärv's avatar
      Customize ns-use-srgb-colorspace on OSX >= 10.7 to use sRGB. · 41cf3d11
      Jan Djärv authored
      * etc/NEWS: Mention ns-use-srgb-colorspace.
      * lisp/cus-start.el (all): Add ns-use-srgb-colorspace.
      * src/nsfns.m (Fxw_color_values): Use colorUsingDefaultColorSpace.
      * src/nsterm.h: Declare EmacsColor category.
      * src/nsterm.m (NSColor): Implement EmacsColor category.
      (ns_get_color): Use colorUsingDefaultColorSpace.
      (ns_get_color, ns_term_init): Use colorForEmacsRed.
    • Chong Yidong's avatar
      Don't make faces when loading Custom themes. · aac2b673
      Chong Yidong authored
      * custom.el (custom-theme-recalc-face): Do nothing if the face is
      undefined.  Thus, theme settings for undefined faces do not take
      effect until the faces are defined with defface, the same as with
      theme variables.
      * faces.el (face-spec-set): Use face-spec-recalc in all cases.
      (face-spec-reset-face): Don't assign extra properties in temacs.
      (face-spec-recalc): Apply X resources too.
    • Chong Yidong's avatar
      Doc fixes for face functions. · bacb0e77
      Chong Yidong authored
      * faces.el (face-spec-set):
      * cus-face.el (custom-theme-set-faces, custom-set-faces):
      * custom.el (defface): Doc fixes.
      Fixes: debbugs:16203
    • Chong Yidong's avatar
      Tweak C-x TAB behavior changes, and update docs. · 77221051
      Chong Yidong authored
      * lisp/indent.el (indent-rigidly-map): Add docstring, and move commands
      into named functions.
      (indent-rigidly-left, indent-rigidly-right)
      (indent-rigidly-right-to-tab-stop): New functions.  Decide on
      indentation direction based on bidi direction, and accumulate
      sequential commands in a single undo boundary.
      (indent-rigidly--pop-undo): New utility function.
      * doc/emacs/indent.texi (Indentation Commands): Document C-x TAB changes.
      * doc/lispref/text.texi (Region Indent): Note the new interactive
      behavior of indent-rigidly.
  3. 20 Dec, 2013 18 commits
    • Juanma Barranquero's avatar
    • Daniel Colascione's avatar
      * progmodes/sh-script.el (sh-mode): Tweak paragraph-separate · 3282bd2e
      Daniel Colascione authored
      so that we don't reflow comments into the shebang line.
    • Juri Linkov's avatar
      * lisp/saveplace.el (save-place-to-alist): Add `dired-filename' as · 1d42e5b6
      Juri Linkov authored
      a position when `dired-directory' is non-nil.  Check integer
      positions with `integerp'.
      (toggle-save-place, save-places-to-alist): Add check for
      (save-place-find-file-hook): Check integer positions with
      (save-place-dired-hook): Use `dired-goto-file' when
      `dired-filename' is found in the assoc list.  Check integer
      positions with `integerp'.
      (dired-initial-position-hook): Rename from `dired-initial-point-hook'.
      * lisp/dired.el (dired-initial-position-hook): Rename back from
      (dired-initial-position): Rename `dired-initial-point-hook' to
      (dired-file-name-at-point): Doc fix.
      Fixes: debbugs:15329
    • Juri Linkov's avatar
      * lisp/replace.el (read-regexp-defaults-function): New defcustom. · 24da7273
      Juri Linkov authored
      (read-regexp-suggestions): New function.
      (read-regexp): Use `read-regexp-defaults-function' to get default values.
      Use `read-regexp-suggestions'.  Add non-empty default to history
      for empty input.
      (occur-read-regexp-defaults-function): Remove function.
      (occur-read-primary-args): Use `regexp-history-last' instead of
      * lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): Remove function.
      (hi-lock-line-face-buffer, hi-lock-face-buffer)
      (hi-lock-face-phrase-buffer): Use `regexp-history-last' instead of
      `hi-lock-read-regexp-defaults-function'.  Doc fix.
      (hi-lock-face-symbol-at-point): Replace `find-tag-default-as-regexp'
      with `find-tag-default-as-symbol-regexp'.  Doc fix.
      (hi-lock-read-regexp-defaults): Remove function.
      (hi-lock-regexp-okay): Add check for null.
      * lisp/progmodes/grep.el (grep-read-regexp): Use `grep-tag-default' for
      the arg DEFAULTS.  Move formatting of the prompt to `read-regexp'.
      * ...
    • E Sabof's avatar
      * lisp/hi-lock.el (hi-lock-set-pattern): Check for `font-lock-specified-p'. · 137f57c8
      E Sabof authored
      Fixes: debbugs:14179
    • Stephen Berman's avatar
      New implementation of Todo item insertion commands and key bindings. · f3a66082
      Stephen Berman authored
      * calendar/todo-mode.el: New implementation of item insertion
      commands and key bindings.
      (todo-key-prompt): New face.
      (todo-insert-item): New command.
      (todo-insert-item--parameters): New defconst, replacing defvar
      (todo-insert-item--param-key-alist): New defconst, replacing
      defvar todo-insertion-commands-arg-key-list.
      (todo-insert-item--keyof, todo-insert-item--this-key): New defsubsts.
      (todo-insert-item--argsleft, todo-insert-item--apply-args)
      (todo-insert-item--next-param): New functions.
      (todo-insert-item--args, todo-insert-item--argleft)
      (todo-insert-item--argsleft, todo-insert-item--newargsleft):
      New variables.
      (todo-key-bindings-t): Change binding of "i" from
      todo-insertion-map to todo-insert-item.
      (todo-powerset, todo-gen-arglists, todo-insertion-commands-args)
      (todo-insertion-command-name, todo-insertion-commands-names)
      (todo-define-insertion-command, todo-insertion-commands)
      (todo-insertion-key-bindings, todo-insertion-map): Remove.
    • Stephen Berman's avatar
      Todo mode bug fixes and new features. · 2f99433b
      Stephen Berman authored
      * calendar/todo-mode.el: Bug fixes and new features.
      (todo-toggle-item-highlighting): Use eval-and-compile instead of
      (todo-move-category): Allow choosing a non-existing todo file to
      move the category to, and create that file.
      (todo-default-priority): New user option.
      (todo-set-item-priority): Use it.
      (todo-desktop-save-buffer, todo-restore-desktop-buffer): New functions.
      (desktop-restore-file-buffer): Declare.
      (desktop-buffer-mode-handlers): Add todo-restore-desktop-buffer.
      (todo-modes-set-2): Locally set desktop-save-buffer to
      (todo-mode, todo-archive-mode, todo-filtered-items-mode)
      (auto-mode-alist): Add autoload cookie.
      Fixes: debbugs:15225
    • Bozhidar Batsov's avatar
      * lisp/emacs-lisp/subr-x.el: (string-remove-prefix): New function. · 3cbfb935
      Bozhidar Batsov authored
      (string-remove-suffix): New function.
    • Bozhidar Batsov's avatar
    • Martin Rudalics's avatar
      Some more fixes for pixelwise resizing. · c44de18d
      Martin Rudalics authored
      Remove scroll_bar_actual_width from frames.
      * frame.h (struct frame): Remove scroll_bar_actual_width slot.
      * frame.c (Fscroll_bar_width): Return scroll bar area width.
      * nsterm.m (x_set_window_size):
      * widget.c (set_frame_size):
      * w32term.c (x_set_window_size):
      * xterm.c (x_set_window_size, x_set_window_size_1): Don't set
      Convert scroll_bar members to integers on Windows.
      * w32term.h (struct scroll_bar): Convert top, left, width,
      height, start, end and dragging to integers.
      * w32fns.c (w32_createscrollbar): Remove XINT conversions for
      scroll_bar members.
      * w32term.c (w32_set_scroll_bar_thumb)
      (w32_scroll_bar_handle_click): Remove XINT conversions for
      scroll_bar members.  Treat bar->dragging as integer.
      (x_scroll_bar_create): Call ALLOCATE_PSEUDOVECTOR with "top" as
      first element.  Remove XINT conversions for scroll_bar members.
      (w32_set_vertical_scroll_bar, x_scroll_bar_report_motion):
      Remove XINT conversions for scroll_bar members.
      Fix assignment for new window total sizes.
      * window.c (Fwindow_resize_apply_total): Assign values for
      minibuffer window.
      * window.el (window--pixel-to-size): Remove function.
      (window--pixel-to-total-1, window--pixel-to-total): Fix
      calculation of new total sizes.
    • Vitalie Spinu's avatar
      comint.el (comint-output-filter): Fix rear-nonsticky property placement. · ca65efcc
      Vitalie Spinu authored
      Fixes: debbugs:16010
    • Chong Yidong's avatar
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New · b520f210
      Dmitry Gutov authored
      (ruby-smie--indent-to-stmt-p): Use it.
      (ruby-smie-rules): Revert the logic in the handling of `when'.
      Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
      (ruby-deep-arglist, ruby-deep-indent-paren)
      (ruby-deep-indent-paren-style): Update docstrings to note that the
      vars don't have any effect with SMIE.
      * test/automated/ruby-mode-tests.el: Add tests for
      * test/indent/ruby.rb: Update examples to reflect the lack of change in
      default indentation of `begin' blocks.
      Fixes: debbugs:16182
    • Jay Belanger's avatar
      lisp/calc/calc.el (calc-enter, calc-pop): Use the variable · 26b75b45
      Jay Belanger authored
      doc/misc/calc.texi (Stack Manipulation Commands): Mention using the variable
      `calc-context-sensitive-enter' for `calc-enter' and `calc-pop'.
    • Lars Magne Ingebrigtsen's avatar
    • Rüdiger Sonderfeld's avatar
      octave-mode: Link to manual. · 51d971b4
      Rüdiger Sonderfeld authored
      * lisp/progmodes/octave.el (octave): Add link to manual and octave
        (octave-mode-menu): Link to octave-mode manual.
    • Leo Liu's avatar
      * skeleton.el (skeleton-pair-insert-maybe): Disable newline · 8c2e462a
      Leo Liu authored
      insertion using skeleton-end-newline.
      Fixes: debbugs:16138
    • Juri Linkov's avatar
      * lisp/replace.el (occur-engine): Use `add-face-text-property' · 501158bc
      Juri Linkov authored
      to add the face property to matches and titles. 
      * lisp/hi-lock.el (hi-green): Use lighter color "light green" closer to
      the palette of other hi-lock colors.
      (hi-lock-set-pattern): Prepend hi-lock face to the existing face.
      Fixes: debbugs:14645
  4. 19 Dec, 2013 6 commits
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-mode-map): Bind `M-s e' to `isearch-edit-string'. · 50ab1da6
      Juri Linkov authored
      Put :advertised-binding on `M-s c', `M-s r', `M-s e'.  (Bug#16035)
      (minibuffer-history-symbol): Move variable declaration closer to
      its usage.
      * lisp/isearchb.el (isearchb): Add `event-basic-type' on `last-command-event'.
      * lisp/gnus/gnus.el (gnus-suppress-keymap):
      * lisp/gnus/gnus-art.el (gnus-article-mode-map):
      * lisp/gnus/gnus-group.el (gnus-group-mode-map):
      * lisp/gnus/gnus-sum.el (gnus-summary-mode-map, gnus-summary-backend-map):
      Remove [backspace] key binding because it shadows DEL (bug#16035).
      * lisp/gnus/mm-decode.el (mm-viewer-completion-map): Remove duplicate definition.
    • Juri Linkov's avatar
      * lisp/vc/log-edit.el (log-edit-insert-filenames-without-changelog): New function. · 3d6e95e7
      Juri Linkov authored
      (log-edit-hook): Add it to :options.
      Fixes: debbugs:16170
    • Juri Linkov's avatar
      * lisp/simple.el (eval-expression-print-format): Don't check for · b41594fd
      Juri Linkov authored
      command names and the last command.  Always display additional
      formats of the integer result in the echo area, and insert them
      to the current buffer only with a zero prefix arg.
      Display character when char-displayable-p is non-nil.
      (eval-expression): With a zero prefix arg, set `print-length' and
      `print-level' to nil, and insert the integer values from
      `eval-expression-print-format' at the end.  Doc fix. 
      * lisp/emacs-lisp/lisp-mode.el (eval-print-last-sexp): Add arg
      `eval-last-sexp-arg-internal'.  Doc fix.
      (eval-last-sexp-1): Pass arg `eval-last-sexp-arg-internal' to
      `eval-last-sexp-print-value'.  Doc fix.
      (eval-last-sexp-print-value): Add arg `eval-last-sexp-arg-internal'.
      Set `print-length' and `print-level' to nil when arg is zero.
      (eval-last-sexp): Doc fix.
      (eval-defun-2): Print the integer values from
      `eval-expression-print-format' at the end.
      * lisp/emacs-lisp/edebug.el (edebug-eval-defun): Print the integer
      values from `eval-expression-print-format' at the end.
      * lisp/ielm.el (ielm-eval-input): Print the integer
      values from `eval-expression-print-format' at the end.
      Fixes: debbugs:12985
    • Ted Zlatanov's avatar
      eww: Revert 2013-12-11T19:01:44Z!tzz@lifelogs.com UI wrappers (eww-exit, eww-close) · 8f2be364
      Ted Zlatanov authored
      * net/eww.el (eww-exit, eww-close, eww-mode-map): Revert change of
    • Stefan Monnier's avatar
      * lisp/hl-line.el (hl-line-make-overlay): New fun. Set priority. · 2230a6e3
      Stefan Monnier authored
      (hl-line-highlight, global-hl-line-highlight): Use it.
      (hl-line-overlay): Use defvar-local.
      Fixes: debbugs:16192
    • Jan Djärv's avatar
      Make NS port use the normal dnd functions. · 1269a680
      Jan Djärv authored
      * lisp/term/ns-win.el: Require dnd.
      (global-map): Remove drag items.
      (ns-insert-text, ns-set-foreground-at-mouse)
      (ns-set-background-at-mouse): Remove
      (ns-drag-n-drop, ns-drag-n-drop-other-frame)
      (ns-drag-n-drop-as-text, ns-drag-n-drop-as-text-other-frame): New
      * src/nsterm.m (Qfile, Qurl): New.
      (EV_MODIFIERS2): New macro.
      (ns_term_init): Remove font and color from DND, does not work on
      newer OSX, and other ports don't have them.
      (performDragOperation:): Handle modifiers used during drag.
      Use DRAG_N_DROP_EVENT instead of NS specific events.
      Remove global Lisp variables used to communicate with ns-win.el.
      Remove font and color handling.
      (syms_of_nsterm): Defsym Qfile and Qurl.
      Fixes: debbugs:8051