aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Augment Flymake API for third-party extensionsscratch/flymake-augment-apiJoão Távora2017-10-192-39/+78
| | | | | | | | | | | | | | | | | | | | | | | See https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00619.html * doc/misc/flymake.texi (Flymake error types): Rewrite example. (Flymake utility functions): Augment with new API. * lisp/progmodes/flymake.el (flymake-diagnostics): New function. (flymake--diag-accessor): New helper macro. (flymake-diagnostic-buffer, flymake-diagnostic-text) (flymake-diagnostic-beg, flymake-diagnostic-end) (flymake-diagnostic-backend): Accessors for diagnostic objects. (flymake--overlays): Use flymake-diagnostic property. (flymake--highlight-line): Simplify. Only set flymake-diagnostic property. (flymake--handle-report, flymake-goto-next-error): Use flymake-diagnostic property. (flymake-show-diagnostic): Use diagnostic object. (flymake--diagnostics-buffer-entries): Use flymake-diagnostics.
* 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.
* Spelling fixesPaul Eggert2017-10-185-8/+8
| | | | | | * lisp/cedet/semantic/analyze/refs.el: (semantic-analyze-proto-impl-toggle): Fix recently-introduced misspelling of pop-to-buffer-same-window.
* Use pop-to-buffer-same-window instead of switch-to-bufferBastian Beischer2017-10-195-6/+6
| | | | | | | | | | | | | | | | | | | | | * lisp/cedet/semantic/decorate/include.el (semantic-decoration-include-visit): Use pop-to-buffer-same-window instead of switch-to-buffer (bug#28645). * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-proto-impl-toggle): Same. * lisp/cedet/semantic/senator.el (senator-go-to-up-reference): Same. * lisp/cedet/semantic/mru-bookmark.el (semantic-mrub-visit): Same. * lisp/cedet/semantic/complete.el (semantic-complete-jump): Same. Copyright-paperwork-exempt: yes
* Fix the MSDOS build.Eli Zaretskii2017-10-1816-91/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Fix handling of `border-width' in `frameset--restore-frame' (Bug#28873)Martin Rudalics2017-10-181-0/+6
| | | | | | * lisp/frameset.el (frameset--restore-frame): Don't process `border-width' parameter via ‘modify-frame-parameters’ (Bug#28873).
* Mention how to send CC to > 1 address in a bug reportTino Calancha2017-10-181-1/+4
| | | | | * admin/notes/bugtracker (* More detailed information): mention how to CC to more than 1 address (Bug#28833).
* Improve format-time-string docPaul Eggert2017-10-172-15/+33
| | | | | | | | * 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-172-3/+5
| | | | | | | * 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)
* Implement vc-default-dir-extra-headers for vc-rcsİ. Göktuğ Kayaalp2017-10-171-0/+2
| | | | | | Add a do-nothing implementation for vc-rcs to suppress the message which the default function adds to the vc-dir buffer (Bug#28570). * lisp/vc/vc-rcs.el (vc-rcs-dir-extra-headers): New function.
* In NEWS give advice on use of `switch-to-buffer' (Bug#28645)Martin Rudalics2017-10-171-0/+3
| | | | | * etc/NEWS: Mention that applications should prefer `pop-to-buffer-same-window' to `switch-to-buffer'. (Bug#28645)
* Dont update primary selection with winner-undoTino Calancha2017-10-171-6/+9
| | | | | | | | * lisp/winner.el (winner-set): Dont update primary selection when select-enable-primary is non-nil (Bug#28631). Co-authored-by: Noam Postavsky <npostavs@gmail.com>
* 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.
* Document rectangle-preview option more (Bug#27974)Noam Postavsky2017-10-162-0/+6
| | | | | * lisp/rect.el (string-rectangle): * etc/NEWS.25: Mention `rectangle-preview'.
* Do not reject https://gnu.org in commit messagesPaul Eggert2017-10-161-7/+20
| | | | | | * build-aux/git-hooks/commit-msg: Do not reject commit messages containing http: or ftp: URLs to gnu.org or fsf.org. Instead, rewrite the messages to use https: URLs.
* Fix Edebug spec for cl-defun (bug#24255)Gemini Lasswell2017-10-162-25/+23
| | | | | | | | * lisp/emacs-lisp/cl-macs.el: Modify the Edebug spec for `cl-lambda-list' to support destructuring argument lists. (cl-defun, cl-defmacro): Fix spelling errors in docstrings. * lisp/textmodes/rst.el: Remove alternate version of Edebug specs for `cl-lambda-list' and `cl-type-spec'.
* Fix errors in kmacro.el post-command-hookEli Zaretskii2017-10-162-2/+1
| | | | | | | * lisp/kmacro.el (kmacro-step-edit-active): Initialize to nil to avoid 'void-variable' errors. (Bug#28818) * test/lisp/kmacro-tests.el (kmacro-tests-step-edit-cleans-up-hook): Now succeeds. (Bug#18708)
* Fix range-error in image-dired.elEli Zaretskii2017-10-161-1/+4
| | | | | * lisp/image-dired.el (image-dired-create-thumb-1): Avoid overflowing an Emacs integer on 32-bit hosts. (Bug#28809)
* 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 error in tramp-smb-handle-insert-directoryMichael Albinus2017-10-161-4/+5
| | | | | * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory): Insert size information only when FULL-DIRECTORY-P is non-nil.
* Don't reject PBM header whitespace unnecessarilyAndy Moreton2017-10-161-2/+2
| | | | | | * lisp/image.el (image-type-header-regexps): Allow two or more CRs or LFs in initial whitespace sequences. See: http://netpbm.sourceforge.net/doc/pbm.html
* 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.
* Require subr-x when compiling nnimap.elEric Abrahamsen2017-10-151-1/+2
| | | | * lisp/gnus/nnimap.el (require): For the when-let* macro.
* Fix ert-test finding by symbol (Bug#28849)Noam Postavsky2017-10-151-2/+2
| | | | | | | | | | | In 2017-07-28 "* lisp/subr.el (define-symbol-prop): New function", the symbol used for ert tests in load-history was changed from `ert-deftest' to `ert--test', but a couple of other places were not updated accordingly. * lisp/emacs-lisp/ert.el (ert-find-test-other-window): Pass `ert--test' as the TYPE to `find-function-do-it'. (top-level): Use `ert--test' as the key to the `find-function-regexp-alist' entry.
* Don't remember old debugger window (Bug#17882)Noam Postavsky2017-10-151-1/+3
| | | | | * lisp/emacs-lisp/debug.el (debug): Unset debugger-previous-window when `debugger-will-be-back' is nil.
* Disable python native completion on w32 (Bug#28580)Noam Postavsky2017-10-151-2/+3
| | | | | | * lisp/progmodes/python.el (python-shell-completion-native-disabled-interpreters): For windows-nt systems, put an empty string to match interpreters.
* Let select-frame-by-name choose any frame when called from lisp (Bug#25521)Noam Postavsky2017-10-152-6/+14
| | | | | | * lisp/frame.el (select-frame-by-name): Choose from the whole list of frames in the non-interactive part, if not found on the current display.
* * lisp/dired-aux.el (dired-create-directory): Doc fix.Eli Zaretskii2017-10-151-0/+1
|
* Avoid compilation warnings in optimized buildsEli Zaretskii2017-10-156-8/+8
| | | | | | | | | | * 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-152-1/+19
| | | | | | | | | 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.
* Improve customization type of 'mouse-drag-and-drop-region'Charles A. Roelli2017-10-151-1/+9
| | | | | * lisp/mouse.el (mouse-drag-and-drop-region): Provide a more precise customization type.
* ; Prefer https: to http: in GNU URLsPaul Eggert2017-10-145-76/+76
|
* Encourage https: in commit messagesPaul Eggert2017-10-142-0/+13
| | | | | | * CONTRIBUTE: Prefer https: when citing. * build-aux/git-hooks/commit-msg: Diagnose http: and ftp: URLs to FSF or GNU hosts.
* ; Cleanup of etc/NEWSMichael Albinus2017-10-141-107/+112
|
* Fix wording in Elisp manual's child frames section (Bug#28819)Martin Rudalics2017-10-141-1/+1
| | | | * doc/lispref/frames.texi (Child Frames): Fix wording (Bug#28819).
* Another fix for C mode fontification of w32 source filesEli Zaretskii2017-10-141-1/+1
| | | | | * .dir-locals.el (c-mode) <c-noise-macro-names>: Add "CALLBACK", to correctly fontify functions with this attribute.
* Fix fontification of ALIGN_STACK functionsEli Zaretskii2017-10-141-1/+1
| | | | | * .dir-locals.el (c-mode) <c-noise-macro-names>: Add "ALIGN_STACK", to correctly fontify functions with this attribute.
* 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).
* Fix indentation bug in multi-line CSS selectorsSimen Heggestøyl2017-10-132-1/+11
| | | | | | | | * lisp/textmodes/css-mode.el (css--colon-inside-selector-p): Fix indentation of multi-line CSS selectors that include both a pseudo-class and parenthesis. * test/manual/indent/css-mode.css: Add test for the above change.
* ; * etc/NEWS: Grammar and spelling fixesCharles A. Roelli2017-10-131-8/+8
| | | | | | * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 26.1) (Lisp Changes in Emacs 26.1): Fix the grammar and spelling of some entries.
* 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.
* ; * CONTRIBUTE: More suggestions for using US English.Eli Zaretskii2017-10-131-3/+9
|
* * CONTRIBUTE: Suggest American English.Paul Eggert2017-10-121-1/+2
|
* 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.
* Simplify Flymake user documentationJoão Távora2017-10-122-124/+73
| | | | | | | | | | | | | | | | | | | | | | | Fix some confusing parts of Flymake user documentation, like a repeated listing of situations leading to a syntax check. Documentation is now divided into three chapters only: "Using Flymake", "Extending Flymake", and a chapter for the legacy backend. Obsolete mention of "errors" and "lines" is replaced by "diagnostics/problems" and "regions" where appropriate. * doc/misc/flymake.texi (Overview of Flymake): Delete chapter. (Using Flymake): Merge with chapter "Overview of Flymake". (Installing Flymake): Delete chapter. (Flymake mode, Running the syntax check) (Navigating to error lines): Delete sections. (Syntax check statuses): Review and augment with x-references. (Backend exceptions): Mention shortcut in menu. * lisp/progmodes/flymake.el (flymake-menu): Tweak minor mode menu to not speak of "errors". (flymake-goto-next-error, flymake-goto-prev-error): Fix wording.