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

40233 commits

Author SHA1 Message Date
Eli Zaretskii
aecbbd57c1 * src/fns.c (Fmapconcat): Doc fix. (Bug#35710) 2019-06-07 15:59:50 +03:00
Paul Eggert
4b24b0185d Pacify GCC 9 -Wredundant-decls
* src/gmalloc.c (_fraghead) [!HYBRID_MALLOC]:
Make it static in this case, too.  This avoids having both
‘extern struct list _fraghead[];’ and
‘static struct list _fraghead[BLOCKLOG];’, which
GCC 9 complains about.
2019-05-30 15:29:50 -07:00
Paul Eggert
7871c3dc9f Pacify librsvg 2.45.1 and later
* src/image.c (svg_load_image): Pacify librsvg 2.45.1 and later,
and add a FIXME comment about the deprecated librsvg functions.
Backport from master.
2019-05-30 15:29:50 -07:00
Paul Eggert
d93f4bda7a Simplify xd_signature to pacify GCC 9
* src/dbusbind.c (xd_signature): Use simpler way to set up
the subsignature.  This also pacifies GCC 9 on Fedora 30 x86-64.
Backport from master.
2019-05-30 15:29:50 -07:00
Paul Eggert
b2e44b4246 Pacify GCC when compiling unexelf.c on Fedora 30
* src/unexelf.c (unexec): Pacify GCC 9.
2019-05-30 15:29:50 -07:00
Eli Zaretskii
8f18d12121 Improve documentation of decoding into a unibyte buffer
* doc/lispref/nonascii.texi (Explicit Encoding): Document what
happens when DESTINATION of decoding is a unibyte buffer.

* src/coding.c (Fdecode_coding_region)
(Fdecode_coding_string): Document what happens if DESTINATION
is a unibyte buffer.
2019-05-25 22:10:00 +03:00
Eli Zaretskii
9bee76227c ; * src/coding.c: Improve commentary. (Bug#34765) 2019-05-23 17:36:06 +03:00
Noam Postavsky
122ba16890 Don't segfault on force-window-update of deleted window
* src/window.c (Fforce_window_update): Do nothing for deleted
windows (Bug#35784).
2019-05-20 14:23:12 -04:00
Eli Zaretskii
5d24af87c1 Remove from docs references to obsolete MULE variables
* src/search.c (search_buffer): Remove obsolete text from a
comment.
* src/fns.c (Fstring_make_unibyte): Remove obsolete text from
a doc string.
2019-05-17 09:58:15 +03:00
Paul Eggert
cf5457764c Backport: fix broken build on m68k
The GCC + valgrind fix caused the m68k build to fail (Bug#35711).
Simplify string allocation a bit to make similar problems less
likely in the future.
* src/alloc.c (sdata, SDATA_NBYTES, SDATA_DATA) [GC_CHECK_STRING_BYTES]:
Use the same implementation as with !GC_CHECK_STRING_BYTES,
as the special case is no longer needed.
(SDATA_ALIGN): New constant.
(SDATA_SIZE): Remove this macro, replacing with ...
(sdata_size): ... this new function.  All uses changed.
Properly account for sizes and alignments even in the m68k case,
and even if GC_CHECK_STRING_BYTES is not defined.
2019-05-14 11:10:02 -07:00
Noam Postavsky
202ff53da2 Handle GNUTLS_E_AGAIN in emacs_gnutls_read (Bug#34341)
Don't merge to master, this has already been fixed there by 2019-01-15
"Fix unlikely races with GnuTLS, datagrams".
* src/gnutls.c (emacs_gnutls_read): Similar to emacs_gnutls_write,
when gnutls_record_recv returns GNUTLS_E_AGAIN set errno to EGAIN.
2019-05-13 20:15:31 -04:00
Alan Mackenzie
32d181326a Fix description of (move-to-column <n> t) when column <n> is inside a tab
This fixes bug #35647.  State that when indent-tabs-mode is non-nil, spaces
are inserted before the tab rather than the tab being replaced by spaces.

* doc/lispref/text.texi (columns)
* src/indent.c (move-to-column): Make the above documentation amendment.
2019-05-09 16:27:03 +00:00
Eli Zaretskii
f77bd2b4ed ; * src/lisp.h (DEFSYM): Fix inaccurate comment. 2019-05-06 21:52:19 +03:00
YAMAMOTO Mitsuharu
c26d452ae1 * src/macfont.m (macfont_shape): Use convenient LGLYPH_NEW. 2019-04-29 07:31:45 +09:00
Noam Postavsky
7cb5364ef5 Check if mouse_face_overlay was deleted (Bug#35273)
* src/xdisp.c (note_mouse_highlight): Check if the mouse_face_overlay
actually points to a buffer, before calling
mouse_face_overlay_overlaps on it.
2019-04-28 08:31:17 -04:00
Noam Postavsky
bacdaa5b25 Use pkg-config to find lcms2 CFLAGS and LIBS (Bug#30346)
* configure.ac: Use EMACS_CHECK_MODULES fors LCMS2 rather than
AC_SEARCH_LIBS.
* src/Makefile.in: Get LCMS2_LIBS and LCMS2_CFLAGS from configure,
instead of just LIBLCMS2.

(cherry picked from commit cb3863370c)
2019-04-21 14:16:16 +03:00
Noam Postavsky
9997bbb3ee ; * src/emacs.c: Fix typo in comment (Bug#35320). 2019-04-19 14:11:01 -04:00
Eli Zaretskii
70ec392866 Fix the MSDOS build when running under CWSDPMI
* src/msdos.c (the_only_tty_output): Define.
* src/msdos.h (the_only_tty_output): Declare.
* src/frame.c (make_terminal_frame) [MSDOS]:
* src/dispnew.c (init_display) [MSDOS]: Set up
f->output_data.tty pointer using the_only_tty_output, before
dereferencing the pointer.  This prevents crashes with DPMI
servers that provide NULL pointer protection.
2019-04-15 18:05:52 +03:00
Alexander Gramiak
b3cab4199a Backport: Plug memory leak in GTK x-display-monitor-attributes-list
* src/frame.c (free_monitors) [USE_GTK]: Define in the GTK case as
well.

* src/xfns.c (x-display-monitor-attributes-list) [USE_GTK]: Plug
memory leak. Use dupstring over xstrdup as gdk_monitor_get_model may
return NULL.
2019-04-14 15:59:39 -06:00
Eli Zaretskii
85829363f7 Improve documentation of 'read-command'
* src/minibuf.c (Fread_command): Document the return value
when DEFAULT-VALUE is nil and the user enters nothing.
* doc/lispref/minibuf.texi (High-Level Completion): Document
the printed representation of a symbol whose name is empty.
(Bug#3522)
2019-04-11 17:00:44 +03:00
Eli Zaretskii
b77723a5f3 Fix an outdated URL in a comment
* src/emacs.c: Fix reference to Cocoa CoreFoundation Release
Notes.  (Bug#35225)
2019-04-11 16:25:06 +03:00
Eli Zaretskii
a5da653319 * src/editfns.c (Fnarrow_to_region): Doc fix. (Bug#35163) 2019-04-08 19:53:48 +03:00
Eli Zaretskii
a30a6c3019 Improve documentation of set-window-start
* doc/lispref/windows.texi (Window Start and End):
* src/window.c (Fset_window_start): Document that reliable
setting of a window start position requires to adjust point to
be visible.  (Bug#34038)
2019-04-06 11:22:13 +03:00
Alexander Gramiak
9e79f199ff ; * src/fontset.c (set-fontset-font): Use uppercase arg in docstring 2019-04-04 11:44:36 -06:00
Martin Rudalics
bc75589b90 Document restrictions when setting window margins, fringes or scroll bars
* src/window.c (Fset_window_margins, Fset_window_fringes)
(Fset_window_scroll_bars): In doc-strings tell that a window
must be large enough to accommodate fringes, sroll bars and
margins of the desired size.
* doc/lispref/display.texi (Fringe Size/Pos, Scroll Bars)
(Display Margins): Tell that windows must be large enough to
accommodate fringes, sroll bars and margins of the desired
size.
2019-03-13 10:45:28 +01:00
Eli Zaretskii
cc4cebf5f7 More improvements for 'read-buffer's doc string
* src/minibuf.c (Fread_buffer): Further improve the doc
string.  (Bug#347694)
2019-03-10 20:20:07 +02:00
Eli Zaretskii
5dbf08bf45 * src/minibuf.c (Fread_buffer): Minor doc fixes. (Bug#34749) 2019-03-09 20:20:47 +02:00
Martin Rudalics
464ee80eac Warn against recursive invocations of 'buffer-list-update-hook' (Bug#34765)
* src/buffer.c (Vbuffer_list_update_hook):
* doc/lispref/buffers.texi (Buffer List): Warn against
recursive invocations of 'buffer-list-update-hook' (Bug#34765).
2019-03-08 19:10:27 +01:00
Eli Zaretskii
c86d41911d ; * src/image.c (imagemagick_load, svg_load): Fix typos in comments. 2019-02-23 10:35:59 +02:00
Eli Zaretskii
6985caa86e Fix input after setting x-wait-for-event-timeout nil
* src/w32term.c (x_make_frame_visible): Call unblock_input
before returning early.  (Bug#34575)
2019-02-19 20:58:53 +02:00
Eli Zaretskii
6d89120b15 Avoid crashes upon C-g in nested invocations of 'read_char'
* src/keyboard.c (read_char, read_event_from_main_queue):
Ensure the global value of getcjmp is restored when the stack
is unwound by the likes of 'throw', by calling
record_unwind_protect_ptr instead of restoring the value
manually.  (Bug#34394)
(restore_getcjmp): Argument is now 'void *', to match the
signature of record_unwind_protect_ptr.

(cherry picked from commit 10527fca66)
2019-02-13 17:43:55 +02:00
Stefan Monnier
3f4b8e9a29 * src/data.c (Fmake_local_variable): Fix bug#34318
Revert part of ed962f2b8a.

* test/src/data-tests.el (data-tests-make-local-forwarded-var):
Add corresponding test.
2019-02-12 16:33:23 -05:00
Eli Zaretskii
0cd7b526a1 Minor improvements to do strings in callproc.c
* src/callproc.c (Fcall_process, Fcall_process_region): Minor
fixes to doc strings.  Suggested by Nicholas Drozd
<nicholasdrozd@gmail.com>.  (Bug#34274)
2019-02-08 10:46:00 +02:00
Robert Pluim
8e22025f33 Fix process-thread docstring
* src/process.c (Fprocess_thread): Correct docstring.
2019-02-08 08:22:34 +01:00
Eli Zaretskii
3e49a080e5 ; * src/coding.h (struct coding_system): Fix a typo in a comment. 2019-02-06 18:51:02 +02:00
Paul Eggert
9c8412a0b8 Fix process-contact bug with TCP connections
This fixes a regression from Emacs 25.3 (Bug#34134).
* src/process.c (server_accept_connection):
Set host correctly, fixing a bug introduced in
2017-09-16T21:29:18Z!eggert@cs.ucla.edu
when working around a GCC bug.
2019-01-30 15:12:31 -08:00
Alan Third
c9f6f86814 Prevent redrawing if frame is garbaged
* src/nsterm.m ([EmacsView viewWillDraw]): Cancel drawing if the frame
has been garbaged.
* src/xdisp.c (expose_window_tree, expose_frame): Remove NS only
exceptions.
2019-01-15 16:03:06 +00:00
Eli Zaretskii
00ba2267ed Attempt to fix hangs on MS-Windows due to C-g
* src/w32uniscribe.c (uniscribe_otf_capability): Set
inhibit-quit around calls to otf_features, because the latter
cons Lisp data structures while we are in a critical section.
* src/xdisp.c (ALLOCATE_HDC) [HAVE_NTGUI]: Set inhibit-quit.
(RELEASE_HDC) [HAVE_NTGUI]: Restore inhibit-quit.
(OPTIONAL_HDC, DECLARE_HDC): Remove macros, their job is now
done by ALLOCATE_HDC and by a single #ifdef.
(draw_glyphs): Adapt to the above changes in macros.
(Bug#34059)
2019-01-14 17:36:04 +02:00
Glenn Morris
6ac5985418 ; Fix some trivial doc typos 2019-01-12 14:47:33 -08:00
Paul Eggert
99e2ad9e4e Improve GC+Cairo workaround
Suggested by Eli Zaretskii (Bug#20890#31).
* src/font.h (font_data_structures_may_be_ill_formed): New function.
* src/ftfont.c (ftfont_close):
* src/ftcrfont.c (ftcrfont_close): Use it.

(cherry picked from commit d02fd482fb)
2019-01-05 11:53:04 +02:00
Paul Eggert
e0862eda47 Work around GC+Cairo bug
Workaround suggested by Robert Pluim (Bug#20890#13).
* src/ftfont.c (ftfont_close) [USE_CAIRO]:
Do nothing if GC is in progress.
2019-01-05 11:52:40 +02:00
Eli Zaretskii
0ecff00bc1 Improve commentary in font.h
* src/font.h (struct font, struct font_driver): Fix typos and
wording in comments.  Document all driver methods.
2019-01-05 10:28:34 +02:00
Martin Rudalics
a058edae5b Fix definition of Qwindow_point_insertion_type (Bug#33871)
* src/window.c (Qwindow_point_insertion_type): Fix definition
(Bug#33871).
2019-01-04 17:34:00 +01:00
Paul Eggert
26bed8ba10 Update copyright year to 2019
Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
2019-01-01 01:01:13 +00:00
Alan Third
a731c563a1 Fix NS fringe bitmap drawing bug (bug#33864)
* src/nsterm.m (ns_draw_fringe_bitmap): Check the rectangle to clear
correctly.
2018-12-28 21:38:11 +00:00
Eli Zaretskii
0c524597b3 Fix commentary in dispnew.c
* src/dispnew.c (buffer_posn_from_coords): Fix inaccuracies in
the commentary.
2018-12-28 16:28:51 +02:00
Paul Eggert
c9fdd1b496 Improve accept-process-process doc
* doc/lispref/processes.texi (Accepting Output):
* src/process.c (Faccept_process_output):
Document that (accept-process-output P) can return non-nil
even after P has exited, and that it can return nil even if P
is still running (Bug#33839).
2018-12-27 12:53:54 -08:00
Charles A. Roelli
24ddea074a Improve process doc. with respect to handling of large input (Bug#33191)
* src/process.c (Fprocess_send_region, Fprocess_send_string):
Document that process input longer than the process input
buffer may be split into bunches.  Remove an outdated
reference to a 500 character split boundary.
* doc/lispref/processes.texi (Asynchronous Processes): Remove
mention of "stray character injections" in PTY processes.  See
also the comment about ICANON in src/sysdep.c, function
child_setup_tty.
2018-12-22 17:14:36 +01:00
Chris Feng
305aca0a0a Backport: Handle unread-command-events consistently (bug#23980)
* src/keyboard.c (read_char): Events put into `unread-command-events'
with the form (t . EVENT) should always have the t stripped when read
out.
* test/src/keyboard-tests.el: New tests for `unread-command-events'.

(cherry picked from commit 1f3f4b1296)
2018-12-19 18:06:37 +02:00
Paul Eggert
e8bb0420a0 More porting to GCC 8 of --enable-gcc-warnings
Backport from master.
I ran into this when building Emacs 26 with GCC 8 on Fedora 29 x86.
* lwlib/lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu):
* lwlib/lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance):
* lwlib/lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]:
No longer const.
* src/emacs-module.c: Ignore -Wcast-function-type.
2018-12-17 08:16:17 -08:00