1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 01:20:37 -08:00
Commit graph

116294 commits

Author SHA1 Message Date
Glenn Morris
e694e2a9b0 package-test tweaks for hydra
* test/automated/package-test.el (with-package-test, package-test-signed):
Also set HOME to a temp value, in case the real one is absent (e.g.
hydra) or read-only. 
(package-test-signed): Use skip-unless rather than expected-result.

Fixes: debbugs:18575
2014-10-01 19:24:28 -04:00
Jan Djärv
335e9627ca * xfaces.c (Finternal_set_lisp_face_attribute): Added FIXME comment. 2014-10-01 20:10:21 +02:00
Jan Djärv
e2e773b9e6 * xfaces.c (Finternal_set_lisp_face_attribute): Don't try to
make a font_object from a tty frame.

Fixes: debbugs:18573
2014-10-01 19:41:18 +02:00
Glenn Morris
24e1e65553 Auto-commit of loaddefs files. 2014-10-01 07:17:49 -04:00
Daiki Ueno
c8145320b2 mml: Signal error on invalid <#secure> tag
* mml.el (mml-parse-1): Error out if unknown mode is specified in
<#secure> tag (bug#18513).
2014-10-01 11:25:15 +09:00
Stefan Monnier
85ee81a08f * lisp/progmodes/python.el (python-shell-completion-get-completions):
Use python-shell--prompt-calculated-input-regexp from the
process buffer.
Don't assume that `line' comes from the process buffer.

Fixes: debbugs:18582
2014-09-30 20:41:51 -04:00
Leonardo Nobrega
d3b7a90bc2 * lisp/progmodes/python.el (python-fill-paren): Don't inf-loop at EOB.
Fixes: debbugs:18462
2014-09-30 19:00:57 -04:00
Eli Zaretskii
572fe798cd Fix creation of frames on MS-Windows: don't cons Lisp objects in input thread.
src/w32fns.c (w32_createwindow): Accept an additional argument, an
 array of 2 values specifying the coordinates of the frame's
 top-left corner.  Use these values instead of calling x_get_arg,
 which can cons Lisp objects, and therefore cannot be called except
 from the main thread.  Remove redundant tests for the default
 values.
 (my_create_window): Move the calculation of the coordinates of the
 frame's top-left edge here.  Pass them to the input thread via the
 second parameter of the WM_EMACS_CREATEWINDOW message.  See
 http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00892.html
 for the details.
2014-09-30 16:53:24 +03:00
Paul Eggert
42d4302f24 Spelling fix. 2014-09-29 22:02:13 -07:00
Bill Wohler
e80e3bdb75 Release MH-E version 8.6.
* NEWS, MH-E-NEWS: Update for MH-E release 8.6.

* mh-e.el (Version, mh-version): Update for release 8.6.

* mh-comp.el (mh-insert-x-face): Ensure that mh-x-face-file is a
string before trying to use it (closes SF #474).
(mh-bare-components): New function to create a temporary initial
components file; replaces mh-find-components. Improve the temp folder
and file names as per a suggestion from Bill Wohler. Also address
XEmacs compatibility issues: use mm-make-temp-file instead of
make-temp-file, and only pass one argument to delete-directory.
(mh-edit-again, mh-send-sub): Use mh-bare-components instead of
mh-find-components (partially closes SF #468).
2014-09-29 21:52:10 -07:00
Eli Zaretskii
5bb6d037f0 Fix bug #18545 with lack of scrolling a window when point goes out of view.
src/xdisp.c (cursor_row_fully_visible_p): Update commentary.
 (redisplay_window): Treat the frame's frozen_window_starts flag
 the same way as the optional_new_start flag for the window: only
 obey it if the glyph row showing point will be fully visible.
 Likewise when the window start is in a continuation line.  If,
 after trying everything under the 'force_start' label, point is
 still not fully visible, give up and scroll the window.  Add
 debugging traces.
 src/window.c (Frecenter): Set the window's redisplay flag.
2014-09-29 22:10:28 +03:00
Fabrice Niessen
95e509140e Check in accumulated leuven-theme updates before it's too late
* themes/leuven-theme.el: Updates.
2014-09-29 16:30:16 +04:00
Stefan Monnier
a5426ef3c2 * lisp/emacs-lisp/package.el (package-check-signature): Default to nil if
GPG is not available.
(package-refresh-contents): Don't mess with the keyring if we won't
check the signatures anyway.
2014-09-27 12:25:53 -04:00
Eli Zaretskii
af71540b12 etc/charsets/README: Delete a stray quote character. 2014-09-27 12:36:08 +03:00
Stefan Monnier
38353b99f3 * lisp/erc/erc-track.el (erc-modified-channels-display): Update all mode lines
if needed.  Remove call to erc-modified-channels-object
where we ignored the return value.
(erc-modified-channels-update): Don't force-mode-line-update here any more.

Fixes: debbugs:18510
2014-09-24 13:31:59 -04:00
Stefan Monnier
5217cd83c0 * etc/package-keyring.gpg: New file. 2014-09-24 10:28:27 -04:00
Eli Zaretskii
a45a7f5d1a Fix bug #18528 with crashes at startup during frameset restoration.
src/w32term.c (w32_read_socket): Don't use frame dimensions for
 resizing if GetClientRect returned an empty (0, 0, 0, 0)
 rectangle.  Check the return value of GetClientRect, and don't use
 the results if it didn't succeed.
 src/dispnew.c (change_frame_size_1): Recompute the frame dimensions
 in columns and lines after correcting the pixel dimensions in
 check_frame_size.
 (adjust_decode_mode_spec_buffer): Add assertion to avoid passing
 negative values to xrealloc.
2014-09-24 10:31:11 +03:00
Dmitry Antipov
fc5ebc3f49 On OSX, do not free font-specific data more than once (Bug#18501).
* macfont.m (macfont_close): Release and free font-specific data
only if it wasn't previously freed.
2014-09-22 09:34:05 +04:00
David Caldwell
63126683db * configure.ac: Increase headerpad_extra to 1000, update the comment
about load commands.

* src/unexmacosx.c (dump_it): Improve error message.

Fixes: debbugs:18505
2014-09-21 22:35:22 +02:00
Dmitry Gutov
b761843bb0 Add the missing last name to ChangeLog 2014-09-19 06:29:25 +04:00
Dmitry Gutov
35ee96fdcb Clarify url-http and url-retrieve-internal docstrings
* lisp/url/url-http.el (url-http): Same. 

* lisp/url/url.el (url-retrieve-internal): Clarify the docstring.

Fixes: debbugs:18116
2014-09-19 05:55:43 +04:00
Juri Linkov
3a449b759c * src/image.c (imagemagick_load_image): Add delay to imagemagick metadata.
(Bug#10747, bug#18334)
2014-09-18 23:59:55 +03:00
David Engster
46b189d794 Do not call egrep to determine emacs version in EDE.
* ede/emacs.el (ede-emacs-version): Do not call 'egrep' to
determine Emacs version (it was dead code anyway).  Make sure that
configure.ac or configure.in exist.  (Bug#18476)
2014-09-18 22:37:19 +02:00
Eli Zaretskii
41932b21a2 Clarify the doc strings of mouse-position and set-mouse-position.
src/frame.c (Fmouse_position, Fset_mouse_position): Clarify the
 units in which the position is measured.  (Bug#18493)
2014-09-18 20:20:57 +03:00
Eli Zaretskii
a810675374 Fix bug #18490 with redisplay of other windows showing a narrowed buffer.
src/xdisp.c (redisplay_internal): Force redisplay of all windows
 that show a buffer whose narrowing has changed.
2014-09-18 18:10:33 +03:00
Kan-Ru Chen
df2ead390d Fix `fit-window-to-buffer' (Bug#18498).
* window.el (fit-window-to-buffer): When counting buffer width,
count the whole visible buffer.  Correctly convert the body-height
to pixel size for window-text-pixel-size (Bug#18498).
2014-09-18 14:06:17 +02:00
Eli Zaretskii
534f1f7cb6 Fix display of hollow-box and hbar cursors on r2L lines.
src/xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor):
 src/w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor): In R2L
 lines, draw the hollow-box and hbar cursors on the right side of
 cursor-glyph.  Thanks to Martin Rudalics <rudalics@gmx.at> for
 testing on X.
2014-09-16 18:53:36 +03:00
Eli Zaretskii
c20b4c2de5 Fix block cursor display in R2L lines.
src/xterm.c (x_draw_stretch_glyph_string):
 src/w32term.c (x_draw_stretch_glyph_string): Fix a thinko that
 caused the block cursor to disappear on a TAB in R2L lines in
 every window except the leftmost one.  Reported by Martin Rudalics
 <rudalics@gmx.at>.
2014-09-16 18:44:51 +03:00
Dmitry Antipov
005aff7092 Prefer ptrdiff_t to int and avoid integer overflows.
* fileio.c (make_temp_name):
* font.c (font_parse_family_registry): Avoid integer
overflow on string size calculation.
* data.c (Faset): Likewise for byte index.
2014-09-16 08:07:51 +04:00
Dmitry Antipov
ccb767d639 Always use matched specpdl entry to record call arguments (Bug#18473).
* lisp.h (record_in_backtrace): Adjust prototype.
* eval.c (record_in_backtrace): Return current specpdl level.
(set_backtrace_args, set_backtrace_nargs): Merge.  Adjust all users.
(eval_sub, Ffuncall): Record call arguments in matched specpdl
entry and use that entry in call to backtrace_debug_on_exit.
(apply_lambda): Likewise.  Get current specpdl level as 3rd arg.
(do_debug_on_call): Get current specpdl level as 2nd arg.
2014-09-16 08:04:56 +04:00
Eli Zaretskii
2d83441cc0 src/dispextern.h: Commentary fix. 2014-09-15 18:29:40 +03:00
Eli Zaretskii
6b682d2b39 Fix display of R2L lines in partial-width windows.
src/xdisp.c (init_iterator): Don't use it->bidi_p before it is
 assigned the correct value.
 (extend_face_to_end_of_line): Account for truncation and
 continuation glyphs in R2L rows when one of the fringes is not
 displayed.
 (display_line): Don't assign negative X offset to a row if we are
 going to produce a truncation glyph for it.  When handling
 truncated R2L rows, consider the width of the left fringe instead
 of the right one.
 (produce_special_glyphs): Fix bogus assignments.
2014-09-15 18:25:54 +03:00
Glenn Morris
d4dc0e1691 * lisp/image.el (image-multi-frame-p): Fix thinko
do not force a delay if none was specified.

Fixes: debbugs:18334
2014-09-14 16:59:57 -07:00
Eli Zaretskii
9ed670023f Fix bug #18420 with deadlocks communicating with subprocess on MS-Windows.
src/w32.c (fcntl): Support O_NONBLOCK fcntl on the write side of
 pipes.
 (sys_write): When a write to a non-blocking pipe returns ENOSPC,
 set errno to EAGAIN instead, to allow the caller to retry the
 write after some waiting.  Fixes deadlocks when Emacs exchanges a
 lot of data through the pipe.
2014-09-14 18:18:39 +03:00
Eli Zaretskii
a6cc335aef Fix expansion and encoding of sound file names on MS-Windows.
src/sound.c (Fplay_sound_internal): Encode the sound file name in
 the ANSI codepage.  Expand it against data-directory, as per docs,
 not against the current directory.  No need to make a local copy
 of the file name; pass the encoded file name directly to
 do_play_sound.  (Bug#18463)
 src/w32.c (ansi_encode_filename): If w32_get_short_filename returns
 NULL, and the file name is not encodable in ANSI codepage, return
 the string with "?" replacement characters, which will fail the
 caller.  This avoids returning a random value in that case.
2014-09-13 11:26:44 +03:00
Eli Zaretskii
e868e853a8 Resurrect sound support on MS-Windows that was lost in transition.
configure.ac (HAVE_SOUND): Check for mmsystem.h header that
 defines the sound stuff on MS-Windows.  (Bug#18463)
2014-09-13 10:10:40 +03:00
Kan-Ru Chen
c4ea7c9612 Fix fit-window-to-buffer doc-string. 2014-09-12 08:26:46 +02:00
Glenn Morris
ab10393e75 * etc/NEWS: Mention timer error reporting.
Ref: http://debbugs.gnu.org/18444#8
2014-09-11 13:35:44 -04:00
Martin Rudalics
6e49a66ad2 In Fresize_mini_window_internal set w->total_lines from w->pixel_height (Bug#18422).
* window.c (Fresize_mini_window_internal): Set w->total_lines
from w->pixel_height (Bug#18422).
2014-09-11 10:47:34 +02:00
Ivan Shmakov
2776a6502b * lisp/desktop.el (desktop-create-buffer): Check that buffers are still live
before burying them.

Fixes: debbugs:18373
2014-09-09 20:47:20 -04:00
Eli Zaretskii
7c2aaeb4f6 src/xdisp.c (pos_visible_p): Don't assign a boolean value to an int var. 2014-09-09 21:23:26 +03:00
Glenn Morris
d7a3bb022c * calendar/diary-lib.el (diary-list-entries): Restore 24.3 display behavior.
Fixes: debbugs:18381
2014-09-09 14:09:54 -04:00
Jan Djärv
b0fb34364b * nsterm.m (updateFrameSize:, initFrameFromEmacs:)
(toggleFullScreen:): Take frame_resize_pixelwise into account when
setting resize increments.

Fixes: debbugs:18435
2014-09-09 19:46:28 +02:00
Eli Zaretskii
1acb1beff1 Fix the row number mistakenly reported by pos_visible_p in rare cases.
src/xdisp.c (pos_visible_p): Properly save and restore the iterator
 state around the call to line_bottom, since it can move the
 iterator to another screen line.  This fixes off-by-one errors in
 the reported row in some rare cases.
2014-09-09 18:04:35 +03:00
Eli Zaretskii
da604136b9 Fix mouse-dragging mode lines on text-mode terminals.
lisp/mouse.el (mouse-drag-line): On text-mode frames, count the mode
 line and header line as 1 pixel.  This fixes the 1-"pixel" (row)
 discrepancy between window-pixel-edges and mouse events, and
 avoids moving mode line up when the mouse click is on the modeline
 and no drag is attempted.
2014-09-09 18:00:51 +03:00
Glenn Morris
feb7e20179 NEWS fix
display-buffer-in-previous-window existed before 24.4, but was not
in display-buffer-fallback-action
2014-09-08 21:20:01 -04:00
Glenn Morris
6e82d877a4 * calendar.el (calendar-basic-setup): Avoid clobbering calendar with diary.
Fixes: debbugs:18381
2014-09-07 22:57:24 -07:00
Eli Zaretskii
938aed6ef8 Fix bug #18419 with disappearing line numbers when minibuffer is resized.
src/dispnew.c (prepare_desired_row): When MODE_LINE_P is zero,
 always make sure the marginal areas of the row are in sync with
 what the window wants.
2014-09-07 20:16:36 +03:00
Stefan Monnier
6ac5571c62 * lisp/vc/vc-dir.el (vc-dir-update): Don't burp in corner case. 2014-09-05 13:37:12 -04:00
Lars Ljung
bcbaf6b7be * lisp/isearch.el (isearch-yank-word-or-char): Obey superword-mode
as well.

Fixes: debbugs:18400
2014-09-04 12:14:26 -04:00