aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * src/alloc.c (purecopy): Use AUTO_STRING.Paul Eggert2016-03-201-1/+1
|
* No need to block input when reading directoriesPaul Eggert2016-03-191-13/+1
| | | | | | | | * src/dired.c: Don’t include blockinput.h. (open_directory, directory_files_internal_unwind) (directory_files_internal, file_attributes): Don’t block input here, as the reasons for blocking input should no longer apply. See blockinput.h FIXME. (Bug#22996).
* Improve w32notify notificationsFabrice Popineau2016-03-195-246/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32notify.c (DIRWATCH_BUFFER_SIZE): New macro. (struct notification): 'terminate' is now a HANDLE. (send_notifications): Argument is now a pointer to a notification. Don't loop waiting for the notification to be acknowledged by the main thread; instead, just add the notification to the linked list of notifications waiting to be acknowledged. (watch_end): Don't close the directory handle. (watch_completion): Allocate a new notification structure to be added to the notifications set. Call ReadDirectoryChangesW immediately after adding the new notification, and before sending a message to the main thread about them. (watch_worker): Don't loop calling ReadDirectoryChangesW; instead, call it just once -- it will be called again in watch_completion. Loop waiting for the main thread's indication to terminate. (start_watching): Create the event to be used to indicate to the worker thread that its should terminate. (remove_watch): Indicate to the worker thread that it should terminate. * src/w32term.c (queue_notifications): Loop over all the notifications in the linked list, processing all of them in one go. * src/w32inevt.c (handle_file_notifications): Loop over all the notifications in the linked list. * src/w32xfns.c (init_crit): Initialize the linked list of file notifications. (delete_crit): Free the linked list of file notifications, including any unprocessed notifications left in it. * src/w32term.h (struct notifications_se): New struct. * test/lisp/filenotify-tests.el (file-notify-test02-events) (file-notify-test05-dir-validity): Add read-event calls to facilitate event recognition by the main thread in batch mode.
* Merge from origin/emacs-25John Wiegley2016-03-11191-551/+598
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | facb5e2 Update Emacs manual section related to character folding 4efea8e ; * etc/DEBUG: Fix a typo. (Bug#22984) f8df21b Update admin/notes/unicode 950be68 Add symref-filepattern entries for c?perl-mode 8b8a6ad Don't use XRANDR 1.3 extensions if the server doesn't support them. 985dacf ; NEWS update for the last change in etags 741a6f8 Sync with gnulib 7352c6c Rework C source files to avoid ^( a589e9a By default, etags produces unqualified Perl tag names 72c7438 Indent methods with keyword names correctly 28532a9 Propertize character literals and special global variables differently a7d6f39 ; Fix last change in NEWS 83b2a20 Change how /etc/NEWS presents character folding b417c5a Revert "Revert "Backport: * lisp/isearch.el: Turn char-folding off by default"" 711ca36 Properly handle lambda as read function (bug 22961) 1b9d616 Propertize operator symbol names with symbol syntax class 9b16bc2 Stop recognizing :#{} as symbol in ruby-mode 366ec77 Allow using the left shift operator without spaces on both sides 02bf7cc Properly handle unquoting in wdired (bug 22938) 16cf469 ; Spelling fix and tighten up comment f50bc04 Allow splat operator before percent literal 991c801 Don't apply the return value of goto-char as syntax class 6e63b3e Guard against nested percent literals 066f3bc Recognize iuwu-mod after an escaped newline 6f7a57c Fix symbolic mode string conversion for s and t 50b9826 Update 'ucs-names' database 993b2fb Improve doc string of 'shell-command' b71c717 Make the code in movemail_strftime more general cc057e4 Speed up redisplay of binary files with long series of nulls e51b27e Remove the highlighting support for quoting 'like this' inside Lisp docstrings b1abce1 Restore leading space in movemail pop output 98b8d44 Fix bidi-paragraph-direction in Rmail view buffer dc9d837 Don't misindent computed property generator methods 7923112 Fix mbox files produced by movemail on MS-Windows c45a1ca doc string file descriptor exhaustion fix 265141b Fix Bug#22814
| * Don't use XRANDR 1.3 extensions if the server doesn't support them.Ken Raeburn2016-03-102-7/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/xterm.h (struct x_display_info): Add fields to save XRANDR version number. * src/xfns.c (x_get_monitor_attributes): Save the version numbers after querying the X server. (x_get_monitor_attributes_xrandr): Don't use XRRGetOutputPrimary or XRRGetScreenResourcesCurrent if the server doesn't support at least RANDR version 1.3. Conditionalize the code blocks on compiling against library version 1.3 or better, rather than feature tests for each function. * configure.ac: Stop testing for those two functions.
| * Rework C source files to avoid ^(Paul Eggert2016-03-10191-536/+533
| | | | | | | | | | | | | | | | Work around Bug#22884 by rewording comments and strings to avoid ‘(’ at the start of a line unless it starts a function. This change is a short-term hack; in the longer run we plan to fix cc-mode’s performance for C files that have ‘(’ at the start of a line in a comment or string.
| * Properly handle lambda as read function (bug 22961)Andreas Schwab2016-03-091-2/+2
| | | | | | | | | | | | * src/lread.c (readchar): Be more strict about checking for string in cons for read_vector. (unreadchar): Likewise.
| * Speed up redisplay of binary files with long series of nullsEli Zaretskii2016-03-061-6/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/bidi.c (bidi_resolve_weak): Avoid entering a loop searching for a character needed for resolving the type of a series of BN and ET characters, as required by rule W5 of UAX#9, if the results of the resolution are known in advance, because we are at level zero, and the previous strong character was L. (bidi_resolve_neutral): Partially resurrect the optimization for a long series of control characters in an otherwise strictly L2R text. (bidi_level_of_next_char): Don't enter the loop that searches for a paragraph separator if the current character is already at base embedding level. (Bug#22739)
| * doc string file descriptor exhaustion fixPaul Eggert2016-03-041-3/+3
| | | | | | | | | | * src/doc.c (get_doc_string): Move newly-added check to a better location (Bug#22814).
| * Fix Bug#22814Michael Albinus2016-03-041-0/+3
| | | | | | | | | | * src/doc.c (get_doc_string): Raise an error in case too many files are open. (Bug#22814)
* | Fix asynchronous TLS connections on MS-WindowsAlain Schneble2016-03-101-8/+26
| | | | | | | | | | | | | | | | | | * src/w32.c (sys_write): Don't switch the socket to blocking mode if the connection attempt is in progress. Instead, return either EWOULDBLOCK immediately if the connection is in progress, or the error code produced by '_sys_wait_connect' if the connection failed. Switching the socket to blocking mode was found to interfere with GnuTLS handshake. (Bug#22789)
* | Minor fixes for getaddrinfo_a usagePaul Eggert2016-03-091-25/+23
| | | | | | | | | | | | | | | | | | * src/process.c (Fdelete_process): Check gai_cancel return value. That way, there’s no need to invoke gai_error. Check gai_suspend return value. (Fmake_network_process): Don’t assume gai_strerror returns a UTF-8 string. Simplify call to connect_network_socket. (check_for_dns): Avoid unnecessary initialization of local.
* | Pacify --enable-gcc-warningsPaul Eggert2016-03-081-2/+1
| | | | | | | | | | * src/xfns.c (x_create_tip_frame): Omit unused local. (Fx_show_tip): Don’t jump over auto initialization.
* | Optionally reuse tooltip frames instead of deleting/recreating them.Martin Rudalics2016-03-084-491/+475
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (tooltip_reuse_hidden_frame): New option. * src/w32fns.c (x_create_tip_frame): Remove argument TEXT. Fix handling of dividers. (x_hide_tip): New function. (Fx_show_tip): Try to reuse old tooltip frame when `tooltip-reuse-hidden-frame' is non-nil and frame parameters have not changed. Insert STRING here instead of passing it to x_create_tip_frame. Compute size of tooltip window with Fwindow_text_pixel_size. Obey Vw32_tooltip_extra_pixels when padding tooltip window. (Fx_hide_tip): Call x_hide_tip. (Vw32_tooltip_extra_pixels): New variable. * src/xdisp.c (Fwindow_text_pixel_size): Don't return negative y value. Fix doc-string. * src/xfns.c (x_create_tip_frame): Remove argument TEXT. Call make_frame with mini_p argument false. (x_hide_tip): New function. (Fx_show_tip): Try to reuse old tooltip frame when `tooltip-reuse-hidden-frame' is non-nil and frame parameters have not changed. Insert STRING here instead of passing it to x_create_tip_frame. Compute size of tooltip window with Fwindow_text_pixel_size. (Fx_hide_tip): Call x_hide_tip. * lisp/cus-start.el (tooltip-reuse-hidden-frame): Add customization entry.
* | Assume getaddrinfo in C codePaul Eggert2016-03-071-64/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/CPP-DEFINES, configure.ac: Remove HAVE_GETADDRINFO, HAVE_H_ERRNO. All uses removed. * doc/lispref/processes.texi (Network, Network Processes), etc/NEWS: Say that port numbers can be integer strings. * lib-src/pop.c (h_errno) [!WINDOWSNT && !HAVE_H_ERRNO]: Remove decl. (socket_connection): Assume HAVE_GETADDRINFO. * lisp/mpc.el (mpc--proc-connect): * lisp/net/network-stream.el (open-network-stream): It’s now OK to use integer strings as port numbers. * src/process.c (conv_numerical_to_lisp) [!HAVE_GETADDRINFO]: Remove. (Fmake_network_process): Assume HAVE_GETADDRINFO.
* | Remove support for IRIXPaul Eggert2016-03-075-45/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The IRIX port wasn’t really working anyway, and the code was getting in the way of other changes (e.g., getaddrinfo fixes). IRIX’s supplier dropped support for IRIX in 2013. * admin/CPP-DEFINES: * configure.ac (opsys): * doc/lispref/os.texi (System Environment): * etc/MACHINES, etc/PROBLEMS: * lisp/find-dired.el (find-grep-options): * lisp/lpr.el (lpr-lp-system): * lisp/ls-lisp.el (ls-lisp-emulation): * lisp/mail/rmail.el (rmail-spool-directory): * lisp/net/net-utils.el (ping-program-options): * lisp/progmodes/gud.el (gud-irix-p, gud-dbx-use-stopformat-p): * lisp/progmodes/ps-mode.el (ps-mode-print-function): * src/conf_post.h [IRIX6_5]: * src/emacs.c (Vsystem_type): * src/filelock.c (get_boot_time_1): * src/process.c (process_send_signal): * src/unexelf.c (unexec): Omit IRIX-specific code and/or documentation. * configure.ac (NON_GCC_TEST_OPTIONS, IRIX6_5, PREFER_VSUSP): Remove. All uses removed. * etc/NEWS: Document the change.
* | Fix Cygwin-w32 buildKen Brown2016-03-062-0/+10
| | | | | | | | | | | | | | | | * src/w32fns.c (funhook, setup_w32_kbdhook, remove_w32_kbdhook): Define only if WINDOWSNT, and update all uses accordingly. * src/w32term.h (check_w32_winkey_state, setup_w32_kbdhook) (remove_w32_kbdhook): Declare only if WINDOWSNT. (w32_kbdhook_active): Define as 0 if not WINDOWSNT.
* | Don't signal errors on E_AGAINLars Magne Ingebrigtsen2016-03-061-1/+3
| | | | | | | | | | * src/gnutls.c (Fgnutls_errorp): Qgnutls_e_again is not an error now that TLS is async.
* | Allow making TLS negotiation blockingLars Magne Ingebrigtsen2016-03-052-3/+15
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/gnutls.el (gnutls-negotiate): Make negotiation blocking. * src/gnutls.c (Fgnutls_boot): Provide a new keyword, :complete-negotiation, to specify that we want complete negotiation even if the socket is non-blocking. (gnutls_try_handshake): Complete negotiation if given that keyword. * src/process.h (L): Added gnutls_complete_negotiation_p.
* | Implement getaddrinfo fallback for MS-WindowsEli Zaretskii2016-03-051-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg01602.html for more details. * nt/mingw-cfg.site (ac_cv_func_getaddrinfo) (ac_cv_func_gai_strerror): Set to "yes", as the configure script's test program is not smart enough to auto-detect these. * nt/inc/sys/socket.h (getaddrinfo, freeaddrinfo): Redirect to sys_getaddrinfo and sys_freeaddrinfo. Provide prototypes for sys_getaddrinfo and sys_freeaddrinfo. * src/w32.c (init_winsock): Try loading getaddrinfo and freeaddrinfo from ws2_32.dll. (sys_getaddrinfo, sys_freeaddrinfo): New functions. * lib-src/pop.c [WINDOWSNT]: Include winsock2.h, not winsock.h, and also ws2tcpip.h. (getaddrinfo, freeaddrinfo) [WINDOWSNT]: Redirect to sys_getaddrinfo and sys_freeaddrinfo, respectively. (load_ws2, sys_getaddrinfo, sys_freeaddrinfo) [WINDOWSNT]: New functions.
* | Add accessors for `file-attributes'Lars Ingebrigtsen2016-03-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (File Attributes): Mention the accessors. * lisp/files.el (file-attribute-type) (file-attribute-link-number, file-attribute-user-id) (file-attribute-group-id, file-attribute-access-time) (file-attribute-modification-time) (file-attribute-change-time, file-attribute-size) (file-attribute-modes, file-attribute-inode-number) (file-attribute-device-number): New functions. * src/dired.c (Ffile_attributes): Mention the accessors (bug#22890).
* | Fix Bug#22814Michael Albinus2016-03-041-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/autorevert.el (global-auto-revert-mode): Do not set `auto-revert-use-notify' to nil. * etc/NEWS: Mention this. * etc/PROBLEMS: Remove problem Bug#22814. * src/kqueue.c: Include <sys/resource.h>. (Fkqueue_add_watch): Limit the number of used file descriptors. (Bug#22814) * test/lisp/filenotify-tests.el (file-notify--test-remote-enabled) (file-notify-test00-availability, file-notify-test01-add-watch) (file-notify-test02-events, file-notify-test06-many-events): Use #' read syntax for functions. (file-notify-test05-dir-validity) (file-notify-test06-many-events): Simplify directory creation. (file-notify-test09-sufficient-ressources): New test.
* | Merge from origin/emacs-25John Wiegley2016-03-032-8/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | d6f6b7d * etc/AUTHORS: Update the AUTHORS file 5cf7c39 authors.el updates a26f193 ; fix changelog entries fbc85c7 ; make change-history-commit 06da00c Fix Bug#22859 ab30bf5 ; * src/w32proc.c: Update the commentary to sys_select. 1481029 Fix reordering of bidi text in an isolate inside an override 60e0596 Document c-guess-basic-syntax in the CC Mode manual.
| * ; * src/w32proc.c: Update the commentary to sys_select.Eli Zaretskii2016-03-011-3/+4
| |
| * Fix reordering of bidi text in an isolate inside an overrideEli Zaretskii2016-03-011-5/+8
| | | | | | | | | | | | | | | | * src/bidi.c (bidi_resolve_explicit): Override the orig_type value of FSI with either LRI or RLI, as determined by the first strong directional character in the isolate. This prevents failure to isolate when the FSI...PDI text is inside a directional override. (Bug#22786)
* | Merge from origin/emacs-25John Wiegley2016-03-031-1/+4
|\ \ | |/ | | | | | | cb1e3da Also allow setting the paragraph direction to nil bbe8a89 Made the new OS X visible bell more visible.
| * Made the new OS X visible bell more visible.Anders Lindgren2016-02-291-1/+4
| | | | | | | | | | | | * src/nsterm.m: (EmacsBell:init:) Scaled up the visible bell "caution" image five times, as the image in its original size was hard to see.
* | Merge from origin/emacs-25John Wiegley2016-03-035-24/+31
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b13cab6 Add a eww command to toggle paragraph direction 4e46128 * nextstep/WISHLIST: Merge into etc/TODO and remove. 9e078e5 Fix char signedness issue in bidi code 064adf6 * lib-src/pop.c (socket_connection): Fix format string. 14060a9 Avoid inflooping in thing-at-point-looking-at 098d47b * lisp/emacs-lisp/derived.el (define-derived-mode): Revert indent change. b5db8e0 etc/PROBLEMS: Mention problems with using file descriptors ec10ef9 * lisp/apropos.el (apropos-variable): Doc fix. (Bug#22813). d2dd614 Remove unneeded workaround in xftfont.c 9b7593c ; * etc/NEWS: Reflect latest changes in saveplace. fde0cd1 * lisp/saveplace.el (save-place-local-mode): New minor mode 06a872b Fix redisplay on a TTY after 'make-frame' 95f5a43 Make double-click-1 work with unbalanced parens in CC Mode. Fixes bug#5560. 7d206fc Input method polish-slash should not use keyboard translation 8be32cf Fix an assertion 040e0d6 Fix 'toggle-save-place' 5244db2 * src/keyboard.c: Don't inadvertently set immediate_echo (bug#22581)
| * Fix char signedness issue in bidi codeAndreas Schwab2016-02-271-2/+2
| | | | | | | | | | * src/dispextern.h (struct bidi_t): Change type of resolved_level and isolate_level to signed char. (Bug#22830)
| * Remove unneeded workaround in xftfont.cEli Zaretskii2016-02-251-10/+0
| | | | | | | | | | | | * src/xftfont.c (xftfont_open): Remove "dirty workaround" for XftTextExtents8 behavior, as it is no longer needed. Suggested by Fangwen Yu <yynyygy@gmail.com>. (Bug#22383)
| * Fix redisplay on a TTY after 'make-frame'Eli Zaretskii2016-02-251-1/+8
| | | | | | | | | | * src/xdisp.c (clear_garbaged_frames): Don't clear/redraw a garbaged TTY frame if it is not the selected frame. (Bug#22794)
| * Fix an assertionChris Feng2016-02-251-1/+3
| | | | | | | | | | * src/dispnew.c (clear_glyph_matrix_rows): Test matrix->nrows == 0 (which implies start == 0) separately.
| * * src/keyboard.c: Don't inadvertently set immediate_echo (bug#22581)Stefan Monnier2016-02-241-10/+18
| | | | | | | | | | | | * src/keyboard.c (read_key_sequence): Don't inadvertently set immediate_echo when we don't want any echo-keystrokes. (echo_keystrokes_p): Move earlier.
* | Merge from origin/emacs-25John Wiegley2016-03-032-1/+4
|\ \ | |/ | | | | | | | | | | | | | | | | e6a3819 Update HISTORY section in readme for the NextStep interface. f67f1ed ; * doc/lispref/modes.texi (Font Lock Basics): Minor rewording. 7c81a0b Improve documentation of 'save-place-mode' cab3f0a Allocate glyph matrices for the initial frame e01c72f Fix white space in last checkin 370eb67 Make `insert-pair' always leave the cursor where documented b594393 etc/NEWS: Mention the new second parameter to `package-install'
| * Allocate glyph matrices for the initial frameChris Feng2016-02-242-1/+4
| | | | | | | | | | | | | | | | * src/frame.c (make_initial_frame): Allocate glyph matrices (Bug#22787). * src/dispnew.c (clear_glyph_matrix_rows): matrix->nrows can be 0. Copyright-paperwork-exempt: yes
* | Merge from origin/emacs-25John Wiegley2016-03-031-4/+4
|\ \ | |/ | | | | | | | | | | bd58c13 Improve documentation of focus-related hooks 00a4720 Further improve doc string of 'disable-point-adjustment' c582def Further adaptions in file-notify-tests.el for w32notify a1585e1 Don't bug out on localised dates in gnus-icalendar
| * Further improve doc string of 'disable-point-adjustment'Eli Zaretskii2016-02-231-4/+4
| | | | | | | | | | * src/keyboard.c (syms_of_keyboard): <disable-point-adjustment> <global-disable-point-adjustment>: Clarify doc strings. (Bug#22771)
* | Ensure TLS negotiation progressLars Ingebrigtsen2016-03-032-7/+32
| | | | | | | | | | | | | | | | * src/gnutls.h (GNUTLS_EMACS_HANDSHAKES_LIMIT): Increase the number of retries so that we try for about a minute. * src/process.c (wait_reading_process_output): Ensure progress for DNS resolution and TLS negotiation.
* | emacs-module.h slight simplificationPaul Eggert2016-03-022-8/+8
| | | | | | | | | | | | | | | | | | * src/emacs-module.c (emacs_init_function, emacs_subr): Move here ... * src/emacs-module.h: ... from here, as they don’t need to be public. (enum emacs_arity): Remove useless enum tag. The enum value is used in ptrdiff_t contexts. * src/emacs-module.c (CHECK_USER_PTR): Fix typo in previous change.
* | * src/emacs-module.c (CHECK_USER_PTR): Fix typo in previous change.Paul Eggert2016-03-021-1/+1
| |
* | emacs-module.c simplification and tuneupPaul Eggert2016-03-021-12/+16
| | | | | | | | | | | | | | | | | | | | * src/emacs-module.c (CHECK_USER_PTR): New function. (module_get_user_ptr, module_set_user_ptr) (module_get_user_finalizer, module_set_user_finalizer): Use it. (module_make_global_ref, module_copy_string_contents) (module_make_string, module_vec_set, module_vec_get): Omit unnecessary runtime tests. For example, vector sizes are always fixnums, so we don’t need to test that they are in fixnum range.
* | Use standard checks whenever possible.Philipp Stephani2016-03-021-102/+21
| | | | | | | | | | | | | | | | This is possible in all functions where we catch signals anyway. * emacs-module.c (module_make_global_ref, module_funcall) (module_copy_string_contents, module_make_string): Use xsignal0 and CHECK macros for argument checks.
* | Deterministic build improvementsPaul Eggert2016-03-024-16/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (BUILD_DETAILS): Rename from DETERMINISTIC_DUMP, and negate its sense. Use it via AC_SUBST, not AC_DEFINE, and have its value be either empty or --no-build-details. All uses changed. Change option to --disable-build-details. * doc/lispref/cmdargs.texi (Initial Options): Document --no-build-details. * doc/lispref/internals.texi (Building Emacs): * etc/NEWS: Document --disable-build-details. * doc/lispref/intro.texi (Version Info): Say that emacs-build-time can be nil. * lisp/erc/erc-compat.el (erc-emacs-build-time): Now nil if details are omitted. * lisp/erc/erc.el (erc-cmd-SV): * lisp/version.el (emacs-build-time): Now nil if no build details. (emacs-version): Output build time only if build details. * src/Makefile.in (BUILD_DETAILS): New macro. (temacs, bootstrap-emacs): Use it. * src/emacs.c (build_details): New var. (standard_args, main): Support --no-build-details. (Vdeterministic_dump): Remove; all uses replaced by !build_details. (syms_of_emacs): Set Vbuild_details to a boolean, not to a Lisp_Object. * src/lisp.h (build_details): New decl. * src/sysdep.c (init_system_name): When !build_details, set system-name to nil, not to "elided".
* | Remove build system name from deterministic dumpsPhilipp Stephani2016-03-022-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (DETERMINISTIC_DUMP): New configuration option. * lisp/version.el (emacs-build-time): Add a comment to make the build time deterministic if requested. (emacs-build-system): Make variable deterministic if requested. * src/emacs.c (main): Initialize `deterministic-dump' from the configuration option. (syms_of_emacs): New constant `deterministic-dump'. * src/sysdep.c (init_system_name): Use a constant if a deterministic dump is requested.
* | * src/syntax.c (syntax_multibyte): Omit unnecessary parens.Paul Eggert2016-03-011-1/+1
| |
* | Stop calling res_initPaul Eggert2016-02-292-17/+1
| | | | | | | | | | | | | | | | | | | | | | | | Emacs shouldn’t need to call res_init any more, now that nscd or equivalent is everywhere. On modern systems, calling res_init simply slows Emacs down. On ancient systems lacking nscd Emacs will still work well enough with this change; it’s just that it won’t respond to changes in /etc/resolv.conf. * configure.ac (HAVE_RES_INIT): Remove. Worry about -lresolv only when configured --with-hesiod. Hesiod is still used; see, e.g.: https://soylentnews.org/meta/article.pl?sid=15/07/13/0255214 * src/Makefile.in (LIBRESOLV): Remove. All uses removed.
* | * src/process.c (Fdelete_process): Simplify cast.Paul Eggert2016-02-291-2/+1
| |
* | Wait for async DNS to complete before freeing resourcesLars Ingebrigtsen2016-02-291-1/+17
| | | | | | | | | | * src/process.c (Fdelete_process): Wait for async DNS to complete before freeing the data structures it needs.
* | Fix TLS connections on MS-WindowsEli Zaretskii2016-02-281-7/+13
| | | | | | | | | | | | | | | | * src/w32.c (sys_write): If 'send' returns with WSAENOTCONN, and this is a non-blocking socket whose connection is in progress, set errno to EWOULDBLOCK, as expected by GnuTLS and other callers. Avoid overwriting the errno value from 'send' by 'ioctlsocket'. Suggested by Alain Schneble <a.s@realize.ch>. (Bug#22789)
* | Return the correct error values from gnutls.cLars Ingebrigtsen2016-02-281-4/+7
| | | | | | | | | | | | | | | | * src/gnutls.c (emacs_gnutls_read): Set errno to the value expected by process.c. (gnutls_try_handshake): Set gnutls_p to true earlier to avoid possible race condition with the process.c socket polling functions.