summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* ; Improve commentary in xdisp.cEli Zaretskii2019-08-171-24/+73
| | | | | * src/xdisp.c: Add to the commentary the description of stop_charpos, and how it is used during iteration.
* * src/callproc.c (Fcall_process): Doc fix.Eli Zaretskii2019-08-101-1/+1
|
* Ignore pending_signals when checking for quits.Philipp Stephani2019-08-072-7/+4
| | | | | | | | | | | pending_signals is often set if no quit is pending. This results in bugs in module code if the module returns but no quit is actually pending. * src/emacs-module.c (module_should_quit): Use QUITP macro to check whether the caller should quit. * src/eval.c: Remove obsolete comment.
* Fix subproc listening when setting filter to non-t (Bug#36591)Noam Postavsky2019-07-251-3/+12
| | | | | | | | | | | * src/process.c (Fset_process_filter): Call add_process_read_fd according to the state of process filter before it's updated. This restores the correct functioning as it was before 2016-02-16 "Allow setting the filter masks later". Inline the set_process_filter_masks call instead of fixing it that function, because it is also called from connect_network_socket, and we don't want to change the behavior of that function so close to release. * test/src/process-tests.el (set-process-filter-t): New test.
* ; Another minor change in 'bidi-display-reordering's doc string.Eli Zaretskii2019-07-131-2/+2
|
* Improve doc string of 'bidi-display-reordering'Eli Zaretskii2019-07-131-1/+4
| | | | | * src/buffer.c (syms_of_buffer) <bidi-display-reordering>: Further doc fix.
* Add warning to bidi-display-reordering doc stringStefan Kangas2019-07-131-2/+3
| | | | | | | | | | This explanation was given by Eli Zaretskii on emacs-devel. For discussion, see: https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00294.html * src/buffer.c (syms_of_buffer): Add warning to doc string of bidi-display-reordering to explain that it should only be used for debugging.
* ; * src/lread.c (Fread): Make the comment wording more accurate.Eli Zaretskii2019-07-061-1/+4
|
* * src/fns.c (Fmapconcat): Doc fix. (Bug#36418)Eli Zaretskii2019-07-061-1/+1
|
* Avoid crash inside CFCharacterSetIsLongCharacterMember (Bug#36507)YAMAMOTO Mitsuharu2019-07-061-1/+4
| | | | | | * src/macfont.m (macfont_supports_charset_and_languages_p) (macfont_has_char): Don't pass integers outside the Unicode codespace to CFCharacterSetIsLongCharacterMember. Do not merge to master.
* Fix typo in doc string of file-exists-p (bug#36408)Stefan Kangas2019-06-291-1/+1
| | | | * src/fileio.c (Ffile_exists_p): Fix typo in doc string.
* Rename 'make-symbolic-link' argument NEWNAME to LINKNAMEJuanma Barranquero2019-06-211-5/+5
| | | | | * src/fileio.c (Fmake_symbolic_link): Fix docstring. * doc/lispref/files.texi (Changing Files): Doc fix.
* Check that length of data returned by sysctl is non-zeroRobert Pluim2019-06-202-6/+6
| | | | | | | | | | | | The length of the data returned by sysctl can be zero, which was not checked for. This could cause crashes, e.g. when querying non-existent processes. (Bug#36279) * src/sysdep.c (list_system_processes) [DARWIN_OS || __FreeBSD__]: (system_process_attributes) [__FreeBSD__]: (system_process_attributes) [DARWIN_OS]: * src/filelock.c (get_boot_time) [CTL_KERN && KERN_BOOTTIME]: Check for zero length data returned by sysctl.
* Avoid assertion violation when comparing with main-threadEli Zaretskii2019-06-103-0/+9
| | | | | | | | | * src/thread.c (unmark_main_thread): New function. * src/lisp.h (unmark_main_thread): Prototype it. * src/alloc.c (garbage_collect_1): Call it after sweeping. (Bug#33073) * test/src/thread-tests.el (threads-test-bug33073): New test.
* Revert "Don't mark main_thread (Bug#36155)"Andreas Schwab2019-06-101-4/+1
| | | | This reverts commit 1877b7b4d79b3434379fd5a4abd85906c25df00c.
* Don't mark main_thread (Bug#36155)Andreas Schwab2019-06-101-1/+4
| | | | * thread.c (mark_threads_callback): Don't mark main_thread.
* ; * src/keyboard.c (tool_bar_items): Fix a typo. (Bug#36143)Stefan Kangas2019-06-091-1/+1
|
* * src/fns.c (Fmapconcat): Doc fix. (Bug#35710)Eli Zaretskii2019-06-071-2/+6
|
* Pacify GCC 9 -Wredundant-declsPaul Eggert2019-05-301-8/+1
| | | | | | | | * 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.
* Pacify librsvg 2.45.1 and laterPaul Eggert2019-05-301-0/+15
| | | | | | * 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.
* Simplify xd_signature to pacify GCC 9Paul Eggert2019-05-301-5/+3
| | | | | | * 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.
* Pacify GCC when compiling unexelf.c on Fedora 30Paul Eggert2019-05-301-0/+1
| | | | * src/unexelf.c (unexec): Pacify GCC 9.
* Improve documentation of decoding into a unibyte bufferEli Zaretskii2019-05-251-2/+5
| | | | | | | | | * 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.
* ; * src/coding.c: Improve commentary. (Bug#34765)Eli Zaretskii2019-05-231-7/+14
|
* Don't segfault on force-window-update of deleted windowNoam Postavsky2019-05-201-1/+1
| | | | | * src/window.c (Fforce_window_update): Do nothing for deleted windows (Bug#35784).
* Remove from docs references to obsolete MULE variablesEli Zaretskii2019-05-172-10/+3
| | | | | | | * src/search.c (search_buffer): Remove obsolete text from a comment. * src/fns.c (Fstring_make_unibyte): Remove obsolete text from a doc string.
* Backport: fix broken build on m68kPaul Eggert2019-05-141-52/+25
| | | | | | | | | | | | | | 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.
* Handle GNUTLS_E_AGAIN in emacs_gnutls_read (Bug#34341)Noam Postavsky2019-05-131-2/+9
| | | | | | | 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.
* Fix description of (move-to-column <n> t) when column <n> is inside a tabAlan Mackenzie2019-05-091-3/+4
| | | | | | | | 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.
* ; * src/lisp.h (DEFSYM): Fix inaccurate comment.Eli Zaretskii2019-05-061-1/+1
|
* * src/macfont.m (macfont_shape): Use convenient LGLYPH_NEW.YAMAMOTO Mitsuharu2019-04-291-1/+1
|
* Check if mouse_face_overlay was deleted (Bug#35273)Noam Postavsky2019-04-281-1/+3
| | | | | | * 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.
* Use pkg-config to find lcms2 CFLAGS and LIBS (Bug#30346)Noam Postavsky2019-04-211-3/+4
| | | | | | | | | * 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 cb3863370cbe574810f796726faa39ba0de0a429)
* ; * src/emacs.c: Fix typo in comment (Bug#35320).Noam Postavsky2019-04-191-1/+1
|
* Fix the MSDOS build when running under CWSDPMIEli Zaretskii2019-04-154-0/+6
| | | | | | | | | | * 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.
* Backport: Plug memory leak in GTK x-display-monitor-attributes-listAlexander Gramiak2019-04-142-3/+8
| | | | | | | | | * 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.
* Improve documentation of 'read-command'Eli Zaretskii2019-04-111-1/+2
| | | | | | | | * 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)
* Fix an outdated URL in a commentEli Zaretskii2019-04-111-2/+7
| | | | | * src/emacs.c: Fix reference to Cocoa CoreFoundation Release Notes. (Bug#35225)
* * src/editfns.c (Fnarrow_to_region): Doc fix. (Bug#35163)Eli Zaretskii2019-04-081-2/+3
|
* Improve documentation of set-window-startEli Zaretskii2019-04-061-1/+6
| | | | | | | * 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)
* ; * src/fontset.c (set-fontset-font): Use uppercase arg in docstringAlexander Gramiak2019-04-041-1/+1
|
* Document restrictions when setting window margins, fringes or scroll barsMartin Rudalics2019-03-131-2/+9
| | | | | | | | | | | * 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.
* More improvements for 'read-buffer's doc stringEli Zaretskii2019-03-101-7/+7
| | | | | * src/minibuf.c (Fread_buffer): Further improve the doc string. (Bug#347694)
* * src/minibuf.c (Fread_buffer): Minor doc fixes. (Bug#34749)Eli Zaretskii2019-03-091-2/+3
|
* Warn against recursive invocations of 'buffer-list-update-hook' (Bug#34765)Martin Rudalics2019-03-081-3/+5
| | | | | | * src/buffer.c (Vbuffer_list_update_hook): * doc/lispref/buffers.texi (Buffer List): Warn against recursive invocations of 'buffer-list-update-hook' (Bug#34765).
* ; * src/image.c (imagemagick_load, svg_load): Fix typos in comments.Eli Zaretskii2019-02-231-4/+4
|
* Fix input after setting x-wait-for-event-timeout nilEli Zaretskii2019-02-191-0/+3
| | | | | * src/w32term.c (x_make_frame_visible): Call unblock_input before returning early. (Bug#34575)
* Avoid crashes upon C-g in nested invocations of 'read_char'Eli Zaretskii2019-02-131-5/+11
| | | | | | | | | | | | * 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 10527fca66e39d7067986904161fa33741abcd26)
* * src/data.c (Fmake_local_variable): Fix bug#34318Stefan Monnier2019-02-121-0/+10
| | | | | | | Revert part of ed962f2b8a. * test/src/data-tests.el (data-tests-make-local-forwarded-var): Add corresponding test.
* Minor improvements to do strings in callproc.cEli Zaretskii2019-02-081-2/+3
| | | | | | * src/callproc.c (Fcall_process, Fcall_process_region): Minor fixes to doc strings. Suggested by Nicholas Drozd <nicholasdrozd@gmail.com>. (Bug#34274)