1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00
Commit Graph

114072 Commits

Author SHA1 Message Date
Martin Rudalics
456760a5b4 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).
2013-12-04 15:22:50 +01:00
Martin Rudalics
2db4a1b634 In XTflash fix coordinate of bottom area to flash (Bug#16044).
* xterm.c (XTflash): Fix coordinate of bottom area to flash
(Bug#16044).
2013-12-04 15:11:33 +01:00
Michael Albinus
81961e4cea * 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)
2013-12-04 15:10:09 +01:00
Dmitry Antipov
a84c99500e * font.h (struct font_bitmap): Remove unused 'extra' member.
* ftfont.c (ftfont_get_bitmap): Adjust users.
2013-12-04 17:35:41 +04:00
Dmitry Antipov
a378aa9de7 * 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.
2013-12-04 17:08:30 +04:00
Stefan Monnier
8497f93806 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
2013-12-03 23:42:01 -05:00
Dmitry Gutov
dda6191643 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.
2013-12-04 02:37:33 +02:00
Juri Linkov
c085e5b909 * 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
2013-12-04 02:12:02 +02:00
Paul Eggert
5df474aaa9 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.
2013-12-03 14:36:49 -08:00
Paul Eggert
2654ac09cc 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
2013-12-03 13:37:41 -08:00
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
Martin Rudalics
4525072b21 Fix last fix (Bug#16036) 2013-12-03 12:33:13 +01: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