summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Change vectorlike from struct to unionPaul Eggert2017-11-1312-33/+33
| | | | | | | * src/lisp.h (vectorlike_headed): Change from struct to union. All uses changed. Since it has only one member, this does not change semantics. This is designed to simplify future changes needed to fix bugs like Bug#29040. All uses changed.
* Fix Bug#29225Michael Albinus2017-11-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fileio.c (Fset_file_acl): Report error only when acl_errno_valid returns true. (Bug#29225) * test/lisp/net/tramp-tests.el (tramp-test24-file-acl) (tramp-test25-file-selinux): New tests. (tramp-test26-file-name-completion, tramp-test27-load) (tramp-test28-process-file, tramp-test29-start-file-process) (tramp-test30-interrupt-process, tramp-test31-shell-command) (tramp-test32-environment-variables) (tramp-test32-environment-variables-and-port-numbers) (tramp-test33-explicit-shell-file-name) (tramp-test34-vc-registered) (tramp-test35-make-auto-save-file-name) (tramp-test36-find-backup-file-name) (tramp-test37-make-nearby-temp-file) (tramp-test38-special-characters) (tramp-test38-special-characters-with-stat) (tramp-test38-special-characters-with-perl) (tramp-test38-special-characters-with-ls, tramp-test39-utf8) (tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl) (tramp-test39-utf8-with-ls, tramp-test40-file-system-info) (tramp-test41-asynchronous-requests) (tramp-test42-recursive-load, tramp-test43-remote-load-path) (tramp-test44-delay-load, tramp-test45-unload): Rename.
* Pacify GCC when configured --with-x-toolkit=noPaul Eggert2017-11-111-1/+4
| | | | | | | | Without these changes, Emacs does not build on Fedora 26 x86-64 when configured --with-x-toolkit=no --enable-gcc-warnings. * oldXMenu/Activate.c (XMenuActivate): Add FALLTHROUGH. * src/xterm.c (x_dispatch_event): Define only if USE_X_TOOLKIT || USE_MOTIF || USE_GTK.
* Fix comparisons with tip_frame in GTK buildsEli Zaretskii2017-11-113-4/+20
| | | | | | | * src/xterm.c (x_update_begin, x_new_font): * src/xfns.c (Fx_display_monitor_attributes_list): * src/frame.c (Fframe_list) [USE_GTK]: Don't consider tip_frame a tooltip frame unless its 'tooltip' parameter is non-nil. (Bug#26747)
* Fix off-by-1 bug in --enable-checking=stringbytesPaul Eggert2017-11-101-1/+1
| | | | | | | | | | | | Evidently nobody builds Emacs with --enable-checking=all, which is no surprise as it is so slow as to be unusable nowadays. Perhaps we should remove the slowest checks, or move them into another category, or speed them up, or something. * src/alloc.c (SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Fix off-by-one error in size calculation, which caused a failure when --enable-checking=stringbytes was used. I introduced this bug in 2016-09-08T01:08:45!eggert@cs.ucla.edu "Port flexible array members to GCC + valgrind".
* Fix display of line numbers in GTK buildsEli Zaretskii2017-11-102-1/+14
| | | | | | | | | * src/xdisp.c (should_produce_line_number) [USE_GTK]: Make sure tip_frame is indeed a tooltip frame, before disabling line numbers on it. (Bug#27647) * src/dispextern.h (tip_frame): Add commentary describing the kludgey usage of this variable in GTK builds.
* Fix redisplay of overlay-arrows on GUI framesEli Zaretskii2017-11-091-3/+9
| | | | | | * src/xdisp.c (try_window_reusing_current_matrix) (try_cursor_movement): Disallow these optimizations if the buffer has overlay arrow(s) shown on the fringe(s). (Bug#29198)
* Use GCALIGNED properly for GCCPaul Eggert2017-11-083-9/+13
| | | | | | | | | | | | | Apparently GCC requires that ‘__attribute__ ((aligned (8)))’ must immediately follow the ‘struct’ keyword when aligning a structure. The attribute silently does not work if it follows a tag after the ‘struct’ keyword. Who knew? Anyway, this patch is designed to fix a SIGSEGV problem reported by John Mastro (Bug#29183). * lib-src/make-docfile.c (close_emacs_globals): * src/buffer.c (buffer_defaults, buffer_local_symbols): * src/lisp.h (DEFUN): * src/thread.c (main_thread): Put 'GCALIGNED' immediately after 'struct'.
* ; Minor comment copyedit in window.cEli Zaretskii2017-11-071-1/+1
| | | | | * src/window.c (Fset_window_configuration): Don't use non-ASCII quotes in comments.
* Fix last change in hscroll_window_treeEli Zaretskii2017-11-051-3/+8
| | | | | | * src/xdisp.c (hscroll_window_tree): When hscroll suspension is being disabled, set the frame's garbaged flag less eagerly. (Bug#29002)
* Return non-nil from gnutls-available-p under GnuTLS 2.xEli Zaretskii2017-11-051-0/+2
| | | | | | | | | | | * doc/misc/emacs-gnutls.texi (Help For Users): Update the documentation of 'gnutls-available-p'. * etc/NEWS (GnuTLS): Mention the change in the value returned by 'gnutls-available-p'. * src/gnutls.c (Fgnutls_available_p): Return non-nil when GnuTLS 2.x is available. (Bug#29147)
* Use hybrid malloc for FreeBSD (Bug#28308)Noam Postavsky2017-11-041-5/+6
| | | | | | | | FreeBSD aarch64 does not provide sbrk, so gmalloc cannot be used; when using system malloc dumping does not work correctly (allocated data is invalid after dumping). * configure.ac: Set hybrid_malloc for freebsd. * src/gmalloc.c (gdefault_morecore) [!HAVE_SBRK]: Don't call sbrk.
* Improve documentation of 'window-scroll-functions'Eli Zaretskii2017-11-041-0/+3
| | | | | | | * doc/lispref/windows.texi (Window Hooks): Clarify the values of arguments of 'window-scroll-functions' functions. * src/xdisp.c (syms_of_xdisp) <window-scroll-functions>: Doc fix.
* Fix doc string of 'window-configuration-change-hook'Eli Zaretskii2017-11-041-2/+2
| | | | | * src/window.c (syms_of_window) <window-configuration-change-hook>: Doc fix. (Bug#29049)
* Fix hscroll suspension after cursor motionEli Zaretskii2017-11-041-2/+9
| | | | | | * src/xdisp.c (hscroll_window_tree): Trigger a thorough redisplay of the window when temporary suspension of hscrolling is disabled. (Bug#29002)
* Change GCALIGNMENT back to an integer literalPaul Eggert2017-11-031-1/+7
| | | | | | | * src/lisp.h (GCALIGNMENT): Change it back to a macro that expands to a literal integer constant, for older GCC. I had mistakenly thought that only MSVC had the problem. Problem repored by Eli Zaretskii (Bug#29040#69).
* * src/lisp.h (GCALIGNED): Clarify comment (Bug#29040).Paul Eggert2017-11-021-2/+3
|
* Fix mouse-scrollbar offset on GNUstep and old macOS (bug#29053)Alan Third2017-11-021-2/+19
| | | | | | * src/nsterm.m (EmacsScroller::mouseDown, EmacsScroller::mouseDragged): Take scroller buttons into account when calculating scroller knob position.
* Fix alignment portability problemsPaul Eggert2017-11-024-22/+17
| | | | | | | | | | | | | | | | Do not assume that the natural alignment of Lisp objects is a multiple of GCALIGNMENT. This improves on the portability of the recent fix for Bug#29040. * lib-src/make-docfile.c (close_emacs_globals): * src/buffer.c (buffer_defaults, buffer_local_symbols): * src/lisp.h (DEFUN): * src/thread.c (main_thread): Use GCALIGNED, not alignas (GCALIGNMENT). * src/alloc.c (COMMON_MULTIPLE): Move back here from lisp.h, since it is no longer used elsewhere. * src/lisp.h (GCALIGNMENT): No longer a macro, since we need not worry about MSVC. Omit no-longer-needed consistency check. * src/thread.c (THREAD_ALIGNMENT): Remove.
* ; * src/alloc.c (sweep_symbols): Fix last change.Eli Zaretskii2017-11-021-1/+1
|
* * src/alloc.c (sweep_symbols): Tweak last changeStefan Monnier2017-11-021-4/+10
| | | | Avoid the double-free without the extra check. Add an explanatory comment.
* ; Spelling fixesPaul Eggert2017-11-011-2/+2
|
* Avoid wrong value from file-attributes on Linux kernel before 3.6Andreas Schwab2017-11-011-1/+8
| | | | | * dired.c (file_attributes): Handle unsupported fstat on O_PATH descriptors. (bug#29070)
* ; Doc fixesCharles A. Roelli2017-10-311-1/+1
| | | | | | | | | * lisp/progmodes/xref.el (xref-file-location) (xref-backend-apropos): * etc/NEWS (Lisp Changes in Emacs 26.1): * doc/emacs/msdos.texi (Windows Keyboard): * lisp/vc/vc.el (vc-print-branch-log): * src/buffer.c (word-wrap): Doc additions and fixes.
* Avoid duplicate calls to xfree for the same pointerEli Zaretskii2017-10-311-1/+3
| | | | | * src/alloc.c (sweep_symbols): Avoid freeing an already freed pointer to a symbol's buffer-local value. (Bug#29066)
* Fix doc and doc-strings for minibuffer window related functions (Bug#28978)Martin Rudalics2017-10-301-1/+1
| | | | | | | | | | | These fixes were suggested by Drew Adams. * src/window.c (Fminibuffer_selected_window): Disambiguate doc-string. * doc/lispref/minibuf.texi (Intro to Minibuffers) (Minibuffer Windows, Recursive Mini, Minibuffer Misc): Avoid the term "currently active minibuffer window". Disambiguate documentation of `minibuffer-selected-window'.
* Fix minibuffer window related docs and strings (Bug#28978)Martin Rudalics2017-10-292-11/+6
| | | | | | | | | | | | | * src/frame.c (Vdefault_minibuffer_frame): Fix doc-string. * src/window.c (Fminibuffer_selected_window): Fix doc-string. * doc/lispref/frames.texi (Buffer Parameters): Rewrite description of `minibuffer' parameter. * doc/lispref/minibuf.texi (Minibuffer Windows): Reorder entries and partly rewrite section. (Minibuffer Misc): Clarify description of `minibuffer-selected-window'. * etc/NEWS: Mention new semantics of 'minibuffer' frame parameter.
* Avoid segfaults in 64-bit Windows buildsEli Zaretskii2017-10-283-7/+9
| | | | | | * src/lisp.h (COMMON_MULTIPLE): Move here from alloc.c. * src/thread.c (THREAD_ALIGNMENT): New macro. (main_thread): Use THREAD_ALIGNMENT to align propertly. (Bug#29040)
* Fix conversion of pixel coordinates to buffer positionEli Zaretskii2017-10-281-0/+23
| | | | | * src/dispnew.c (buffer_posn_from_coords): Adapt to auto-hscroll-mode == current-line.
* Fix some doc typosGlenn Morris2017-10-271-1/+1
| | | | | | | | | | | * lisp/calendar/todo-mode.el (todo-next-item) (todo-previous-item, todo-toggle-item-header): * lisp/window.el (move-to-window-group-line): * src/editfns.c (Fformat): * test/lisp/calendar/todo-mode-tests.el (todo-test-move-item05): Fix doc typos. ; And in some comments.
* Fix startup display on CygwinKen Brown2017-10-271-0/+16
| | | | | * src/xterm.c (x_make_frame_visible) [CYGWIN]: Restore code that forces input to be read. (Bug#24091)
* * src/fileio.c (Fset_default_file_modes): Fix typo in doc string.Eli Zaretskii2017-10-271-1/+1
|
* Improve documentation of set-default-file-modesEli Zaretskii2017-10-271-1/+9
| | | | | | | | * src/fileio.c (Fset_default_file_modes): Doc fix. (Bug#28875) * doc/lispref/files.texi (Changing Files): Clarify how the bits in the argument of set-default-file-modes are used for setting file permissions.
* Port thread.c to OpenBSD ARMPaul Eggert2017-10-261-1/+1
| | | | | Problem reported by Jeremie Courreges-Anglas (Bug#29005). * src/thread.c (main_thread): Align to GCALIGNMENT.
* Fix non-native fullscreen on NS (bug#28872)Alan Third2017-10-251-6/+12
| | | | | | * src/nsterm.m (EmacsView::updateFrameSize): Handle case where FRAME_TOOLBAR_HEIGHT returns a negative number. Force WM to set size of frame.
* Port to QNXPaul Eggert2017-10-241-6/+9
| | | | | | | | | | | | Simplified version of a patch proposed by Elad Lahav in: https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00716.html which is based on a previous patch I proposed in: https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00707.html * configure.ac (opsys, CFLAGS, LIBS_SYSTEM, hybrid_malloc) (system_alloc, FIRST_PTY_LETTER, CYGWIN_OBJ): Set appropriately for QNX. * src/unexelf.c [__QNX__]: Include <sys/elf.h> instead of <elf.h>. (unexec): Check for sbrk failure, and fall back on old BSS end.
* Tweak Fdocumentation's error for an undefined functionGlenn Morris2017-10-201-0/+2
| | | | | | | | * src/doc.c (Fdocumentation): Restore the pre-25 behavior of signalling a void-function error for an undefined function. This seems cleaner than Emacs 25's "invalid-function: nil" error, which was (probably) an unintended consequence of changes to Findirect_function.
* Make :align-to account for display-line-numbersEli Zaretskii2017-10-202-10/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes also update the various bundled packages to use new feature, and better support customizations of the line-number face. * src/xdisp.c (calc_pixel_width_or_height): Improve commentary. Make :align-to count from the end of the line-number display when the offset or the width form reference that of the text area. (Bug#28855) * src/indent.c (Fline_number_display_width): Implement support for the PIXELWISE argument being 'columns'. Update the doc string. (syms_of_indent): New symbol 'columns'. * lisp/ruler-mode.el (ruler-mode-window-col, ruler-mode-ruler): Call line-number-display-width with last argument 'columns'. * lisp/proced.el (proced-header-line): Call line-number-display-width with 2nd arg 'columns', which also fixes a problem when display-line-numbers is nil. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-line-number-width): Call line-number-display-width with 2nd arg 'columns. (tabulated-list-entry-lnum-width): Remove unneeded defvar. (tabulated-list-print, tabulated-list-print-entry): No need to account for the value of tabulated-list-entry-lnum-width. (tabulated-list--current-lnum-width): New defvar. (tabulated-list-watch-line-number-width): New function. (tabulated-list-mode): Bind tabulated-list--current-lnum-width locally, and set up tabulated-list-watch-line-number-width as pre-redisplay-functions hook. * doc/lispref/display.texi (Size of Displayed Text): Document the 'columns' value of the PIXELWISE argument. (Pixel Specification): Update and improve the documentation of the supported forms.
* 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.