aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* On Windows default a frame's border width to zero (Bug#28873)Martin Rudalics2017-10-191-2/+3
| | | | | * src/w32fns.c (Fx_create_frame): Default `border-width' to zero as everywhere else, see Bug#28873.
* Fix the MSDOS build.Eli Zaretskii2017-10-188-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * msdos/sed1v2.inp (GETADDRINFO_A_LIBS, LIBLCMS2, XDBE_LIBS) (XDBE_FLAGS, HYBRID_MALLOC, LIBSYSTEMD_CFLAGS) (LIBSYSTEMD_LIBS): Edit to empty. (LIBRESOLV, DEPFLAGS, MKDEPDIR, YMF_PASS_LDFLAGS) (PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): Remove editing. Remove editing of lines that are no longer present in src/Makefile.in. * msdos/sed2v2.inp (NEED_MKTIME_INTERNAL) (NEED_MKTIME_WORKING): Define to 1. (HAVE_STRUCT_DIRENT_D_TYPE): Define to 1 for DJGPP >= 2.05. (HAVE_STRUCT_ATTRIBUTE_ALIGNED): Define to 1. Define PACKAGE_VERSION, not VERSION. (FLEXIBLE_ARRAY_MEMBER): Define to empty. (HAVE_DECL_*_UNLOCKED): Define to 0. (HAVE___BUILTIN_FRAME_ADDRESS): Define to 1. (PENDING_*): Don't define, as Gnulib no longer supports that. Instead, define _IOERR as it is in libc/file.h. * msdos/sed3v2.inp: Use $(CURDIR) instead of $(shell cd) to determine the current directory. (UPDATE_MANIFEST, UTILITIES): Don't edit. * msdos/sedlisp.inp (FIND_DELETE): Edit to "-delete". * msdos/sedlibmk.inp (AUTO_DEPEND): Define to yes. (HYBRID_MALLOC): Edit to empty. (am__cd): Don't edit. (../config.status): Replaces $(top_builddir)/config.status. Define OMIT_GNULIB_MODULE_foo = true for modules not built for MS-DOS. Convert GL_GENERATE_xxx_H_TRUE and GL_GENERATE_xxx_H_FALSE into values of GL_GENERATE_xxx_H. * msdos/mainmake.v2 (src): Use 'compile-one-process', and make the command line shorter to fit into 126-char limit of command.com. * config.bat: Generate src/deps/*.d files. Rename more files like djtar on plain DOS would. Don't rename src/dir.h: it is long gone. Edit lib/gnulib.mk.in using the same scripts as for lib/Makefile.in. * msdos/depfiles.bat: Create *.d files, not *.Po. * src/thread.c (Fmake_thread) [!THREADS_ENABLED]: Improve the error message. * src/thread.h [MSDOS]: Include <signal.h>. * src/sysselect.h (select) [MSDOS]: Undefine, to avoid compilation errors. * src/sysdep.c (block_interrupt_signal, restore_signal_mask): Expose to MSDOS build. * src/process.c (update_processes_for_thread_death) [!subprocess]: No-op implementation. [HAVE_SETRLIMIT]: Move inclusion of sys/resource.h and declaration of nofile_limit outside "#ifdef subprocesses", as it's needed for MSDOS. * src/msdos.c (faccessat): Declare fullname[]. * src/msdos.h (ENOTSUP): Define to be identical to ENOSYS. Include termhooks.h. * src/conf_post.h [WINDOWSNT]: Include ms-w32.h only on WINDOWSNT, not DOS_NT. * admin/admin.el (set-version): Set version on PACKAGE_VERSION.
* Fix line number display after 'widen'Eli Zaretskii2017-10-181-2/+4
| | | | | | * src/xdisp.c (maybe_produce_line_number): Don't use data cached by line-number-mode on the first redisplay after the buffer is widened. (Bug#28879)
* Remove resizable attribute on macOS undecorated frames (bug#28512)Alan Third2017-10-181-18/+4
| | | | | * src/nsterm.m (FRAME_DECORATED_FLAGS): Remove Cocoa specific #define. (initFrameFromEmacs): Remove Cocoa specific window style attributes.
* Improve format-time-string docPaul Eggert2017-10-171-5/+6
| | | | | | | | * doc/lispref/os.texi (Time Parsing): Fix some errors in the documentation for format-time-string. Document ^, #, %s, and %z with colons. Say that unrecognized sequences are output as-is. * src/editfns.c (Fformat_time_string): %S can stand for 60. Also mention unrecognized sequences.
* Improve documentation of 'line-number-display-width'Eli Zaretskii2017-10-171-1/+2
| | | | | | | * doc/lispref/display.texi (Size of Displayed Text): Document the additional 2 columns used for line-number display. * src/indent.c (Fline_number_display_width): Doc fix. (Bug#28248)
* Work around ImageMagick bug 825Paul Eggert2017-10-161-5/+12
| | | | | | | This should fix several bugs reported recently against Emacs (Bug#28518, Bug#28626, Bug#28632, Bug#28633, Bug#28770). * src/image.c (imagemagick_load_image): Do not call MagickWandTerminus.
* Fix 'line-number-display-width' in hscrolled windowsEli Zaretskii2017-10-161-0/+5
| | | | | | * src/indent.c (line_number_display_width): Make sure a line number is generated even when the first line of the window is completely hscrolled out of view. (Bug#28854)
* Fix regression in display of PPM imagesPaul Eggert2017-10-161-15/+25
| | | | | | | | Problem reported by Roland Winkler (Bug#28824#35). Based on a patch proposed by Andy Moreton (Bug#28824#38). * src/image.c (pbm_scan_index): New function. (pbm_load): Use it to decode raw data correctly when its top bit is set.
* Avoid compilation warnings in optimized buildsEli Zaretskii2017-10-155-7/+7
| | | | | | | | | | * src/process.c (Fmake_network_process): * src/image.c (xbm_scan, gif_load): * src/fileio.c (Frename_file): * src/data.c (Fmake_local_variable): * src/buffer.c (fix_start_end_in_overlays): * lib-src/etags.c (process_file_name): Mark variables with UNINIT to avoid compiler warnings in optimized builds.
* ; * src/composite.c (Fclear_composition_cache): Fix last change.Eli Zaretskii2017-10-151-1/+1
|
* Improve customization of arabic-shaper-ZWNJ-handling.K. Handa2017-10-151-0/+15
| | | | | | | | | Make the effect of customizing arabic-shaper-ZWNJ-handling appear immediately. * lisp/language/misc-lang.el (arabic-shaper-ZWNJ-handling): Add :set value. * src/composite.c (Fclear_composition_cache): New function. (syms_of_composite): Defsubr it.
* Make sure thread stack is properly aligned on MS-WindowsEli Zaretskii2017-10-142-10/+12
| | | | | | | * src/systhread.c: Include w32term.h instead of windows.h. (w32_beginthread_wrapper): Add ALIGN_STACK attribute, to ensure the thread's stack is correctly aligned. * src/w32term.h (ALIGN_STACK): Update commentary.
* Do not under-align pseudovectorsPaul Eggert2017-10-141-3/+7
| | | | | | | | | Problem reported by Fabrice Popineau in: https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00357.html Also see diagnosis by Eli Zaretskii in: https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00476.html * src/alloc.c (vector_alignment): Now a multiple of alignof (max_align_t).
* gnutls_mac_get_nonce_size has been added in gnutls 3.3Andreas Schwab2017-10-131-8/+24
| | | | | | | | | * src/gnutls.c (HAVE_GNUTLS_MAC_GET_NONCE_SIZE) [GNUTLS_VERSION_NUMBER >= 0x030300]: Define. (gnutls_mac_get_nonce_size): Depend on HAVE_GNUTLS_MAC_GET_NONCE_SIZE. (Fgnutls_macs): Use 0 for :mac-algorithm-noncesize if !HAVE_GNUTLS_MAC_GET_NONCE_SIZE.
* Fix this-command-keys for "M-x foo" commandsEli Zaretskii2017-10-121-2/+13
| | | | | * src/keyboard.c (Fset__this_command_keys): Don't assume KEYS is a unibyte string. (Bug#28798)
* Let rename-file rename dirs across filesystemsPaul Eggert2017-10-121-2/+12
| | | | | | | | | Problem diagnosed by Andreas Schwab (Bug#28792#65). This fixes a bug that I introduced in 2017-09-10T22:39:24@eggert@cs.ucla.edu "Fix race with rename-file etc. with dir NEWNAME". * src/fileio.c (Frename_file): Copy a source directory across file system boundaries even if its name does not end in slash.
* Make frame-list-z-order on NS match Windows behaviour (bug#28788)Alan Third2017-10-111-9/+2
| | | | | * src/nsfns.m (Fns_frame_list_z_order): If terminal isn't a frame, ignore it rather than returning nil.
* Fix docstring style for 'functionp'Radon Rosborough2017-10-111-1/+1
| | | | | * src/eval.c (functionp): Make docstring start with verb. (Bug#28781)
* ; Typo fixes, mostly repeated wordsPaul Eggert2017-10-0916-16/+16
|
* ; * src/lread.c (syms_of_lread) <module-file-suffix>: Fix typoAlexander Gramiak2017-10-091-1/+1
|
* Fix PWD check on DOS_NTPaul Eggert2017-10-091-1/+1
| | | | | * src/sysdep.c (get_current_dir_name_or_unreachable): Do not consider a file name like "a:b" to be absolute on DOS_NT.
* Fix unlikely overflows with wd lengthPaul Eggert2017-10-091-18/+39
| | | | | | * src/sysdep.c (get_current_dir_name_or_unreachable): Avoid integer overflow if working directory name is absurdly long. When allocating memory for getcwd, do not exceed MAXPATHLEN.
* Avoid assertion violations when line numbers are displayedEli Zaretskii2017-10-091-0/+1
| | | | | | | * src/xdisp.c (redisplay_window): Clear the window's desired glyph matrix before calling try_window with the same starting point. This avoids assertion violations when switching from a buffer without line numbers to a buffer with line numbers. (Bug28710)
* Improve test for unreachable dirsPaul Eggert2017-10-071-13/+26
| | | | | | | | | * src/sysdep.c (get_current_dir_name_or_unreachable): New function, with most of the old contents of emacs_get_current_dir_name. (emacs_get_current_dir_name): Use it. Use a simpler test for unreachable directory strings, and also apply it to getcwd etc. (Bug#27871)
* * src/xsmfns.c (x_session_initialize): Fix memory leak.Paul Eggert2017-10-071-1/+3
|
* Fix crash when closing fullscreen frame on macOS (bug#28661)Alan Third2017-10-071-0/+3
| | | | | * src/nsterm.m (EmacsView::windowWillResize): Return new frame size unmodified if the frame isn't live.
* * src/gnutls.c (syms_of_gnutls): Remove duplicated call to DEFSYM.Piotr Trojanek2017-10-071-1/+0
| | | | Copyright-paperwork-exempt: yes.
* Fix glitches in displaying TTY menusEli Zaretskii2017-10-071-8/+14
| | | | | | | | | | * src/dispnew.c (update_frame_line): Accept an additional argument UPDATING_MENU_P; if non-zero, home the cursor before updating a frame's line. All callers changed. (update_frame_1): Accept an additional argument UPDATING_MENU_P, and pass it to update_frame_line. All callers changed. (update_frame_with_menu): Call update_frame_1 with last argument non-zero. (Bug#17497)
* Fix bug in recent styled_format changePaul Eggert2017-10-061-3/+11
| | | | | | | | | Problem reported by Kaushal Modi in: http://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00141.html * src/editfns.c (styled_format): Fix bug where USE_SAFE_ALLOCA was not always followed by SAFE_FREE. This bug was introduced in my patch 2017-09-26T23:31:57Z!eggert@cs.ucla.edu entitled "Avoid some unnecessary copying in Fformat etc."
* * src/process.c (syms_of_process): Remove duplicated call to DEFSYM.Piotr Trojanek2017-10-061-1/+0
| | | | | | Fixes: Bug#28721 Copyright-paperwork-exempt: yes.
* Fix bug with unmounted directory on GNU/LinuxPaul Eggert2017-10-051-1/+12
| | | | | * src/sysdep.c (emacs_get_current_dir_name): Do not use get_current_dir_name result unless it is absolute (Bug#27871).
* Fix search for ~/.Xdefaults-HOSTNAMEJohan Bockgård2017-10-041-2/+5
| | | | | * src/xrdb.c (get_environ_db): Fix typo when handling ~/.Xdefaults-HOSTNAME (Bug#28708).
* Speed up (format "%s" STRING) and the likePaul Eggert2017-10-045-24/+16
| | | | | | | | | | | | | | | | | | | | | | Although the Lisp manual said that ‘format’ returns a newly-allocated string, this was not true for a few cases like (format "%s" ""), and fixing the documentation to allow reuse of arguments lets us improve performance in common cases like (format "foo") and (format "%s" "foo") (Bug#28625). * doc/lispref/strings.texi (Formatting Strings): * etc/NEWS: Say that the result of ‘format’ might not be newly allocated. * src/callint.c (Fcall_interactively): * src/dbusbind.c (XD_OBJECT_TO_STRING): * src/editfns.c (Fmessage, Fmessage_box): * src/xdisp.c (vadd_to_log, Ftrace_to_stderr): Just use Fformat or Fformat_message, as that’s simpler and no longer makes unnecessary copies. * src/editfns.c (styled_format): Remove last argument, as it is no longer needed: all callers now want it to behave as if it were true. All remaining callers changed. Make this function static again. Simplify the function now that we no longer need to worry about whether the optimization is allowed.
* Avoid crashes on C-g when several threads wait for inputEli Zaretskii2017-10-044-31/+45
| | | | | | | | | | | | | | | | | * src/thread.h (m_getcjmp): New member of 'struct thread_state'. (getcjmp): Define to current thread's 'm_getcjmp'. * src/thread.c (maybe_reacquire_global_lock): Switch to main thread, since this is called from a SIGINT handler, which always runs in the context of the main thread. * src/lisp.h (sys_jmp_buf, sys_setjmp, sys_longjmp): Move the definitions before thread.h is included, as thread.h now uses sys_jmp_buf. * src/keyboard.c (getcjmp): Remove declaration. (read_char): Don't call maybe_reacquire_global_lock here. (handle_interrupt): Call maybe_reacquire_global_lock here, if invoked from the SIGINT handler, to make sure quit_throw_to_read_char runs with main thread's Lisp bindings and uses the main thread's jmp_buf buffer. (Bug#28630)
* Work around deprecation of gtk_style_context_get_background_colorPhilipp Stephani2017-10-031-5/+12
| | | | | * src/gtkutil.c (xg_check_special_colors): Replace call to gtk_style_context_get_background_color with its definition.
* Fix the --without-x buildEli Zaretskii2017-10-021-0/+2
| | | | | | * src/frame.c (Ficonify_frame) [HAVE_WINDOW_SYSTEM]: Use frame_parent only in GUI builds to avoid compilation errors in --without-x builds. (Bug#28611)
* Prefer HTTPS to HTTP for gnu.orgPaul Eggert2017-10-0117-180/+180
| | | | | | | | | This fixes some URLs I omitted from my previous pass, notably those in lists.gnu.org. Although lists.gnu.org does not yet support TLS 1.1, TLS 1.0 is better than nothing. * lisp/erc/erc.el (erc-official-location): * lisp/mail/emacsbug.el (report-emacs-bug): Use https:, not http:.
* Merge from GnulibPaul Eggert2017-10-011-4/+4
| | | | | | | | | | | | This is mostly to change http: to https: in licenses. * COPYING, build-aux/config.guess, build-aux/config.sub: * doc/emacs/doclicense.texi, doc/emacs/gpl.texi: * doc/lispintro/doclicense.texi, doc/lispref/doclicense.texi: * doc/lispref/gpl.texi, doc/misc/doclicense.texi: * doc/misc/gpl.texi, etc/COPYING, leim/COPYING: * lib-src/COPYING, lib/COPYING, lisp/COPYING, lwlib/COPYING: * msdos/COPYING, nt/COPYING, src/COPYING: Copy from Gnulib.
* Make the value nil in text-quoting-style mean what it does in Emacs 25.Alan Mackenzie2017-10-011-20/+16
| | | | | | | | | | | | | | | | | | | | This is a partial reversion of yesterday's commit by the same author, which changed the meaning of nil and introduced the new value t. * src/doc.c (text_quoting_style, text-quoting-style) (internal--text-quoting-flag): Revert yesterday's changes. * lisp/cus-start.el: (top level): Amend the entry for text-quoting-style. * etc/NEWS: Amend the entry for text-quoting-style. * doc/lispref/control.texi (Signalling Errors) * doc/lispref/display.texi (Displaying Messages) * doc/lispref/strings.texi (Formatting Strings): Bind text-quoting-style to grave rather than nil to inhibit translation of quotes. * doc/lispref/help.texi (Keys in Documentation): Revert the description of the proposed new default, t.
* Make text-quoting-style customizable. Introduce t and new meaning for nil.Alan Mackenzie2017-10-011-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | A value of nil for text-quoting-style now means "no translation". t means "Use curved quotes if displayable". * src/doc.c (text-quoting-style (function)): modify for new semantics. (text-quoting-style (variable)): Amend the doc string, set the default value to t. * lisp/cus-start.el: (top level): Create a customize entry for text-quoting-style in group display. * etc/NEWS: Amend the entry for text-quoting-style. * doc/emacs/display.texi (Text Display): Describe the translation of ASCII quotes to curved quotes, and how to influence or inhibit it. * doc/lispref/control.texi (Signalling Errors) * doc/lispref/display.texi (Displaying Messages) * doc/lispref/strings.texi (Formatting Strings): Describe binding text-quoting-style to nil to inhibit unwanted quote translation. * doc/lispref/help.texi (Keys in Documentation): Change text-quoting-style from a variable to a user option. Describe its changed set of values. State that it can be customized freely.
* Improve handling of iconification of child frames (Bug#28611)Martin Rudalics2017-10-011-1/+41
| | | | | | | | | | * src/frame.c (Ficonify_frame): Handle `iconify-child-frame' option. (syms_of_frame): New symbols Qiconify_top_level and Qmake_invisible. (iconify_child_frame): New option. * lisp/cus-start.el (iconify-child-frame): Add customization properties. * doc/lispref/frames.texi (Child Frames): Describe new option `iconify-child-frame'. Don't index "top-level frame" twice.
* Improve documentation of 'copy-sequence'Eli Zaretskii2017-09-301-1/+3
| | | | | | * src/fns.c (Fcopy_sequence): * doc/lispref/sequences.texi (Sequence Functions): Mention the exception when copying an empty sequence. (Bug#28627)
* Add CAM02 JCh and CAM02-UCS J'a'b' conversionsMark Oteiza2017-09-301-34/+269
| | | | | | | | | | | | * src/lcms.c (rad2deg, parse_jch_list, parse_jab_list, xyz_to_jch): (jch_to_xyz, jch_to_jab, jab_to_jch): New functions. (lcms-jch->xyz, lcms-jch->xyz, lcms-jch->jab, lcms-jab->jch): New Lisp functions. (lcms-cam02-ucs): Refactor. (syms_of_lcms2): Declare new functions. * test/src/lcms-tests.el (lcms-roundtrip, lcms-ciecam02-gold): (lcms-jmh->cam02-ucs-silver): New tests. * etc/NEWS: Mention new functions.
* Prefer HTTPS to HTTP for gnu.orgPaul Eggert2017-09-2942-42/+42
| | | | | This catches some URLs I missed in my previous scan, or perhaps were added after the scan.
* Wait for frame visibility with timeout in w32term tooNoam Postavsky2017-09-291-11/+20
| | | | | | | | * src/w32term.c (syms_of_w32term) [x-wait-for-event-timeout]: New variable. (x_make_frame_visible): Wait for frame to become visible according to its value. (input_signal_count): Remove.
* Bring back the busy wait after x_make_frame_visible (Bug#25521)Noam Postavsky2017-09-291-6/+34
| | | | | | | | | | But wait specfically for a MapNotify event, and only for a configurable amount of time. * src/xterm.c (syms_of_xterm) [x-wait-for-event-timeout]: New variable. (x_wait_for_event): Use it instead of hardcoding the wait to 0.1s. (x_make_frame_visible): Call x_wait_for_event at the end. * etc/NEWS: Announce x_wait_for_event.
* ; * src/gtkutil.c (xg_check_special_colors): Add another GTK+ FIXME.Philipp Stephani2017-09-291-0/+4
|
* Revert "Fix build on macOS (bug#28571)"Alan Third2017-09-281-9/+0
| | | | | | This reverts commit fec63089d53d2196b0348086aeed70277fbc02c0. Prematurely pushed.
* Fix build on macOS (bug#28571)Alan Third2017-09-281-0/+9
| | | | | * src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT, HAVE_UTIMENSAT) [DARWIN_OS]: Undefine.