bpt/emacs.git
10 years agoRename set-temporary-overlay-map -> set-transient-map
Chong Yidong [Mon, 23 Dec 2013 03:59:10 +0000 (11:59 +0800)]
Rename set-temporary-overlay-map -> set-transient-map

* lisp/subr.el (set-transient-map): Rename from
set-temporary-overlay-map.  Doc fix.

* lisp/face-remap.el (text-scale-adjust):
* lisp/indent.el (indent-rigidly):
* lisp/kmacro.el (kmacro-call-macro):
* lisp/minibuffer.el (minibuffer-force-complete):
* lisp/repeat.el (repeat):
* lisp/simple.el (universal-argument--mode):
* lisp/calendar/todo-mode.el (todo-insert-item--next-param):
* lisp/progmodes/f90.el (f90-abbrev-start): Callers changed.

* lisp/org/org.el (orgstruct-make-binding): Call set-transient-map
instead of old name set-temporary-overlay-map.

* doc/lispref/keymaps.texi (Controlling Active Maps): Renamed
set-temporary-overlay-map to set-transient map.  Doc fixes.
(Searching Keymaps): The transient keymap takes precedence.

10 years agoSome documenting of load-prefer-newer
Glenn Morris [Mon, 23 Dec 2013 02:54:28 +0000 (18:54 -0800)]
Some documenting of load-prefer-newer

* doc/lispref/loading.texi (How Programs Do Loading, Load Suffixes):
Mention `load-prefer-newer'.

* src/lread.c (Fload): Mention load-prefer-newer in doc.

10 years agoDocument `hash-table-keys and `hash-table-values'.
Xue Fuqiao [Sun, 22 Dec 2013 23:19:42 +0000 (07:19 +0800)]
Document `hash-table-keys and `hash-table-values'.

* doc/lispref/hash.texi (Other Hash): Document `hash-table-keys and
`hash-table-values'.

10 years agoMisc small fixes for some recent doc changes
Glenn Morris [Sun, 22 Dec 2013 23:13:18 +0000 (15:13 -0800)]
Misc small fixes for some recent doc changes

* doc/emacs/calendar.texi (General Calendar):
* doc/emacs/rmail.texi (Rmail Scrolling):
* doc/misc/woman.texi (Navigation):
Use itemx where appropriate.

* doc/emacs/entering.texi (Entering Emacs): Typo fix.

10 years agoeww: jump to next select field easier and better ftp error
Kenjiro NAKAYAMA [Sun, 22 Dec 2013 22:40:35 +0000 (17:40 -0500)]
eww: jump to next select field easier and better ftp error

* net/eww.el (eww-tag-select): Add text-property to jump to next
select field.
(eww) : Add non-supported ftp error.

10 years ago* lisp/progmodes/ruby-mode.el (ruby--electric-indent-p): Improve the
Dmitry Gutov [Sun, 22 Dec 2013 20:38:26 +0000 (22:38 +0200)]
* lisp/progmodes/ruby-mode.el (ruby--electric-indent-p): Improve the
comments.  Handle electric indent after typing `?' and `!'.

10 years agoFix last commit in doc/emacs/regs.texi.
Eli Zaretskii [Sun, 22 Dec 2013 18:31:38 +0000 (20:31 +0200)]
Fix last commit in doc/emacs/regs.texi.

10 years agoAdd 4 new bidi-class values in unidata-gen.el.
Eli Zaretskii [Sun, 22 Dec 2013 18:24:23 +0000 (20:24 +0200)]
Add 4 new bidi-class values in unidata-gen.el.

10 years agoUpdate UCD reference in ELisp manual.
Eli Zaretskii [Sun, 22 Dec 2013 18:17:20 +0000 (20:17 +0200)]
Update UCD reference in ELisp manual.

10 years agoFix bug #16216 with 'name' Unicode property of control characters.
Eli Zaretskii [Sun, 22 Dec 2013 18:02:37 +0000 (20:02 +0200)]
Fix bug #16216 with 'name' Unicode property of control characters.

 admin/unidata/unidata-gen.el (unidata-split-name): Don't give any NAME
 to <control> characters: the Unicode Standard says they have no
 name.

 doc/lispref/nonascii.texi (Character Properties): NAME or OLD-NAME
 properties can be nil (there's no empty string).

10 years agoHandle Bug#16207 by being more restrictive when running hooks.
Martin Rudalics [Sun, 22 Dec 2013 15:19:09 +0000 (16:19 +0100)]
Handle Bug#16207 by being more restrictive when running hooks.

* window.c (unwind_change_frame): New function.
(Fset_window_configuration): Don't run configuration change hook
while the frame configuration is unsafe.  Call select_window
twice.

10 years agoPrevent themes from obliterating faces on low-color terminals.
Chong Yidong [Sun, 22 Dec 2013 13:40:44 +0000 (21:40 +0800)]
Prevent themes from obliterating faces on low-color terminals.

* lisp/faces.el (face-spec-recalc): If the theme specs are not
applicable to a frame, fall back on the defface spec.

10 years agoIgnore info/dir
Andreas Schwab [Sun, 22 Dec 2013 11:33:28 +0000 (12:33 +0100)]
Ignore info/dir

10 years agoSpelling fix.
Paul Eggert [Sun, 22 Dec 2013 07:23:49 +0000 (23:23 -0800)]
Spelling fix.

10 years agoDocument new bool-vector set operation functions.
Xue Fuqiao [Sun, 22 Dec 2013 07:11:05 +0000 (15:11 +0800)]
Document new bool-vector set operation functions.

* doc/lispref/sequences.texi (Bool-Vectors): Document new bool-vector
set operation functions.

10 years agoDocument `get-pos-property'.
Xue Fuqiao [Sun, 22 Dec 2013 06:25:57 +0000 (14:25 +0800)]
Document `get-pos-property'.

* doc/lispref/text.texi (Examining Properties): Document `get-pos-property'.

10 years agoDocument `enable-dir-local-variables'.
Xue Fuqiao [Sun, 22 Dec 2013 06:15:17 +0000 (14:15 +0800)]
Document `enable-dir-local-variables'.

* doc/lispref/variables.texi (Directory Local Variables): Document `enable-dir-local-variables'.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
Dmitry Gutov [Sun, 22 Dec 2013 06:04:40 +0000 (08:04 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
after `{'.  We need it after block openers, and it doesn't seem
to hurt after hash openers.

10 years agoDocument negative argument of replacement commands.
Xue Fuqiao [Sun, 22 Dec 2013 05:57:32 +0000 (13:57 +0800)]
Document negative argument of replacement commands.

* doc/emacs/search.texi (Special Isearch):
(Query Replace): Document negative argument of replacement commands.

10 years agoDocument `isearch-forward-symbol-at-point'.
Xue Fuqiao [Sun, 22 Dec 2013 05:36:29 +0000 (13:36 +0800)]
Document `isearch-forward-symbol-at-point'.

* doc/emacs/search.texi (Symbol Search): Document `isearch-forward-symbol-at-point'.

10 years agoDocument image-{next, previous}-file, plus some minor tweak.
Xue Fuqiao [Sun, 22 Dec 2013 05:20:03 +0000 (13:20 +0800)]
Document image-{next, previous}-file, plus some minor tweak.

10 years agoIntegrate ruby-mode with electric-indent-mode better
Dmitry Gutov [Sun, 22 Dec 2013 04:57:00 +0000 (06:57 +0200)]
Integrate ruby-mode with electric-indent-mode better

* lisp/progmodes/ruby-mode.el (ruby--at-indentation-p): New function,
extracted from `ruby-smie-rules'.
(ruby--electric-indent-chars): New variable.
(ruby--electric-indent-p): New function.
(ruby-mode): Use `electric-indent-functions' instead of
`electric-indent-chars'.

10 years agoAnother NEWS mark.
Xue Fuqiao [Sun, 22 Dec 2013 04:55:31 +0000 (12:55 +0800)]
Another NEWS mark.

10 years agoDocument `debugger-toggle-locals'.
Xue Fuqiao [Sun, 22 Dec 2013 03:36:04 +0000 (11:36 +0800)]
Document `debugger-toggle-locals'.

* doc/lispref/debugging.texi (Debugger Commands): Document `debugger-toggle-locals'.

10 years ago* doc/emacs/regs.texi (File Registers): Document `kmacro-to-register'.
Xue Fuqiao [Sun, 22 Dec 2013 02:55:43 +0000 (10:55 +0800)]
* doc/emacs/regs.texi (File Registers): Document `kmacro-to-register'.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): Tweak the
Dmitry Gutov [Sun, 22 Dec 2013 02:31:21 +0000 (04:31 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): Tweak the
docstring.
(ruby-smie-rules): Indent plus one level after `=>'.

10 years agoDoc fix for `tab-stop-list'.
Xue Fuqiao [Sun, 22 Dec 2013 01:56:52 +0000 (09:56 +0800)]
Doc fix for `tab-stop-list'.

* doc/emacs/indent.texi (Tab Stops): Mention recent changes about `tab-stop-list'.

10 years agoDocument `scroll-bar-adjust-thumb-portion'.
Xue Fuqiao [Sun, 22 Dec 2013 01:45:13 +0000 (09:45 +0800)]
Document `scroll-bar-adjust-thumb-portion'.

10 years agoAdd NEWS marks for focus-{in, out}-hook.
Xue Fuqiao [Sun, 22 Dec 2013 01:17:48 +0000 (09:17 +0800)]
Add NEWS marks for focus-{in, out}-hook.

10 years agoAdd NEWS marks for VC.
Xue Fuqiao [Sun, 22 Dec 2013 01:07:22 +0000 (09:07 +0800)]
Add NEWS marks for VC.

10 years ago* src/lread.c (syms_of_lread) <load_prefer_newer>: Doc fix.
Xue Fuqiao [Sun, 22 Dec 2013 00:52:26 +0000 (08:52 +0800)]
* src/lread.c (syms_of_lread) <load_prefer_newer>: Doc fix.

10 years agoDocument how to make RET not indent.
Richard M. Stallman [Sat, 21 Dec 2013 22:55:59 +0000 (17:55 -0500)]
Document how to make RET not indent.

* simple.el (newline): Doc fix.

10 years agoeww: fix wrong key binding
Kenjiro NAKAYAMA [Sat, 21 Dec 2013 20:50:02 +0000 (15:50 -0500)]
eww: fix wrong key binding

* net/eww.el (eww-checkbox-map): Fix wrong key bind to `eww-toggle-checkbox'.

10 years agoeww: support disabled and readonly text
Kenjiro NAKAYAMA [Sat, 21 Dec 2013 20:42:23 +0000 (15:42 -0500)]
eww: support disabled and readonly text

* net/eww.el (eww-form-text): Support text form with disabled and readonly attributes.

10 years agoeww: machinery to list browser history
Ted Zlatanov [Sat, 21 Dec 2013 20:33:44 +0000 (15:33 -0500)]
eww: machinery to list browser history

* 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.

10 years agoeww: minor code fixes and toolbar support
Rüdiger Sonderfeld [Sat, 21 Dec 2013 20:13:09 +0000 (15:13 -0500)]
eww: minor code fixes and toolbar support

* 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'.

10 years ago* net/shr.el (shr--extract-best-source): Don't bug out on audio elements
Lars Magne Ingebrigtsen [Sat, 21 Dec 2013 17:54:16 +0000 (18:54 +0100)]
* net/shr.el (shr--extract-best-source): Don't bug out on audio elements

That have text inside.  Also remove debugging.

10 years agoChangelog for previous checkin, missed to mark.
Jan Djärv [Sat, 21 Dec 2013 16:12:52 +0000 (17:12 +0100)]
Changelog for previous checkin, missed to mark.

10 years agoCustomize ns-use-srgb-colorspace on OSX >= 10.7 to use sRGB.
Jan Djärv [Sat, 21 Dec 2013 16:11:55 +0000 (17:11 +0100)]
Customize ns-use-srgb-colorspace on OSX >= 10.7 to use sRGB.

* 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.

10 years agoDon't make faces when loading Custom themes.
Chong Yidong [Sat, 21 Dec 2013 15:31:09 +0000 (23:31 +0800)]
Don't make faces when loading Custom themes.

* 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.

10 years agoDoc fixes for face functions.
Chong Yidong [Sat, 21 Dec 2013 13:44:20 +0000 (21:44 +0800)]
Doc fixes for face functions.

* faces.el (face-spec-set):
* cus-face.el (custom-theme-set-faces, custom-set-faces):
* custom.el (defface): Doc fixes.

Fixes: debbugs:16203

10 years ago* themes/tango-dark-theme.el: Minor color tweak.
Chong Yidong [Sat, 21 Dec 2013 13:43:11 +0000 (21:43 +0800)]
* themes/tango-dark-theme.el: Minor color tweak.

10 years agoFix compilation warning on MS-Windows in my_png_error.
Eli Zaretskii [Sat, 21 Dec 2013 09:09:48 +0000 (11:09 +0200)]
Fix compilation warning on MS-Windows in my_png_error.

 src/image.c (fn_png_longjmp) [WINDOWSNT]: Mark the function as
 having the PNG_NORETURN attribute, to avoid compiler warning in
 my_png_error.

10 years agoTweak C-x TAB behavior changes, and update docs.
Chong Yidong [Sat, 21 Dec 2013 08:37:08 +0000 (16:37 +0800)]
Tweak C-x TAB behavior changes, and update docs.

* lisp/indent.el (indent-rigidly-map): Add docstring, and move commands
into named functions.
(indent-rigidly-left, indent-rigidly-right)
(indent-rigidly-left-to-tab-stop)
(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.

10 years agoRe-organize NEWS.
Chong Yidong [Sat, 21 Dec 2013 08:34:49 +0000 (16:34 +0800)]
Re-organize NEWS.

10 years agoRemove fringe background extension code on W32.
YAMAMOTO Mitsuharu [Sat, 21 Dec 2013 07:04:07 +0000 (16:04 +0900)]
Remove fringe background extension code on W32.

* w32term.h (struct scroll_bar): Remove member `fringe_extended_p'.

* w32term.c (w32_draw_fringe_bitmap, x_scroll_run): Remove code for
fringe background extension.
(x_scroll_bar_create): Remove variables `sb_left' and `sb_width',
because they are now always the same as `left' and `width',
respectively.  Remove code for the case that `width' and
`sb_width' are different.

10 years ago* faces.el (read-face-name): Require crm.el when using crm-separator.
Juanma Barranquero [Fri, 20 Dec 2013 23:06:17 +0000 (00:06 +0100)]
* faces.el (read-face-name): Require crm.el when using crm-separator.

10 years ago* progmodes/sh-script.el (sh-mode): Tweak paragraph-separate
Daniel Colascione [Fri, 20 Dec 2013 21:41:57 +0000 (13:41 -0800)]
* progmodes/sh-script.el (sh-mode): Tweak paragraph-separate
so that we don't reflow comments into the shebang line.

10 years ago* lisp/saveplace.el (save-place-to-alist): Add `dired-filename' as
Juri Linkov [Fri, 20 Dec 2013 20:20:39 +0000 (22:20 +0200)]
* lisp/saveplace.el (save-place-to-alist): Add `dired-filename' as
a position when `dired-directory' is non-nil.  Check integer
positions with `integerp'.
(toggle-save-place, save-places-to-alist): Add check for
`dired-directory'.
(save-place-find-file-hook): Check integer positions with
`integerp'.
(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-point-hook'.
(dired-initial-position): Rename `dired-initial-point-hook' to
`dired-initial-position-hook'.
(dired-file-name-at-point): Doc fix.

Fixes: debbugs:15329

10 years agoDon't duplicate descriptions if there are alternative keys.
Tassilo Horn [Fri, 20 Dec 2013 20:08:56 +0000 (21:08 +0100)]
Don't duplicate descriptions if there are alternative keys.

10 years ago* lisp/replace.el (read-regexp-defaults-function): New defcustom.
Juri Linkov [Fri, 20 Dec 2013 19:55:56 +0000 (21:55 +0200)]
* lisp/replace.el (read-regexp-defaults-function): New defcustom.
(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
`occur-read-regexp-defaults-function'.

* 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'.

* lisp/subr.el (find-tag-default-as-symbol-regexp): New function.
(find-tag-default-as-regexp): Move symbol regexp formatting to
`find-tag-default-as-symbol-regexp'.

Fixes: debbugs:14405

10 years ago* lisp/hi-lock.el (hi-lock-set-pattern): Check for `font-lock-specified-p'.
E Sabof [Fri, 20 Dec 2013 19:47:01 +0000 (21:47 +0200)]
* lisp/hi-lock.el (hi-lock-set-pattern): Check for `font-lock-specified-p'.

Fixes: debbugs:14179

10 years agoDocument that =, <, <=, >, >= now accept one or many arguments.
Tassilo Horn [Fri, 20 Dec 2013 18:41:31 +0000 (19:41 +0100)]
Document that =, <, <=, >, >= now accept one or many arguments.

* doc/lispref/numbers.texi (numbers): Document that =, <, <=, >, >= now accept
one or many arguments.

10 years agoNew implementation of Todo item insertion commands and key bindings.
Stephen Berman [Fri, 20 Dec 2013 17:21:12 +0000 (18:21 +0100)]
New implementation of Todo item insertion commands and key bindings.

* 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-insertion-commands-args-genlist.
(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.

10 years agoTodo mode bug fixes and new features.
Stephen Berman [Fri, 20 Dec 2013 17:16:47 +0000 (18:16 +0100)]
Todo mode bug fixes and new features.

* calendar/todo-mode.el: Bug fixes and new features.
(todo-toggle-item-highlighting): Use eval-and-compile instead of
eval-when-compile.
(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-desktop-save-buffer.
(todo-mode, todo-archive-mode, todo-filtered-items-mode)
(auto-mode-alist): Add autoload cookie.

Fixes: debbugs:15225

10 years ago* lisp/emacs-lisp/subr-x.el: (string-remove-prefix): New function.
Bozhidar Batsov [Fri, 20 Dec 2013 16:37:10 +0000 (18:37 +0200)]
* lisp/emacs-lisp/subr-x.el: (string-remove-prefix): New function.
(string-remove-suffix): New function.

10 years ago* lisp/emacs-lisp/subr-x.el: Renamed from helpers.el.
Bozhidar Batsov [Fri, 20 Dec 2013 16:21:45 +0000 (18:21 +0200)]
* lisp/emacs-lisp/subr-x.el: Renamed from helpers.el.

10 years agoMove eshell visual commands change below existing eshell outline.
Tassilo Horn [Fri, 20 Dec 2013 16:11:17 +0000 (17:11 +0100)]
Move eshell visual commands change below existing eshell outline.

10 years agoMark eshell changes as documented.
Tassilo Horn [Fri, 20 Dec 2013 16:06:15 +0000 (17:06 +0100)]
Mark eshell changes as documented.

10 years agoDocument `S-SPC' as alternative to scrolling down with `DEL'.
Tassilo Horn [Fri, 20 Dec 2013 16:03:12 +0000 (17:03 +0100)]
Document `S-SPC' as alternative to scrolling down with `DEL'.

* doc/emacs/rmail.texi: Document `S-SPC' as alternative to scrolling down
with `DEL'.

* doc/emacs/calendar.texi: Ditto.

* doc/emacs/display.texi: Ditto.

* doc/emacs/help.texi: Ditto.

* doc/misc/info.texi: Document `S-SPC' as alternative to `DEL' for
scrolling.

* doc/misc/woman.texi: Ditto.

10 years agoDocument `toggle-frame-maximized' and `toggle-frame-fullscreen'.
Tassilo Horn [Fri, 20 Dec 2013 15:35:53 +0000 (16:35 +0100)]
Document `toggle-frame-maximized' and `toggle-frame-fullscreen'.

* doc/emacs/frames.texi: Document `toggle-frame-maximized' and
`toggle-frame-fullscreen' with their respective keys.

10 years agoMark `split-window' change from command to function as ---.
Tassilo Horn [Fri, 20 Dec 2013 15:26:38 +0000 (16:26 +0100)]
Mark `split-window' change from command to function as ---.

10 years agoDocument buffer name uniquification changes.
Tassilo Horn [Fri, 20 Dec 2013 15:18:50 +0000 (16:18 +0100)]
Document buffer name uniquification changes.

* doc/emacs/buffers.texi: Document buffer name uniquification changes.

10 years agoDocument that `electric-indent-mode' is enabled by default.
Tassilo Horn [Fri, 20 Dec 2013 14:56:23 +0000 (15:56 +0100)]
Document that `electric-indent-mode' is enabled by default.

* doc/emacs/indent.texi: Document that `electric-indent-mode' is enabled by
default.

10 years agoDocument `blink-cursor-blinks'.
Tassilo Horn [Fri, 20 Dec 2013 14:51:53 +0000 (15:51 +0100)]
Document `blink-cursor-blinks'.

* doc/emacs/display.texi (Cursor Display): Document `blink-cursor-blinks'.

10 years agoMark write-region-inhibit-fsync changes as documented.
Tassilo Horn [Fri, 20 Dec 2013 14:33:52 +0000 (15:33 +0100)]
Mark write-region-inhibit-fsync changes as documented.

10 years agoDocument *Messages* buffer changes.
Tassilo Horn [Fri, 20 Dec 2013 14:28:01 +0000 (15:28 +0100)]
Document *Messages* buffer changes.

* doc/emacs/buffers.texi: Update list-buffers "screeshop" to show Messages
as major-mode.

* doc/lispref/display.texi: Document `messages-buffer'.

10 years agoDocument `initial-buffer-choice' changes.
Tassilo Horn [Fri, 20 Dec 2013 14:18:21 +0000 (15:18 +0100)]
Document `initial-buffer-choice' changes.

* doc/emacs/entering.texi: Document `initial-buffer-choice' changes.

* doc/emacs/misc.texi (arguments): Document `initial-buffer-choice' changes.

* doc/lispref/os.texi: Document `initial-buffer-choice' changes.

10 years agoMark set-mark-default-inactive item as ---
Tassilo Horn [Fri, 20 Dec 2013 14:00:21 +0000 (15:00 +0100)]
Mark set-mark-default-inactive item as ---

10 years agoDocument prefix key description in terms of ?
Tassilo Horn [Fri, 20 Dec 2013 13:55:44 +0000 (14:55 +0100)]
Document prefix key description in terms of ?

* doc/emacs/help.texi: Document that `?' now also shows subcommands of
prefix keys.

10 years agoNEWS: Octave mode changes reflected in new manual.
Rüdiger Sonderfeld [Fri, 20 Dec 2013 12:31:20 +0000 (13:31 +0100)]
NEWS: Octave mode changes reflected in new manual.

See (info "(octave-mode)Top").

10 years agoSome more fixes for pixelwise resizing.
Martin Rudalics [Fri, 20 Dec 2013 10:48:36 +0000 (11:48 +0100)]
Some more fixes for pixelwise resizing.

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.
(x_figure_window_size):
* 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
scroll_bar_actual_width.

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.

10 years ago* url/url.el (url-retrieve-synchronously): Add optional arg SILENT and
Leo Liu [Fri, 20 Dec 2013 10:12:17 +0000 (18:12 +0800)]
* url/url.el (url-retrieve-synchronously): Add optional arg SILENT and
INHIBIT-COOKIES.

10 years agoAdd/fix docs for add-face-text-property
Chong Yidong [Fri, 20 Dec 2013 07:12:04 +0000 (15:12 +0800)]
Add/fix docs for add-face-text-property

* doc/lispref/text.texi (Changing Properties): Improve documentation for
add-face-text-property.
(Special Properties): Mention add-face-text-property.

* src/textprop.c (Fadd_face_text_property): Doc fix.  Rename `appendp'
argument to `append'.

10 years agocomint.el (comint-output-filter): Fix rear-nonsticky property placement.
Vitalie Spinu [Fri, 20 Dec 2013 06:25:19 +0000 (14:25 +0800)]
comint.el (comint-output-filter): Fix rear-nonsticky property placement.

Fixes: debbugs:16010

10 years ago* faces.el (read-color): Minor fix for completion function.
Chong Yidong [Fri, 20 Dec 2013 06:11:00 +0000 (14:11 +0800)]
* faces.el (read-color): Minor fix for completion function.

10 years agolisp/gnus/gnus-spec.el (gnus-tmp-article-number): Remove duplicate defvar
Katsumi Yamaoka [Fri, 20 Dec 2013 05:53:04 +0000 (05:53 +0000)]
lisp/gnus/gnus-spec.el (gnus-tmp-article-number): Remove duplicate defvar

10 years ago* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New
Dmitry Gutov [Fri, 20 Dec 2013 05:20:33 +0000 (07:20 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New
option.
(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
`ruby-align-to-stmt-keywords'.

* test/indent/ruby.rb: Update examples to reflect the lack of change in
default indentation of `begin' blocks.

Fixes: debbugs:16182

10 years agolisp/calc/calc.el (calc-enter, calc-pop): Use the variable
Jay Belanger [Fri, 20 Dec 2013 04:53:24 +0000 (22:53 -0600)]
lisp/calc/calc.el (calc-enter, calc-pop): Use the variable
`calc-context-sensitive-enter'.

doc/misc/calc.texi (Stack Manipulation Commands): Mention using the variable
`calc-context-sensitive-enter' for `calc-enter' and `calc-pop'.

10 years ago* net/shr.el (shr-insert): Protect against infloops in degenerate tables.
Lars Magne Ingebrigtsen [Fri, 20 Dec 2013 04:29:08 +0000 (05:29 +0100)]
* net/shr.el (shr-insert): Protect against infloops in degenerate tables.

10 years agooctave-mode: Link to manual.
Rüdiger Sonderfeld [Fri, 20 Dec 2013 01:50:46 +0000 (02:50 +0100)]
octave-mode: Link to manual.

* lisp/progmodes/octave.el (octave): Add link to manual and octave
  homepage.
  (octave-mode-menu): Link to octave-mode manual.

10 years ago* skeleton.el (skeleton-pair-insert-maybe): Disable newline
Leo Liu [Fri, 20 Dec 2013 00:38:02 +0000 (08:38 +0800)]
* skeleton.el (skeleton-pair-insert-maybe): Disable newline
insertion using skeleton-end-newline.

Fixes: debbugs:16138

10 years ago* lisp/replace.el (occur-engine): Use `add-face-text-property'
Juri Linkov [Fri, 20 Dec 2013 00:07:08 +0000 (02:07 +0200)]
* lisp/replace.el (occur-engine): Use `add-face-text-property'
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

10 years ago* lisp/isearch.el (isearch-mode-map): Bind `M-s e' to `isearch-edit-string'.
Juri Linkov [Thu, 19 Dec 2013 22:12:12 +0000 (00:12 +0200)]
* lisp/isearch.el (isearch-mode-map): Bind `M-s e' to `isearch-edit-string'.
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'.
(Bug#14785)

* 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.

10 years ago* lisp/vc/log-edit.el (log-edit-insert-filenames-without-changelog): New function.
Juri Linkov [Thu, 19 Dec 2013 21:10:41 +0000 (23:10 +0200)]
* lisp/vc/log-edit.el (log-edit-insert-filenames-without-changelog): New function.
(log-edit-hook): Add it to :options.

Fixes: debbugs:16170

10 years ago* lisp/simple.el (eval-expression-print-format): Don't check for
Juri Linkov [Thu, 19 Dec 2013 21:02:46 +0000 (23:02 +0200)]
* lisp/simple.el (eval-expression-print-format): Don't check for
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

10 years agoFix last commit for TTYs.
Eli Zaretskii [Thu, 19 Dec 2013 19:25:13 +0000 (21:25 +0200)]
Fix last commit for TTYs.

10 years agoFix bug #16192 with highlight of display margins when region is active
Eli Zaretskii [Thu, 19 Dec 2013 19:06:53 +0000 (21:06 +0200)]
Fix bug #16192 with highlight of display margins when region is active

 src/xdisp.c (extend_face_to_end_of_line): Use default face, not the
 current text face, for extending the face of the display margins.

10 years agoUpdate .gitignore.
Rüdiger Sonderfeld [Thu, 19 Dec 2013 18:00:05 +0000 (19:00 +0100)]
Update .gitignore.

It should probably be kept better in sync with .bzrignore.

* .gitignore: Ignore refcard temporaries and info/*.info files.

10 years agoFix bug #16190 with documentation of capitalize-word.
Eli Zaretskii [Thu, 19 Dec 2013 17:51:18 +0000 (19:51 +0200)]
Fix bug #16190 with documentation of capitalize-word.

 src/casefiddle.c (Fupcase_word, Fdowncase_word, Fcapitalize_word):
 Doc fix.

10 years agoeww: Revert 2013-12-11T19:01:44Z!tzz@lifelogs.com UI wrappers (eww-exit, eww-close)
Ted Zlatanov [Thu, 19 Dec 2013 16:25:25 +0000 (11:25 -0500)]
eww: Revert 2013-12-11T19:01:44Z!tzz@lifelogs.com UI wrappers (eww-exit, eww-close)

* net/eww.el (eww-exit, eww-close, eww-mode-map): Revert change of
2013-12-11T19:01:44Z!tzz@lifelogs.com.

10 years ago* lisp/hl-line.el (hl-line-make-overlay): New fun. Set priority.
Stefan Monnier [Thu, 19 Dec 2013 14:00:55 +0000 (09:00 -0500)]
* lisp/hl-line.el (hl-line-make-overlay): New fun.  Set priority.
(hl-line-highlight, global-hl-line-highlight): Use it.
(hl-line-overlay): Use defvar-local.

Fixes: debbugs:16192

10 years agoMake NS port use the normal dnd functions.
Jan Djärv [Thu, 19 Dec 2013 10:25:48 +0000 (11:25 +0100)]
Make NS port use the normal dnd functions.

* 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
functions.

* src/nsterm.h (KEY_NS_DRAG_FILE, KEY_NS_DRAG_COLOR, KEY_NS_DRAG_TEXT):
Remove.

* src/nsterm.m (Qfile, Qurl): New.
(EV_MODIFIERS2): New macro.
(EV_MODIFIERS): Use EV_MODIFIERS2.
(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

10 years agoRedo size constraint for NS so frames can span screens.
Jan Djärv [Thu, 19 Dec 2013 08:40:11 +0000 (09:40 +0100)]
Redo size constraint for NS so frames can span screens.

* nsterm.h (ns_output): Remove dont_constrain.

* nsterm.m (NSTRACE_SIZE, NSTRACE_RECT): New macros.
(ns_constrain_all_frames, x_set_offset): Remove assignment to
dont_constrain.
(updateFrameSize:, windowWillResize:toSize:): Add trace.
(constrainFrameRect): Remove special case nr_screens == 1.
Don't constrain size to size of view.

10 years ago* lisp/emacs-lisp/ert.el (ert-select-tests): Fix string/symbol mixup.
Glenn Morris [Thu, 19 Dec 2013 08:14:37 +0000 (00:14 -0800)]
* lisp/emacs-lisp/ert.el (ert-select-tests): Fix string/symbol mixup.

Fixes: debbugs:16121

10 years agoGenerate HORIZ_WHEEL_EVENT.
Jan Djärv [Thu, 19 Dec 2013 07:38:08 +0000 (08:38 +0100)]
Generate HORIZ_WHEEL_EVENT.

* nsterm.m (mouseDown:): Generate HORIZ_WHEEL_EVENT.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent middle-of-block
Dmitry Gutov [Thu, 19 Dec 2013 05:06:24 +0000 (07:06 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent middle-of-block
keywords to their parent.

10 years agolisp/gnus/ChangeLog: Fix timestamp of last commit
Katsumi Yamaoka [Thu, 19 Dec 2013 04:48:52 +0000 (04:48 +0000)]
lisp/gnus/ChangeLog: Fix timestamp of last commit

10 years agolisp/gnus/gnus-uu.el: Fix temporary files deletion bug
Katsumi Yamaoka [Thu, 19 Dec 2013 04:41:35 +0000 (04:41 +0000)]
lisp/gnus/gnus-uu.el: Fix temporary files deletion bug

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Allow the
Dmitry Gutov [Thu, 19 Dec 2013 04:21:44 +0000 (06:21 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Allow the
first arg to be a string (fixed dead code), or an operator symbol.
(ruby-smie--forward-token): Tokenize ` @ ' before strings and
operator symbols.
(ruby-smie-rules): Remove parent token check in the `.' clause, it
did nothing.  Don't respond to `(:after ".")', it will be called
with :before anyway.  Remove the ` @ ' rule, it didn't seem to
change anything.  Only return indentation for binary operators
when they are hanging.  De-dent opening paren when its parent is
`.', otherwise it looks bad when the dot is not at bol or eol.

Fixes: debbugs:16182