Commit graph

114288 commits

Author SHA1 Message Date
Martin Rudalics
0b254a38fa Add to last fix: In gtk resizing count tool and menubars. 2013-12-03 19:08:14 +01:00
Martin Rudalics
bab5c317ae Again fix last fix. 2013-12-03 18:22:05 +01:00
Eli Zaretskii
9ab6956872 Converted image.c and gnutls.c functions that accept file names. 2013-12-03 17:29:48 +02:00
Eli Zaretskii
d45c908859 Fixed drag-n-drop with Unicode file names. 2013-12-03 14:21:13 +02:00
Martin Rudalics
4525072b21 Fix last fix (Bug#16036) 2013-12-03 12:33:13 +01:00
Eli Zaretskii
051546df1a Drag-n-drop converted, but works only within current codepage. 2013-12-03 11:41:27 +02:00
Tom Regner
d6f2380eee * notifications.el (notifications-close-notification): Call the
D-Bus method with `id' being an `:uint32'.  (Bug#16030)
2013-12-03 09:24:39 +01:00
Martin Rudalics
7303a0aefc 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).
2013-12-03 08:45:54 +01:00
Katsumi Yamaoka
39fa32d635 lisp/net/eww.el (eww-render): Don't pass arg to eww-display-image 2013-12-03 04:54:17 +00:00
Paul Eggert
25636e1362 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.
2013-12-02 18:27:10 -08:00
Juri Linkov
9139632a34 * 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'.
2013-12-03 03:19:24 +02:00
Katsumi Yamaoka
370f765594 lisp/gnus/ChangeLog: Fix last commit 2013-12-03 01:17:02 +00:00
Vitalie Spinu
0c189568e0 lisp/gnus/message.el (message-send-mail-with-sendmail): Don't kill error buffer if sending fails 2013-12-03 01:06:12 +00:00
Dmitry Gutov
0f457a371c 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.
2013-12-03 00:13:51 +02:00
Eli Zaretskii
2595af33fc src/composite.c (composition_reseat_it): Fix a typo in a comment. 2013-12-02 22:56:52 +02:00
Stefan Monnier
0962f37640 * lisp/epa-file.el (epa-file-insert-file-contents): Ensure we insert text
in current-buffer.

Fixes: debbugs:16029
2013-12-02 14:05:47 -05:00
Paul Eggert
29bacfa958 * emacs-lisp-intro.texi (Counting Words): Don't use ':' in xref
titles, as this isn't supported by Texinfo.
2013-12-02 09:55:40 -08:00
Eli Zaretskii
21bf394d7d 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).
2013-12-02 19:28:17 +02:00
Helmut Eller
f345395c71 * 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.
2013-12-02 09:45:22 -05:00
Michael Albinus
a8a15d9d45 * 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.
2013-12-02 14:52:23 +01:00
Dmitry Antipov
dacc9715a7 * 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.
2013-12-02 17:35:53 +04:00
Leo Liu
0518b057fe * 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
2013-12-02 15:13:01 +08:00
Dmitry Gutov
3adc9c6dca 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.
2013-12-02 05:03:40 +02:00
Dmitry Gutov
d9dfe8ca07 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.
2013-12-02 04:26:07 +02:00
Dmitry Gutov
47e8b74eb4 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.
2013-12-02 04:24:31 +02:00
YAMAMOTO Mitsuharu
e0e0af3bd5 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.
2013-12-02 10:05:57 +09:00
Paul Eggert
f224e50022 Spelling and punctuation fixes. 2013-12-01 14:33:13 -08:00
Paul Eggert
75b09539a4 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.
2013-12-01 09:09:18 -08:00
Lars Magne Ingebrigtsen
1f6e1bb000 eww: Have q' do a normal quit-window' instead of killing the buffer. 2013-12-01 18:00:04 +01:00
Stefan Monnier
fb651d155a * lisp/simple.el (newline): Mention `electric-indent-mode'.
Fixes: debbugs:16015
2013-12-01 10:59:17 -05:00
Rüdiger Sonderfeld
4570dd1614 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'.
2013-12-01 16:52:04 +01:00
Rüdiger Sonderfeld
ad9a773c50 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.
2013-12-01 16:49:18 +01:00
Rüdiger Sonderfeld
450c7b358c (eww-render): Set `eww-current-title' back to "". 2013-12-01 16:47:37 +01:00
Lars Magne Ingebrigtsen
eff0a2bda9 Fix typo after manual merge in last checkin. 2013-12-01 16:45:49 +01:00
Rüdiger Sonderfeld
b2afb3ea3e 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.
2013-12-01 16:44:25 +01:00
Rüdiger Sonderfeld
eb2dd24d5b (shr-tag-audio): Add support for <audio> tag. 2013-12-01 16:41:10 +01:00
Rüdiger Sonderfeld
177948a5b2 Display content for video if no poster is available.
* net/shr.el (shr-tag-video): Display content for video if no
poster is available.
2013-12-01 16:40:12 +01:00
Rüdiger Sonderfeld
10240949ca 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.
2013-12-01 16:38:43 +01:00
Rüdiger Sonderfeld
8feacce0ea Fix comment typo
* net/shr.el (shr-tag-table): Fix comment typo.
2013-12-01 16:35:59 +01:00
Lars Magne Ingebrigtsen
1af6643718 Compilation warning fix
Move eww-link-keymap definition to before usage

Fixes: debbugs:15243
2013-12-01 15:45:02 +01:00
Lars Magne Ingebrigtsen
5f9aee6fdd 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
2013-12-01 15:34:05 +01:00
Lars Magne Ingebrigtsen
de8a5633bd Special mode buffers shouldn't query before exiting.
(eww-quit): Special mode buffers shouldn't query before exiting.
2013-12-01 15:22:03 +01:00
Lars Magne Ingebrigtsen
513562a1df 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
2013-12-01 15:12:44 +01:00
Juanma Barranquero
0449d6cdab Fix Changelog typos. 2013-12-01 14:40:19 +01:00
Kenjiro NAKAYAMA
9dd99753de 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
2013-12-01 14:21:53 +01:00
Lars Magne Ingebrigtsen
ab6dea82bf (eww-current-dom): New variable used to save the current DOM.
Rewritten from a short patch by T.V. Raman.
2013-12-01 14:11:36 +01:00
Lars Magne Ingebrigtsen
3e9876dedc Update the window title after moving in the history
* net/eww.el (eww-restore-history): Update the window title after
moving in the history.
2013-12-01 14:05:26 +01:00
Glenn Morris
5afca621fb Auto-commit of loaddefs files. 2013-12-01 06:22:43 -05:00
Dmitry Gutov
52789f7fb3 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.
2013-12-01 06:13:50 +02:00
Glenn Morris
2e6710c396 * lisp/startup.el (command-line): Warn if ~/emacs.d is in load-path. 2013-11-30 18:04:46 -08:00