summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Avoid unnecessary rounding errors in timestampsPaul Eggert2017-10-2211-38/+35
| | | | | | | | | | | | | | | | | | | | | Avoid the rounding errors of float-time when it’s easy. E.g., replace (< (float-time a) (float-time b)) with (time-less-p a b). * lisp/desktop.el (desktop-save): * lisp/ecomplete.el (ecomplete-add-item): * lisp/epg.el (epg-wait-for-completion): * lisp/files.el (dir-locals-find-file, dir-locals-read-from-dir): * lisp/image-dired.el (image-dired-get-thumbnail-image) (image-dired-create-thumb-1): * lisp/info.el (info-insert-file-contents): * lisp/ls-lisp.el (ls-lisp-format-time): * lisp/net/ange-ftp.el (ange-ftp-file-newer-than-file-p) (ange-ftp-verify-visited-file-modtime): * lisp/net/rcirc.el (rcirc-ctcp-sender-PING): * lisp/textmodes/remember.el (remember-store-in-mailbox): * lisp/url/url-cookie.el (url-cookie-expired-p): Bypass float-time to avoid rounding errors. * lisp/files.el (dir-locals-find-file):
* Fix xdg timestamp error on 32-bit EmacsPaul Eggert2017-10-221-2/+2
| | | | | | | * lisp/xdg.el (xdg-thumb-mtime): Return an Emacs timestamp, not an integer. This avoids signaling an error on 32-bit Emacs, where timestamps typically do not fit into fixnums (Bug#28921).
* Test that advice doesn't trigger bytecomp warnings (Bug#28803)John Williams2017-10-211-0/+11
| | | | | | | * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-no-warnings-with-advice): New test. Copyright-paperwork-exempt: yes
* Another fix for unsafe directory error message (Bug#865)Noam Postavsky2017-10-211-2/+3
| | | | | | * lisp/server.el (server-ensure-safe-dir): Put file owner's uid, not current user's for the wrong owner case. Show expanded file name in error message.
* Handle https url for debbugs mbox (Bug#28831)Noam Postavsky2017-10-211-3/+1
| | | | | | | | | In 2017-09-13 "Prefer HTTPS to FTP and HTTP in documentation", gnus-bug-group-download-format-alist was updated to use https for the debbugs.gnu.org mbox links, but gnus-read-ephemeral-bug-group assumed http links. * lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group): Use url-parse functions to get the host name, instead of ad-hoc regexps.
* Ignore string properties when saving eshell history (Bug#28700)Noam Postavsky2017-10-213-3/+43
| | | | | | | | * lisp/eshell/em-hist.el (eshell-write-history): Remove properties before inserting history strings. (eshell-read-history): Remove obsolete comment. * test/lisp/eshell/em-hist-tests.el (eshell-write-readonly-history): New test.
* Fix Bug#28889Michael Albinus2017-10-211-25/+26
| | | | | | | | | | | | * lisp/net/tramp.el: Change autoload cookie to tramp-autoload cookie. (tramp-completion-file-name-regexp-default) (tramp-completion-file-name-handler-alist) (tramp-completion-file-name-handler): Remove autoload cookie. (tramp-initial-completion-file-name-regexp): Remove. (tramp-autoload-file-name-regexp): New defconst. (tramp-register-autoload-file-name-handlers): Use it. (with-parsed-tramp-file-name): Adapt docstring. Compute `tramp-file-name' slots. (Bug#28889)
* Update describe-function for recent Fdocumentation changeGlenn Morris2017-10-211-2/+2
| | | | | * lisp/help-fns.el (describe-function-1): Handle Fdocumentation returning either void or invalid.
* Make flymake's mouse-wheel interaction portable (Bug#28732)Charles A. Roelli2017-10-211-3/+7
| | | | | | | * lisp/progmodes/flymake.el (flymake--mode-line-format): Bind 'mouse-wheel-down-event' and 'mouse-wheel-up-event' instead of 'mouse-4' and 'mouse-5'. Update the tooltip text accordingly, and remove a stray newline in it.
* Prevent eldoc from changing the mode lineNick Helm2017-10-211-1/+2
| | | | | * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Don't change the mode line if it is not displayed. (Bug#28697)
* Fix doc strings in simple.elEli Zaretskii2017-10-211-5/+6
| | | | | * lisp/simple.el (shell-command-saved-pos) (region-extract-function, region-bounds): Doc fixes. (Bug#28609)
* Avoid creating inconsistent buffer states in term-char-modePhil Sainty2017-10-212-0/+115
| | | | | | | | | | | | | | | | | | | | | | * lisp/term.el (term-mode, term-char-mode, term-line-mode) (term-emulate-terminal): Make buffer read-only in 'term-char-mode', except for the process filter's output. Use 'read-only-mode-hook' to track and restore the user-set state of 'buffer-read-only' for 'term-line-mode'. (Bug#24837) (term-char-mode-buffer-read-only): New user option. (term-line-mode-buffer-read-only): New buffer-local variable. (term-line-mode-buffer-read-only-update): New function. (term-char-mode, term-line-mode): Use 'term-set-goto-process-mark' in pre-command-hook, and 'term-goto-process-mark-maybe' in post-command-hook to counter-act unexpected changes to point when using 'term-char-mode'. (term-char-mode-point-at-process-mark): New user option. (term-goto-process-mark): New buffer-local variable. (term-set-goto-process-mark): New function. (term-goto-process-mark-maybe): New function. (term-process-mark): New function. * etc/NEWS: Mention the new behavior and user options.
* New input method 'usbek-cyrillic'Bahodir Mansurov2017-10-212-1/+115
| | | | | | | | | * lisp/leim/quail/cyrillic.el (uzbek-cyrillic): New input method. (Bug#28848) * etc/NEWS: Mention the new input method. Copyright-paperwork-exempt: yes
* Document 'minibuffer-with-setup-hook'Eli Zaretskii2017-10-211-0/+13
| | | | | * doc/lispref/minibuf.texi (Minibuffer Misc): Document minibuffer-with-setup-hook. (Bug#28877)
* Simplify make-progress-reporter vs float-timePaul Eggert2017-10-201-6/+4
| | | | | | * lisp/subr.el (make-progress-reporter): Remove no-longer-needed doc and code for the case where float-time is not supported, since float-time is always present now.
* Fix two more minor Gnus typosPaul Eggert2017-10-201-10/+6
| | | | | | | | | * lisp/gnus/mail-source.el (mail-source-delete-old-incoming): The old code had two minor bugs: first, it multiplied by 1/65536 instead of by 1/86400. Second, it called current-time twice and glued part of the two results together, resulting in a race. Fix both bugs by simplifying the code and using time-to-number-of-days.
* Fix two minor Gnus typosPaul Eggert2017-10-201-1/+1
| | | | | * lisp/gnus/gnus-sum.el (gnus-summary-import-article): Remove unused local, and fix use of local that was never assigned to.
* 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.
* Tweak format of list of old files in NEWS headerGlenn Morris2017-10-202-7/+17
| | | | | * etc/NEWS: Stop list of old NEWS files growing without limit. * admin/admin.el (set-version): Handle either NEWS header format.
* * lisp/help-fns.el (describe-function-1):Stefan Monnier2017-10-201-8/+20
| | | | | | Fix help-fns-test-dangling-alias. (Bug#28918) (cherry picked from commit e1d42f8f4a945669ff8b5159a569cb4b18f56e18)
* Fix flymake's loading of subr-xGlenn Morris2017-10-202-2/+3
| | | | | * lisp/progmodes/flymake.el, test/lisp/progmodes/flymake-tests.el: No need to load subr-x at run-time.
* Fix Bug#28896Michael Albinus2017-10-204-310/+322
| | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-rename-file): * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file): Handle FILENAME being a directory. (Bug#28896) * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file): Test also FILENAME being a directory.
* Skip a Flymake test for old gcc versionsJoão Távora2017-10-201-1/+6
| | | | | | | | Fixes: 28906 * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Skip this test for gcc versions < 5.
* Make :align-to account for display-line-numbersEli Zaretskii2017-10-206-38/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Augment Flymake API for third-party extensionsJoão Távora2017-10-202-42/+83
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Improve treatment of Fortran's "class default"Glenn Morris2017-10-192-8/+18
| | | | | | * lisp/progmodes/f90.el (f90-start-block-re, f90-no-block-limit): Handle "class default". (Bug#28786) * test/automated/f90.el (f90-test-bug25039): Add "class default".
* Flymake backends must check proc obsoleteness in source bufferJoão Távora2017-10-202-2/+3
| | | | | | | | | | | | | Flymake backends that rely on sentinels running asynchronously and checking buffer-local variables that hold running processes should check for obsoleteness in the correct buffers, otherwise a (harmless) warning might be triggered. * doc/misc/flymake.texi (An annotated example backend): Check buffer-local proc in the current buffer. * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Check buffer-local proc in the current buffer.
* Skip an rsync test in tramp-tests.elMichael Albinus2017-10-191-0/+2
| | | | | * test/lisp/net/tramp-tests.el (tramp-test17-dired-with-wildcards): Skip for "rsync".
* ; Indentation fixesBastian Beischer2017-10-192-3/+3
|
* 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.