1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-31 04:41:23 -08:00
Commit graph

35937 commits

Author SHA1 Message Date
Paul Eggert
732fd4c7e1 Update copyright year to 2015
Run admin/update-copyright.
2015-01-01 09:18:06 -08:00
Eli Zaretskii
9758516441 Fix a typo in a comment in the previous commit. 2014-12-30 21:51:34 +02:00
Eli Zaretskii
aa472a3771 Fix the pixel coordinates returned by pos-visible-in-window-p. (Bug#19473)
src/xdisp.c (pos_visible_p): Fix up the X coordinate for
 right-to-left screen lines.
2014-12-30 19:29:24 +02:00
Paul Eggert
b5c9c131ca Spelling fixes 2014-12-28 15:06:16 -08:00
Eli Zaretskii
c5504d1005 src/w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458) 2014-12-28 20:32:53 +02:00
Paul Eggert
b54f5721bf Port memory-full checking to GnuTLS 3.3
Instead of using gnutls_global_set_mem_functions, check every call
to a GnuTLS function that might return an indication of memory
exhaustion.  Suggested by Dmitry Antipov in:
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg02056.html
* src/gnutls.c (gnutls_global_set_mem_functions) [WINDOWSNT]: Remove.
(init_gnutls_functions): Do not load gnutls_global_set_mem_functions.
(fn_gnutls_global_set_mem_functions) [!WINDOWSNT]: Remove.
All uses removed.
(check_memory_full): New function.
(emacs_gnutls_handshake, emacs_gnutls_handle_error)
(gnutls_make_error, Fgnutls_boot): Use it.
(emacs_gnutls_global_init): Avoid gnutls_global_set_mem_functions.
2014-12-27 23:45:46 -08:00
Eli Zaretskii
a41d07b329 Fix rendering of composed caharacters on the mode line. (Bug#19435)
src/xdisp.c (set_iterator_to_next) <GET_FROM_STRING>: Limit search in
 composition_compute_stop_pos to the number of characters in the
 string.
 <GET_FROM_BUFFER, GET_FROM_STRING>: Simplify code.
 src/composite.c (composition_compute_stop_pos): If no composition
 was found in a string before ENDPOS, and ENDPOS is the string end,
 no need to back up to a safe point.
 src/dispextern.h (struct it) <end_charpos>: Improve commentary.
2014-12-25 17:38:15 +02:00
Jan D
0d48826fd3 Avoid compiler warning.
* nsimage.m (setPixmapData): Rename local variable bmRep to avoid
compiler warning.
2014-12-24 12:26:25 +01:00
Jan D
5fc82109ba Backport: Memory leak fix and 19133 fix.
Fixes: debbugs:19133

* nsimage.m (allocInitFromFile:): Initialize bmRep.
(dealloc): Release bmRep.
(setPixmapData): Make bmRep local so class member is not
set.
2014-12-24 12:24:14 +01:00
Jan D
bef46ba222 Fix bad bug number reference, shall be 19427. 2014-12-24 12:12:19 +01:00
Jan D
2566f386bf Backport: Don't cache images in nsimage.m (Bug#18918).
Fixes: Bug#18918

* nsterm.h (EmacsImage): Remove imageListNext, refCount, reference,
imageListSetNext, imageListNext.

* nsimage.m (ImageList, imageListNext, imageListSetNext:)
(reference): Remove.
(allocInitFromFile:): Remove searching ImageList and calling
reference (Bug#18918).
(dealloc): Remove handling if ImageList.
2014-12-24 12:10:01 +01:00
Jan D
8e818d17d2 Keep maximized when going fullscreen.
Author:
Fixes: Bug#19427

* xterm.c (do_ewmh_fullscreen): Don't remove maximized_horz/vert
when going to fullscreen (Bug#19427).
2014-12-22 11:04:24 +01:00
Eli Zaretskii
811aceeaef src/window.c (Fwindow_body_width): Doc fix. (Bug#19395) 2014-12-18 19:15:01 +02:00
Stefan Monnier
fb420e7789 * lisp/subr.el (sit-for): Tweak docstring.
Fixes: debbugs:19381

* src/buffer.c (syms_of_buffer) <Vafter_change_functions>: fix docstring.
* build-aux/git-hooks/commit-msg (at_sign): Bump up line-length limit
to 78.
2014-12-15 15:09:04 -05:00
Eli Zaretskii
d9005dd52d src/gnutls.c (gnutls_init): Fix deprecation warning from GCC. 2014-12-13 18:58:08 +02:00
Eli Zaretskii
16d4c1cdc8 A better fix for bug#19346
src/gnutls.c (Fgnutls_available_p, syms_of_gnutls): Move
 gnutls-available-p out of the HAVE_GNUTLS conditional, and define
 them only once.
2014-12-12 11:19:59 +02:00
Ted Zlatanov
301a4014a7 Always define `gnutls-available-p' even if GnuTLS is not available.
Fixes: debbugs:19346

* gnutls.c (Fgnutls_available_p syms_of_gnutls): Move later for
clarity.  Let the availability check return Qnil when the GnuTLS
integration is not available, instead of erroring out.

* gnutls.h: Always declare syms_of_gnutls.

* emacs.c (main): Always include gnutls.h and run syms_of_gnutls.
2014-12-11 17:55:36 -05:00
Eli Zaretskii
0c2f254bc3 Support overflow-newline-into-fringe together with word-wrap (bug#19300)
src/xdisp.c (move_it_in_display_line_to, display_line): Don't
 disallow overflow-newline-into-fringe when word-wrap is in
 effect.
2014-12-10 19:54:19 +02:00
Lee Duhem
c1c2cee7c5 * src/eval.c (Fsignal): Remove duplicate test.
(Fautoload_do_load): Fix up docstring.
2014-12-04 14:13:13 -05:00
Jan Djärv
d9d3831472 More flicker fixes for OSX, related to bug 18757.
* nsfns.m (ns_set_name_as_filename): Don't set represented filename
at once, call ns_set_represented_filename instead.

* nsterm.h: Declare ns_set_represented_filename.

* nsterm.m (represented_filename, represented_frame): New variables.
(ns_set_represented_filename): New function.
(sendEvent:): Set represented filename here to avoid flicker,
related to Bug#18757.
2014-12-02 14:05:27 +01:00
Eli Zaretskii
6b765b8fac Fix bug #19201 with after-strings not being displayed.
src/xdisp.c (handle_single_display_spec): When ignoring a fringe
 bitmap display, reset the ignore_overlay_strings_at_pos_p flag.
 (next_element_from_buffer): When done with overlays, reset the
 ignore_overlay_strings_at_pos_p flag.
2014-11-27 18:35:27 +02:00
Eli Zaretskii
73cad916c8 Fix bug #19141 with UNCs in w32-shell-execute.
src/w32fns.c (Fw32_shell_execute): Convert forward slashes in
 DOCUMENT to backslashes, if DOCUMENT is a file.
2014-11-25 19:04:14 +02:00
Ulrich Müller
ed54567c7c Use consistent paxctl and setfattr flags for temacs.
* Makefile.in (temacs$(EXEEXT)): Use consistent flag settings
for paxctl and setfattr. Fixes temacs startup failure with
grsecurity/PaX enabled Linux kernel (bug#19067).
2014-11-25 07:47:11 +01:00
Paul Eggert
f24c8f98ec Fix white-space problems in ChangeLogs. 2014-11-24 17:16:27 -08:00
Glenn Morris
3e3b940fc1 * src/keyboard.c: Fix comment typo. 2014-11-23 23:49:39 -08:00
Paul Eggert
342bc0e04b .gitignore cleanup.
* .gitignore: Merge contents of subsidiary files and organize the
result so as to avoid duplication.  Remove no-longer needed entries.
* admin/charsets/.gitignore, admin/unidata/.gitignore:
* doc/lispintro/.gitignore, etc/.gitignore, leim/.gitignore:
* leim/ja-dic/.gitignore, lib-src/.gitignore, lisp/.gitignore:
* lisp/calc/.gitignore, lisp/calendar/.gitignore:
* lisp/cedet/.gitignore, lisp/emulation/.gitignore:
* lisp/erc/.gitignore, lisp/eshell/.gitignore, lisp/gnus/.gitignore:
* lisp/international/.gitignore, lisp/language/.gitignore:
* lisp/leim/.gitignore, lisp/leim/quail/.gitignore:
* lisp/mail/.gitignore, lisp/mh-e/.gitignore, lisp/net/.gitignore:
* lisp/nxml/.gitignore, lisp/obsolete/.gitignore:
* lisp/play/.gitignore, lisp/progmodes/.gitignore:
* lisp/term/.gitignore, lisp/textmodes/.gitignore:
* lisp/url/.gitignore, nt/.gitignore, src/.gitignore:
Remove; no longer needed.
2014-11-17 17:58:28 -08:00
Oscar Fuentes
81e0cca7bb Define MINGW_W64 and use it instead of _W64
... for detecting MinGW-w64. _W64 is not specific of MinGW-w64, it is
defined for compatibility with MS VC++.

	* nt/inc/ms-w32.h: Define MINGW_W64.

	* admin/CPP-DEFINES: Mention MINGW_W64.

	* nt/addpm.c: Use it.

	* nt/addsection.c: Use it.

	* nt/preprep.c: Use it.

	* src/w32.c: Use MINGW_W64 instead of _W64

	* src/w32term.c: Likewise.
2014-11-17 23:10:00 +01:00
Stefan Monnier
8679082639 * src/frame.c (Fhandle_switch_frame): Deactivate shift-region (bug#19003).
* lisp/window.el (handle-select-window): Deactivate shift-region.
2014-11-16 00:30:12 -05:00
Jan D
a6b42789b5 Backport: Fix for 18993.
* nsterm.m (ns_send_appdefined): Check for application defined
event on Cocoa (Bug#18993).  Backport from trunk.
2014-11-15 19:20:37 +01:00
Eli Zaretskii
1fb97e79d2 Fix bug #19060 with inaccurate pixel-based scrolling.
src/window.c (window_scroll_pixel_based): Avoid truncation/rounding
 errors in computing the number of pixels to scroll.  Suggested by
 Kelly Dean <kelly@prtime.org>.
2014-11-15 19:04:17 +02:00
Jan D
b8c9a4e36d Fix getting frame size wrong when restoring desktop.
* nsmenu.m (update_frame_tool_bar): If tool bar changes height,
call updateFrameSize.
2014-11-15 14:35:15 +01:00
Jan D
836c444db7 Fixes: 18757
* nsterm.m (setFrame:): Remove call to display (Bug#18757).
2014-11-15 13:39:30 +01:00
Eli Zaretskii
71e866c066 src/window.h (WINDOW_FRAME_LINE_HEIGHT): Fix a typo in a comment.
Reported by Kelly Dean <kelly@prtime.org>.
2014-11-15 11:25:16 +02:00
Jan Djärv
6688117e79 Fixes: 19036
* nsfns.m (x_set_foreground_color, x_set_background_color)
(x_set_cursor_color, Fxw_color_values): Block/unblock input,
use SET_FRAME_GARBAGED instead of redraw_frame (Bug#19036).
2014-11-14 08:41:53 +01:00
Eli Zaretskii
ea75a0e069 Fix bug #18982 with assertion violations when reverting buffers.
src/fileio.c (Finsert_file_contents): Invalidate buffer caches also
 when the inserted text does not need decoding.
2014-11-09 18:40:43 +02:00
Eli Zaretskii
2ae1e0d427 Fix bug #18995 with compiling w32heap.c with -funroll-loops.
src/w32heap.c (allocate_heap): Set the lower limit of heap at 8MB.
2014-11-09 17:57:37 +02:00
Jan Djärv
d29658759a * nsterm.h (EmacsScroller): judge returns bool.
* nsterm.m (ns_set_vertical_scroll_bar): Release bar.
(ns_judge_scroll_bars): Only set removed if judge returns true.
(judge): Returns bool == condemned.  Remove self from window.
(setPosition:portion:whole:): Remove raise SIGIO.

Fixes: debbugs:18757
2014-11-09 14:47:02 +01:00
Jan Djärv
d244e9bf03 * nsterm.m (ns_set_vertical_scroll_bar): Don't call bar setPosition: unless
needed (Bug#18757).

Fixes: debbugs:18993
2014-11-08 20:40:17 +01:00
Jan Djärv
86b1c771e1 Attempt to fix NS hang. Will probably cause merge conflicts.
* nsterm.m (init): Replace OSX 10.9 check with IMPL_COCOA.
(run): Ditto.  Only use non-system event loop if OSX version is
exactly 10.9.

Fixes: debbugs:18993
2014-11-08 17:32:37 +01:00
Michael Albinus
499a7f1cdb * callproc.c (encode_current_directory): Encode dir at the end. 2014-11-07 21:09:34 +01:00
Glenn Morris
2a1f6afdfe * src/callproc.c (encode_current_directory): Fix thinko in previous. 2014-11-07 09:04:10 -08:00
Michael Albinus
5282dec1ec * callproc.c (encode_current_directory): Support handling of file
names prepended by "/:".

Fixes: debbugs:18891
2014-11-07 15:45:34 +01:00
Alan Mackenzie
10c5eacef0 * src/syntax.c (back_comment): Fix off-by-one error.
Fixes: debbugs:18022
2014-11-06 09:05:58 -05:00
Dima Kogan
5b9c3a5767 * src/xgselect.c (xg_select): Use g_main_context_acquire.
Fixes: debbugs:18861
2014-11-05 22:02:11 -05:00
Michael Albinus
076582fde3 * dired.c (Ffile_attributes): Return Qnil, if Fexpand_file_name
raises an error.

Fixes: debbugs:18891
2014-11-05 12:23:10 +01:00
Eli Zaretskii
3247e0eae0 src/window.c (window_scroll_pixel_based): Fix a typo in a comment. 2014-11-03 20:22:07 +02:00
Eli Zaretskii
29a13e2afe Fix minor issues with functions that dump glyph matrices.
src/xdisp.c (Fdump_glyph_matrix, Fdump_frame_glyph_matrix): Doc fix.
 (Fdump_frame_glyph_matrix): Don't segfault if invoked on a GUI
 frame; instead, print an error message.
2014-11-03 19:14:50 +02:00
Jan Djärv
c33070f492 * nsfns.m (ns_set_doc_edited): Check for FRAME_NS.
Fixes: debbugs:18925
2014-11-03 08:15:11 +01:00
Jan Djärv
4e0cc3517b * macfont.m (macfont_glyph_extents): Turn off syntetic bold
if force_integral_p (i.e. no antialias).
(macfont_draw): Check ns_antialias_text, also turn off syntetic
bold if no antialias.

Fixes: debbugs:18876
2014-10-31 19:41:07 +01:00
Jan Djärv
08f558056d * emacs.c (main): Don't chdir to $HOME on Cocoa if --chdir was given.
Fixes: debbugs:18846
2014-10-31 16:18:36 +01:00