bpt/emacs.git
10 years agoMerge from trunk.
Eli Zaretskii [Sat, 7 Dec 2013 17:21:57 +0000 (19:21 +0200)]
Merge from trunk.

10 years agoMinor doc fix.
Eli Zaretskii [Sat, 7 Dec 2013 17:16:30 +0000 (19:16 +0200)]
Minor doc fix.

10 years agoUpdated documentation.
Eli Zaretskii [Sat, 7 Dec 2013 16:51:33 +0000 (18:51 +0200)]
Updated documentation.

10 years agoConverted file-name-info.
Eli Zaretskii [Sat, 7 Dec 2013 16:01:55 +0000 (18:01 +0200)]
Converted file-name-info.

10 years agoFixed $HOME in expand-file-name.
Eli Zaretskii [Sat, 7 Dec 2013 14:59:37 +0000 (16:59 +0200)]
Fixed $HOME in expand-file-name.

10 years agoFixed initialization code and default-printer-name.
Eli Zaretskii [Sat, 7 Dec 2013 14:45:31 +0000 (16:45 +0200)]
Fixed initialization code and default-printer-name.

10 years agoMention bug 16049.
Jan Djärv [Sat, 7 Dec 2013 14:26:29 +0000 (15:26 +0100)]
Mention bug 16049.

10 years agoHandle pixelwise resize changes in NS port.
Jan Djärv [Sat, 7 Dec 2013 14:21:53 +0000 (15:21 +0100)]
Handle pixelwise resize changes in NS port.

* src/nsfns.m (Fx_create_frame): Call change_frame_size twice as per
comment in xfns.c.  Change to pixelwise call.

* src/nsterm.m (x_set_window_size): Change parameters rows/cols to
height/width.  row/cols are locals.
Pass pixelwise to check_frame_size.  Don't set FRAME_PIXEL_WIDTH/HEIGHT.
(updateFrameSize:): Remove gsextra.  Adjust for pixelwise resize.
(windowWillResize): Remove gsextra.  Calculate extra as in
updateFrameSize.
(x_new_font): Don't change frame size if fullscreen.  Change
size pixelwise.

10 years agobuild-aux/msys-to-w32: Fix a typo in a comment.
Dani Moncayo [Sat, 7 Dec 2013 13:02:09 +0000 (14:02 +0100)]
build-aux/msys-to-w32: Fix a typo in a comment.

10 years agoTested subprogram invocation, fixed decode_env_path.
Eli Zaretskii [Sat, 7 Dec 2013 12:00:10 +0000 (14:00 +0200)]
Tested subprogram invocation, fixed decode_env_path.

10 years ago* net/shr.el (shr-tag-img): Don't bug out on <img src=""> data.
Lars Magne Ingebrigtsen [Sat, 7 Dec 2013 01:44:15 +0000 (02:44 +0100)]
* net/shr.el (shr-tag-img): Don't bug out on <img src=""> data.

10 years agoConverted spawnve, but not tested the result yet.
Eli Zaretskii [Fri, 6 Dec 2013 15:55:08 +0000 (17:55 +0200)]
Converted spawnve, but not tested the result yet.

10 years agoCommit missing ChangeLog entry.
Michael Albinus [Fri, 6 Dec 2013 15:35:11 +0000 (16:35 +0100)]
Commit missing ChangeLog entry.

10 years agoBug#16045
Michael Albinus [Fri, 6 Dec 2013 15:34:06 +0000 (16:34 +0100)]
Bug#16045

* progmodes/compile.el (compilation-start):
* progmodes/grep.el (rgrep): Revert change of 2012-12-20T11:15:38Z!michael.albinus@gmx.de.

* net/tramp-sh.el (tramp-sh-handle-start-file-process):
Handle long command lines, lasting from "sh -c ...".  (Bug#16045)

10 years agoRevert inadvertently commited changes in grep.el.
Eli Zaretskii [Fri, 6 Dec 2013 15:18:23 +0000 (17:18 +0200)]
Revert inadvertently commited changes in grep.el.

10 years agoFix bug #16070 with crashes when toggling buffer's multibyteness.
Eli Zaretskii [Fri, 6 Dec 2013 15:13:35 +0000 (17:13 +0200)]
Fix bug #16070 with crashes when toggling buffer's multibyteness.

 src/buffer.c (Fset_buffer_multibyte): Invalidate buffer caches.

10 years agoorg.texi: Don't include Emacs version within Org's version
Bastien Guerry [Fri, 6 Dec 2013 14:43:10 +0000 (15:43 +0100)]
org.texi: Don't include Emacs version within Org's version

Thanks to Glenn for reporting this.

10 years agoNEWS trivia
Glenn Morris [Fri, 6 Dec 2013 14:31:42 +0000 (09:31 -0500)]
NEWS trivia

10 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Touch
Dmitry Gutov [Fri, 6 Dec 2013 14:24:10 +0000 (16:24 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Touch
up the last change.

10 years agoMerge Org 8.2.4
Bastien Guerry [Fri, 6 Dec 2013 11:21:31 +0000 (12:21 +0100)]
Merge Org 8.2.4

10 years ago* xterm.c (input_signal_count): Remove.
Dmitry Antipov [Fri, 6 Dec 2013 05:49:05 +0000 (09:49 +0400)]
* xterm.c (input_signal_count): Remove.
(x_dispatch_event): Define unconditionally.
(x_make_frame_visible): Process X events until the frame
is really visible (Bug#16027).
* xterm.h (x_dispatch_event): Declare unconditionally.

10 years ago* progmodes/octave.el (inferior-octave-prompt): Use shy groups.
Leo Liu [Fri, 6 Dec 2013 04:26:17 +0000 (12:26 +0800)]
* progmodes/octave.el (inferior-octave-prompt): Use shy groups.
(inferior-octave-startup): Always use "octave> " for prompt.
(octave-goto-function-definition)
(octave-sync-function-file-names)
(octave-find-definition-default-filename): Remove redundant backquotes.

10 years agoFix Bug#15874
Dmitry Gutov [Fri, 6 Dec 2013 04:22:08 +0000 (06:22 +0200)]
Fix Bug#15874

* lisp/progmodes/ruby-mode.el (ruby-mode-syntax-table): Don't modify
syntax for `?'.
(ruby-expr-beg): Expect that `!' will have syntax class "symbol"
where appropriate already.
(ruby-syntax-propertize-function): Propertize `?' and `!' at the
end of method names.

10 years ago* lisp/isearch.el (isearch--saved-overriding-local-map): New internal variable.
Juri Linkov [Fri, 6 Dec 2013 00:55:20 +0000 (02:55 +0200)]
* lisp/isearch.el (isearch--saved-overriding-local-map): New internal variable.
(isearch-mode): Set it to the initial value of `overriding-terminal-local-map'.
(isearch-pre-command-hook): Compare `overriding-terminal-local-map'
with `isearch--saved-overriding-local-map'.

Fixes: debbugs:16035

10 years agoAdd caching variant of `completion-table-dynamic'
Dmitry Gutov [Fri, 6 Dec 2013 00:48:52 +0000 (02:48 +0200)]
Add caching variant of `completion-table-dynamic'

* lisp/minibuffer.el (completion-table-with-cache): New function.

* lisp/progmodes/octave.el (inferior-octave-completion-table): Turn
back into function, use `completion-table-with-cache'.  Update all
references.

Fixes: debbugs:11906

10 years agoAdded commentary about the overall design and its limitations.
Eli Zaretskii [Thu, 5 Dec 2013 20:59:23 +0000 (22:59 +0200)]
Added commentary about the overall design and its limitations.

10 years ago* lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Fix ^.
Cameron Desautels [Thu, 5 Dec 2013 20:25:54 +0000 (15:25 -0500)]
* lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Fix ^.
* test/automated/regexp-tests.el: New file.

Fixes: debbugs:16046

10 years agoFix some pixelwise breakage, more remain.
Jan Djärv [Thu, 5 Dec 2013 16:20:11 +0000 (17:20 +0100)]
Fix some pixelwise breakage, more remain.

* nsfns.m (ns_frame_parm_handlers): Add right/bottom_divider_width.

* nsterm.m (x_set_window_size): Handle pixelwise.

10 years agoeww: add command to view page source
Ted Zlatanov [Thu, 5 Dec 2013 16:04:53 +0000 (11:04 -0500)]
eww: add command to view page source

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

10 years ago* dbus.texi (Type Conversion): Clarify unibyte-ness of strings.
Michael Albinus [Thu, 5 Dec 2013 15:34:30 +0000 (16:34 +0100)]
* dbus.texi (Type Conversion): Clarify unibyte-ness of strings.

10 years ago* automated/dbus-tests.el: New file.
Michael Albinus [Thu, 5 Dec 2013 15:31:57 +0000 (16:31 +0100)]
* automated/dbus-tests.el: New file.

10 years agoMinor changes, detected by test suite.
Michael Albinus [Thu, 5 Dec 2013 15:29:59 +0000 (16:29 +0100)]
Minor changes, detected by test suite.

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

10 years agoIn x_new_font calculate new frame sizes from new font size (Bug#16028).
Martin Rudalics [Thu, 5 Dec 2013 13:46:30 +0000 (14:46 +0100)]
In x_new_font calculate new frame sizes from new font size (Bug#16028).

* w32term.c (x_new_font):
* xterm.c (x_new_font): Calculate new frame size from new font
size (Bug#16028).

10 years ago* src/lisp.h (FOR_EACH_TAIL): New macro.
Stefan Monnier [Wed, 4 Dec 2013 22:10:46 +0000 (17:10 -0500)]
* src/lisp.h (FOR_EACH_TAIL): New macro.
* src/fns.c (Fdelq): Use it to avoid inf-loops; remove QUIT.

10 years agoTrim whitespace in lm-keywords-list
Ted Zlatanov [Wed, 4 Dec 2013 21:32:05 +0000 (16:32 -0500)]
Trim whitespace in lm-keywords-list

* emacs-lisp/lisp-mnt.el (lm-keywords-list): Trim whitespace
around keywords with extra `split-string' argument.

10 years ago* src/window.c (select_window): Call second wset_redisplay before we change
Stefan Monnier [Wed, 4 Dec 2013 21:08:21 +0000 (16:08 -0500)]
* src/window.c (select_window): Call second wset_redisplay before we change
selected_window.

Fixes: debbugs:16034

10 years ago* bidi.c (LRM_CHAR, RLM_CHAR): Remove; no longer used.
Paul Eggert [Wed, 4 Dec 2013 19:19:45 +0000 (11:19 -0800)]
* bidi.c (LRM_CHAR, RLM_CHAR): Remove; no longer used.

10 years agoAvoid compiler warning in w32xfns.c.
Eli Zaretskii [Wed, 4 Dec 2013 19:05:16 +0000 (21:05 +0200)]
Avoid compiler warning in w32xfns.c.

 src/w32xfns.c: Include window.h, to avoid a compiler warning.

10 years ago* src/window.c (window_scroll): Mark window for redisplay.
Stefan Monnier [Wed, 4 Dec 2013 18:46:47 +0000 (13:46 -0500)]
* src/window.c (window_scroll): Mark window for redisplay.
(scroll_command, Fscroll_other_window): Don't cause redisplay now that
window_scroll takes care of it.
(Fset_window_point, Fdelete_other_windows_internal)
(set_window_buffer, Fwindow_resize_apply, resize_frame_windows)
(Fsplit_window_internal, Fdelete_window_internal)
(Fresize_mini_window_internal, Fset_window_configuration)
(apply_window_adjustment): Use fset_redisplay and wset_redisplay to
cause redisplay instead of forcing a complete redisplay.
* src/xdisp.c (wset_redisplay): Don't set windows_or_buffers_changed if
we're only affecting the selected_window.

Fixes: debbugs:16034

10 years agoFix bug #16043 with crashes when displaying new bidi control characters.
Eli Zaretskii [Wed, 4 Dec 2013 16:58:05 +0000 (18:58 +0200)]
Fix bug #16043 with crashes when displaying new bidi control characters.

 src/bidi.c (bidi_get_type, bidi_get_category): Handle the isolate
 directional control characters.  Update type and category
 determination according to the UBA from Unicode v6.3.
 (bidi_category_t): New category EXPLICIT_FORMATTING.
 src/dispextern.h (bidi_type_t): Update to include new bidirectional
 properties introduced with Unicode v6.3.

 admin/unidata/unidata-gen.el (unidata-prop-alist): Update bidi-class
 to include the new isolate-related classes introduced with Unicode
 v6.3.
 (unidata-encode-val): Accept an additional optional argument, a
 warning message to emit when UnicodeData.txt defines bidi-class
 values that are not in unidata-prop-alist.  Add a comment
 explaining what should maintainers do if/when such a warning ever
 appears.
 (unidata-gen-table): Call unidata-encode-val with 3rd arg non-nil
 when generating uni-bidi.el.

10 years agoAdd ChangeLog for last commit: In windmove-other-window-loc handle navigation between...
Martin Rudalics [Wed, 4 Dec 2013 14:22:50 +0000 (15:22 +0100)]
Add ChangeLog for last commit: In windmove-other-window-loc handle navigation between windows (Bug#16017).

* windmove.el (windmove-other-window-loc): Handle navigation
between windows (excluding the minibuffer window - Bug#16017).

10 years agoIn XTflash fix coordinate of bottom area to flash (Bug#16044).
Martin Rudalics [Wed, 4 Dec 2013 14:11:33 +0000 (15:11 +0100)]
In XTflash fix coordinate of bottom area to flash (Bug#16044).

* xterm.c (XTflash): Fix coordinate of bottom area to flash
(Bug#16044).

10 years ago* net/dbus.el (dbus-byte-array-to-string): Accept also byte arrays
Michael Albinus [Wed, 4 Dec 2013 14:10:09 +0000 (15:10 +0100)]
* net/dbus.el (dbus-byte-array-to-string): Accept also byte arrays
in D-Bus type syntax.
(dbus-unescape-from-identifier): Use `byte-to-string' in order to
preserve unibyte strings.  (Bug#16048)

10 years ago* font.h (struct font_bitmap): Remove unused 'extra' member.
Dmitry Antipov [Wed, 4 Dec 2013 13:35:41 +0000 (17:35 +0400)]
* font.h (struct font_bitmap): Remove unused 'extra' member.
* ftfont.c (ftfont_get_bitmap): Adjust users.

10 years ago* font.c (font_list_entities): Remove dummy assignment.
Dmitry Antipov [Wed, 4 Dec 2013 13:08:30 +0000 (17:08 +0400)]
* font.c (font_list_entities): Remove dummy assignment.
* font.h (struct font) [HAVE_WINDOW_SYSTEM]: Group members which are
used on graphic displays only.  Remove unused 'font_encoder' member.
* nsfont.m (nsfont_open):
* w32font.c (w32font_open_internal): Adjust users.

10 years agoFix eldoc-in-minibuffer's modeline update.
Stefan Monnier [Wed, 4 Dec 2013 04:42:01 +0000 (23:42 -0500)]
Fix eldoc-in-minibuffer's modeline update.
* lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message):
Call force-mode-line-update is the proper buffer.

Fixes: debbugs:16042

10 years agoRemember log-edit comment when the buffer is killed
Dmitry Gutov [Wed, 4 Dec 2013 00:37:33 +0000 (02:37 +0200)]
Remember log-edit comment when the buffer is killed

* lisp/vc/log-edit.el (log-edit-add-new-comment): Rename to
`log-edit-remember-comment', make argument optional.  Adjust all
callers.
(log-edit-mode): Add `log-edit-remember-comment' to
`kill-buffer-hook' locally.
(log-edit-kill-buffer): Don't remember comment explicitly since
the buffer is killed anyway.

10 years ago* lisp/isearch.el (isearch-mode, isearch-done): Don't set arg LOCAL
Juri Linkov [Wed, 4 Dec 2013 00:12:02 +0000 (02:12 +0200)]
* lisp/isearch.el (isearch-mode, isearch-done): Don't set arg LOCAL
in add-hook and remove-hook for multi-buffer search.

* doc/lispref/searching.texi (Search and Replace): Fix `unread-command-events'
and add ref.

Fixes: debbugs:16035

10 years agoUse bool for boolean.
Paul Eggert [Tue, 3 Dec 2013 22:36:49 +0000 (14:36 -0800)]
Use bool for boolean.

* tparam.c (tparam1):
* undo.c (record_point, record_property_change):
Use bool for boolean, for local vars that are always true or false.

10 years agoMinor integer overflow fixes.
Paul Eggert [Tue, 3 Dec 2013 21:37:41 +0000 (13:37 -0800)]
Minor integer overflow fixes.

* window.c (Fset_window_new_pixel): Don't let new_pixel go negative.
This improves on the previous fix to this function.
(window_resize_check): When summing up pixel counts, don't rely on
undefined behavior if the sum overflows.

Fixes: debbugs:16033

10 years agoRemove stale comment about drag-n-drop failures.
Eli Zaretskii [Tue, 3 Dec 2013 18:57:39 +0000 (20:57 +0200)]
Remove stale comment about drag-n-drop failures.

10 years agoAdd to last fix: In gtk resizing count tool and menubars.
Martin Rudalics [Tue, 3 Dec 2013 18:08:14 +0000 (19:08 +0100)]
Add to last fix: In gtk resizing count tool and menubars.

10 years agoAgain fix last fix.
Martin Rudalics [Tue, 3 Dec 2013 17:22:05 +0000 (18:22 +0100)]
Again fix last fix.

10 years agoConverted image.c and gnutls.c functions that accept file names.
Eli Zaretskii [Tue, 3 Dec 2013 15:29:48 +0000 (17:29 +0200)]
Converted image.c and gnutls.c functions that accept file names.

10 years agoFixed drag-n-drop with Unicode file names.
Eli Zaretskii [Tue, 3 Dec 2013 12:21:13 +0000 (14:21 +0200)]
Fixed drag-n-drop with Unicode file names.

10 years agoFix last fix (Bug#16036)
Martin Rudalics [Tue, 3 Dec 2013 11:33:13 +0000 (12:33 +0100)]
Fix last fix (Bug#16036)

10 years agoDrag-n-drop converted, but works only within current codepage.
Eli Zaretskii [Tue, 3 Dec 2013 09:41:27 +0000 (11:41 +0200)]
Drag-n-drop converted, but works only within current codepage.

10 years ago* notifications.el (notifications-close-notification): Call the
Tom Regner [Tue, 3 Dec 2013 08:24:39 +0000 (09:24 +0100)]
* notifications.el (notifications-close-notification): Call the
D-Bus method with `id' being an `:uint32'.  (Bug#16030)

10 years agoFix issues related to pixelwise resizing. (Bug#16013) (Bug#16033)
Martin Rudalics [Tue, 3 Dec 2013 07:45:54 +0000 (08:45 +0100)]
Fix issues related to pixelwise resizing.  (Bug#16013) (Bug#16033)

* window.c (Fset_window_new_pixel): Don't choke at negative
argument value (Bug#16033).

* xfns.c (Fx_create_frame): Add another call to change_frame_size
to avoid crash in window_box_height.

* gtkutil.h: Fix external declaration of xg_frame_set_char_size.
* gtkutil.c (xg_frame_set_char_size, style_changed_cb): Fix size
calculation.
* xterm.c (x_set_window_size): Fix size calculation (Bug#16013).

10 years agolisp/net/eww.el (eww-render): Don't pass arg to eww-display-image
Katsumi Yamaoka [Tue, 3 Dec 2013 04:54:17 +0000 (04:54 +0000)]
lisp/net/eww.el (eww-render): Don't pass arg to eww-display-image

10 years agoMinor integer overflow fixes.
Paul Eggert [Tue, 3 Dec 2013 02:27:10 +0000 (18:27 -0800)]
Minor integer overflow fixes.

* window.c (Fset_window_new_pixel, grow_mini_window):
* xdisp.c (Fwindow_text_pixel_size):
Avoid undefined behavior on signed integer overflow.
* xfns.c (x_set_mouse_color):
Check that drag shape fits in 'unsigned', since that's what X wants.

10 years ago* lisp/window.el (display-buffer-no-window): New action function.
Juri Linkov [Tue, 3 Dec 2013 01:19:24 +0000 (03:19 +0200)]
* lisp/window.el (display-buffer-no-window): New action function.
(display-buffer-alist, display-buffer): Doc fix.  (Bug#13594)

* lisp/simple.el (shell-command): Add window alist entry `allow-no-window'
to `display-buffer'.
(async-shell-command): Doc fix.

* lisp/progmodes/compile.el (compilation-start): Rename window alist
entry `no-display-ok' to `allow-no-window'.

* doc/lispref/windows.texi (Choosing Window): Rename `no-display-ok' to
`allow-no-window'.

10 years agolisp/gnus/ChangeLog: Fix last commit
Katsumi Yamaoka [Tue, 3 Dec 2013 01:17:02 +0000 (01:17 +0000)]
lisp/gnus/ChangeLog: Fix last commit

10 years agolisp/gnus/message.el (message-send-mail-with-sendmail): Don't kill error buffer if...
Vitalie Spinu [Tue, 3 Dec 2013 01:06:12 +0000 (01:06 +0000)]
lisp/gnus/message.el (message-send-mail-with-sendmail): Don't kill error buffer if sending fails

10 years agoSupport the new log-edit behavior in vc-git-log-edit-toggle-amend
Dmitry Gutov [Mon, 2 Dec 2013 22:13:51 +0000 (00:13 +0200)]
Support the new log-edit behavior in vc-git-log-edit-toggle-amend

* lisp/vc/log-edit.el (log-edit-set-header): Extract from
`log-edit-toggle-header'.
(log-edit-extract-headers): Separate the summary, when extracted
from header, from the rest of the message with an empty line.

* lisp/vc/vc-git.el (vc-git-log-edit-toggle-amend): Move the summary
line, if present, to the Summary header.

10 years agosrc/composite.c (composition_reseat_it): Fix a typo in a comment.
Eli Zaretskii [Mon, 2 Dec 2013 20:56:52 +0000 (22:56 +0200)]
src/composite.c (composition_reseat_it): Fix a typo in a comment.

10 years ago* lisp/epa-file.el (epa-file-insert-file-contents): Ensure we insert text
Stefan Monnier [Mon, 2 Dec 2013 19:05:47 +0000 (14:05 -0500)]
* lisp/epa-file.el (epa-file-insert-file-contents): Ensure we insert text
in current-buffer.

Fixes: debbugs:16029

10 years ago* emacs-lisp-intro.texi (Counting Words): Don't use ':' in xref
Paul Eggert [Mon, 2 Dec 2013 17:55:40 +0000 (09:55 -0800)]
* emacs-lisp-intro.texi (Counting Words): Don't use ':' in xref

titles, as this isn't supported by Texinfo.

10 years agoImprove reporting of fatal exception on MS-Windows, to aid debugging #15994.
Eli Zaretskii [Mon, 2 Dec 2013 17:28:17 +0000 (19:28 +0200)]
Improve reporting of fatal exception on MS-Windows, to aid debugging #15994.

 src/w32fns.c (my_exception_handler): New function.
 (globals_of_w32fns): Set it up as the unhandled exception
 handler.  Initialize exception code and address to zeros.
 (emacs_abort): If the exception code and address are available,
 print them at the beginning of the backtrace.  Fix the format of
 printing addresses (was producing 0x0x12345678 on XP).

10 years ago* lisp/emacs-lisp/debug.el (debugger-toggle-locals): New command.
Helmut Eller [Mon, 2 Dec 2013 14:45:22 +0000 (09:45 -0500)]
* lisp/emacs-lisp/debug.el (debugger-toggle-locals): New command.
(debugger-mode-map): Bind it.
(debugger--backtrace-base): New function.
(debugger-eval-expression): Use it.
(debugger-frame-number): Skip local vars when present.
(debugger--locals-visible-p, debugger--insert-locals)
(debugger--show-locals, debugger--hide-locals): New functions.
* src/eval.c (Fbacktrace__locals): New function.
(syms_of_eval): Defsubr it.

10 years ago* net/tramp-sh.el (tramp-remote-process-environment): Do not set "LC_ALL".
Michael Albinus [Mon, 2 Dec 2013 13:52:23 +0000 (14:52 +0100)]
* net/tramp-sh.el (tramp-remote-process-environment): Do not set "LC_ALL".
(tramp-get-remote-locale): New defun.
(tramp-open-connection-setup-interactive-shell): Use it.

10 years ago* font.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT):
Dmitry Antipov [Mon, 2 Dec 2013 13:35:53 +0000 (17:35 +0400)]
* font.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT):
Define here to unify between...
* nsterm.h, w32term.h, xterm.h: ...port-specific headers.
* w32term.h (CHECK_W32_FRAME): Remove unused macro.

10 years ago* subr.el (process-live-p): Return nil for non-process.
Leo Liu [Mon, 2 Dec 2013 07:13:01 +0000 (15:13 +0800)]
* subr.el (process-live-p): Return nil for non-process.

* progmodes/sh-script.el (sh-shell-process):
* progmodes/octave.el (inferior-octave-process-live-p):
* progmodes/gdb-mi.el (gdb-delchar-or-quit)
(gdb-inferior-io-sentinel):
* emacs-lock.el (emacs-lock-live-process-p): All uses changed.

Fixes: debbugs:16023

10 years agoFix minor log-edit-show-files annoyances
Dmitry Gutov [Mon, 2 Dec 2013 03:03:40 +0000 (05:03 +0200)]
Fix minor log-edit-show-files annoyances
* lisp/vc/log-edit.el (log-edit-kill-buffer): Move the use of
`save-selected-window' to `log-edit-hide-buf'.  This makes
`log-edit-show-files' idempotent.
(log-edit-show-files): Mark the new window as dedicated.

10 years agoInstall the actual changes missing in previous revision
Dmitry Gutov [Mon, 2 Dec 2013 02:26:07 +0000 (04:26 +0200)]
Install the actual changes missing in previous revision
* lisp/vc/log-edit.el (log-edit-mode-map): Add binding for
`log-edit-kill-biffer'.
(log-edit-hide-buf): Add a FIXME comment.
(log-edit-add-new-comment): New function, extracted from
`log-edit-done'.
(log-edit-done, log-edit-add-to-changelog): Use it.
(log-edit-kill-buffer): New command.

10 years agoImplement log-edit-kill-buffer
Dmitry Gutov [Mon, 2 Dec 2013 02:24:31 +0000 (04:24 +0200)]
Implement log-edit-kill-buffer
* vc/log-edit.el (log-edit-mode-map): Add binding for
`log-edit-kill-biffer'.
(log-edit-hide-buf): Add a FIXME comment.
(log-edit-add-new-comment): New function, extracted from
`log-edit-done'.
(log-edit-done, log-edit-add-to-changelog): Use it.
(log-edit-kill-buffer): New command.

10 years agoRemove fringe background extension code on X11.
YAMAMOTO Mitsuharu [Mon, 2 Dec 2013 01:05:57 +0000 (10:05 +0900)]
Remove fringe background extension code on X11.

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

* xterm.c (x_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 agoSpelling and punctuation fixes.
Paul Eggert [Sun, 1 Dec 2013 22:33:13 +0000 (14:33 -0800)]
Spelling and punctuation fixes.

10 years agoFix minor problems found by static checking.
Paul Eggert [Sun, 1 Dec 2013 17:09:18 +0000 (09:09 -0800)]
Fix minor problems found by static checking.

* dispextern.h, xdisp.c (x_draw_bottom_divider): Now static.
* frame.c (set_frame_param) [!HAVE_NTGUI]: Remove.
* xdisp.c (Ftool_bar_height) [USE_GTK || HAVE_NS]: Now const function.

10 years agoeww: Have `q' do a normal `quit-window' instead of killing the buffer.
Lars Magne Ingebrigtsen [Sun, 1 Dec 2013 17:00:04 +0000 (18:00 +0100)]
eww: Have `q' do a normal `quit-window' instead of killing the buffer.

10 years ago* lisp/simple.el (newline): Mention `electric-indent-mode'.
Stefan Monnier [Sun, 1 Dec 2013 15:59:17 +0000 (10:59 -0500)]
* lisp/simple.el (newline): Mention `electric-indent-mode'.

Fixes: debbugs:16015

10 years agoAllow customizing the checkboxes in eww
Rüdiger Sonderfeld [Sun, 1 Dec 2013 15:52:04 +0000 (16:52 +0100)]
Allow customizing the checkboxes in eww
* net/shr.el (shr-tag-table): Fix comment typo.

* net/eww.el (eww-text-input-types): : New const.
(eww-process-text-input): Treat input types in
`eww-text-input-types' as text.

* net/shr.el (shr-tag-video): Display content for video if no
poster is available.
(shr-tag-audio): Add support for <audio> tag.

* net/eww.el (eww-use-external-browser-for-content-type): New
variable.
(eww-render): Handle `eww-use-external-browser-for-content-type'.
Use \\` to match beginning of string instead of ^.
(eww-browse-with-external-browser): Provide optional URL parameter.
(eww-render): Set `eww-current-title' back to "".

* net/shr.el (shr-prefer-media-type-alist): : New customizable
variable.
(shr--get-media-pref): New function.
(shr--extract-best-source): New function.
(shr-tag-video, shr-tag-audio):  Use `shr--extract-best-source' when
no :src tag was specified.

* net/eww.el (eww-form-checkbox-selected-symbol): New
customizable variable.
(eww-form-checkbox-symbol): New customizable variable.
(eww-form-checkbox): Use `eww-form-checkbox-selected-symbol' and
`eww-form-checkbox-symbol'.
(eww-toggle-checkbox): Use `eww-form-checkbox-selected-symbol' and
`eww-form-checkbox-symbol'.

10 years agoAllow preferring some media types over others
Rüdiger Sonderfeld [Sun, 1 Dec 2013 15:49:18 +0000 (16:49 +0100)]
Allow preferring some media types over others
* net/shr.el (shr-prefer-media-type-alist): : New customizable
variable.
(shr--get-media-pref): New function.
(shr--extract-best-source): New function.
(shr-tag-video, shr-tag-audio):  Use `shr--extract-best-source' when
no :src tag was specified.

10 years ago(eww-render): Set `eww-current-title' back to "".
Rüdiger Sonderfeld [Sun, 1 Dec 2013 15:47:37 +0000 (16:47 +0100)]
(eww-render): Set `eww-current-title' back to "".

10 years agoFix typo after manual merge in last checkin.
Lars Magne Ingebrigtsen [Sun, 1 Dec 2013 15:45:49 +0000 (16:45 +0100)]
Fix typo after manual merge in last checkin.

10 years agoOption to always use external-browser for certain content.
Rüdiger Sonderfeld [Sun, 1 Dec 2013 15:44:25 +0000 (16:44 +0100)]
Option to always use external-browser for certain content.
* net/eww.el (eww-use-external-browser-for-content-type): New
variable.
(eww-render): Handle `eww-use-external-browser-for-content-type'.
Use \\` to match beginning of string instead of ^.
(eww-browse-with-external-browser): Provide optional URL parameter.

10 years ago(shr-tag-audio): Add support for <audio> tag.
Rüdiger Sonderfeld [Sun, 1 Dec 2013 15:41:10 +0000 (16:41 +0100)]
(shr-tag-audio): Add support for <audio> tag.

10 years agoDisplay content for video if no poster is available.
Rüdiger Sonderfeld [Sun, 1 Dec 2013 15:40:12 +0000 (16:40 +0100)]
Display content for video if no poster is available.
* net/shr.el (shr-tag-video): Display content for video if no
poster is available.

10 years agoTreat HTML5 input types as text
Rüdiger Sonderfeld [Sun, 1 Dec 2013 15:38:43 +0000 (16:38 +0100)]
Treat HTML5 input types as text
* net/eww.el (eww-text-input-types): : New const.
(eww-process-text-input): Treat input types in
`eww-text-input-types' as text.

10 years agoFix comment typo
Rüdiger Sonderfeld [Sun, 1 Dec 2013 15:35:59 +0000 (16:35 +0100)]
Fix comment typo
* net/shr.el (shr-tag-table): Fix comment typo.

10 years agoCompilation warning fix
Lars Magne Ingebrigtsen [Sun, 1 Dec 2013 14:45:02 +0000 (15:45 +0100)]
Compilation warning fix
Move eww-link-keymap definition to before usage

Fixes: debbugs:15243

10 years agoFix duckduckgo imagemagick crash
Lars Magne Ingebrigtsen [Sun, 1 Dec 2013 14:34:05 +0000 (15:34 +0100)]
Fix duckduckgo imagemagick crash
* image.c (imagemagick_compute_animated_image): Don't crash if we
have an animation with different-sized images.

Fixes: debbugs:15313

10 years agoSpecial mode buffers shouldn't query before exiting.
Lars Magne Ingebrigtsen [Sun, 1 Dec 2013 14:22:03 +0000 (15:22 +0100)]
Special mode buffers shouldn't query before exiting.
(eww-quit): Special mode buffers shouldn't query before exiting.

10 years agoDon't reload eww pages when browsing to different #targets
Lars Magne Ingebrigtsen [Sun, 1 Dec 2013 14:12:44 +0000 (15:12 +0100)]
Don't reload eww pages when browsing to different #targets
* net/eww.el (eww-follow-link): New command to avoid reloading
pages when we follow #target links.

Fixes: debbugs:15243

10 years agoFix Changelog typos.
Juanma Barranquero [Sun, 1 Dec 2013 13:40:19 +0000 (14:40 +0100)]
Fix Changelog typos.

10 years agoSupport <optgroup> tags in <select> forms.
Kenjiro NAKAYAMA [Sun, 1 Dec 2013 13:21:53 +0000 (14:21 +0100)]
Support <optgroup> tags in <select> forms.
* net/eww.el (eww-tag-select): Support <optgroup> tags in <select>
forms.

Test case:

<html>
<head><title>SELECT TEST</title></head>
<body>

<form method="POST" action="./dummy.php">
<input type="text" name="text1">
<input type="submit" name="btn1" value="val1">

<select>
<optgroup label="group 1">
<option value="a">Value A</option>
<option value="b">Value B</option>
</optgroup>
<optgroup label="group 2">
<option value="c">Value C</option>
<option value="d">Value D</option>
</optgroup>
</select>

</form>
</body>
</html>

Fixes: debbugs:15860

10 years ago(eww-current-dom): New variable used to save the current DOM.
Lars Magne Ingebrigtsen [Sun, 1 Dec 2013 13:11:36 +0000 (14:11 +0100)]
(eww-current-dom): New variable used to save the current DOM.

Rewritten from a short patch by T.V. Raman.

10 years agoUpdate the window title after moving in the history
Lars Magne Ingebrigtsen [Sun, 1 Dec 2013 13:05:26 +0000 (14:05 +0100)]
Update the window title after moving in the history
* net/eww.el (eww-restore-history): Update the window title after
moving in the history.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 1 Dec 2013 11:22:43 +0000 (06:22 -0500)]
Auto-commit of loaddefs files.

10 years agoApply the initial log-edit tweaks discussed at emacs-devel
Dmitry Gutov [Sun, 1 Dec 2013 04:13:50 +0000 (06:13 +0200)]
Apply the initial log-edit tweaks discussed at emacs-devel
* .dir-locals.el: (log-edit-move): Add the "Author: " header.

* lisp/vc/log-edit.el (log-edit-mode-map): Add binding for
`log-edit-beginning-of-line'.
(log-edit-setup-add-author): New user option.
(log-edit-beginning-of-line): New command.
(log-edit): Move major mode call above the contents setup so that
the local variable values are already applied.
(log-edit): Only insert "Author: " when
`log-edit-setup-add-author' is non-nil.
(log-edit): When SETUP is non-nil, position point after ": "
instead of point-min.