aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add charsets to 'w32-charset-info-alist'Eli Zaretskii2020-03-141-0/+7
| | | | | | | | | | * lisp/w32-fns.el: Add a few more charsets to w32-charset-info-alist.
* | Avoid regexp stack overflow in GDB string matching (bug#22149)Mattias Engdegård2020-03-141-1/+4
| | | | | | | | | | | | * lisp/progmodes/gdb-mi.el (gdb--string-regexp): Swap the or-clauses so that the rarely matching one comes first. This avoids a build-up of backtrack points on the regexp stack.
* | Merge from origin/emacs-27Glenn Morris2020-03-138-19/+57
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | a2b07f9f11 (origin/emacs-27) ; * etc/NEWS: Explain how to get back ol... b468b3d1ff Fix a recent documentation change 1ab766fd58 Fix last change ecfe633993 * lisp/tab-bar.el: Last-minute changes. c1ce9fa7f2 * lisp/subr.el (cancel-change-group): Fix bug#39680 ef5744a988 Improve docs for horizontal scrolling with mouse and touch... 1bc3fa0bd0 * lisp/emacs-lisp/package.el (package-install): Fix typo i... 4537976afd Port .gdbinit to clang with -gdwarf-4 0883c800a0 Simplify rx example in manual a695189248 ; * etc/NEWS: Fix typo. # Conflicts: # etc/NEWS
| * ; * etc/NEWS: Explain how to get back old behavior with --eval.Eli Zaretskii2020-03-131-0/+8
| |
| * Fix a recent documentation changeEli Zaretskii2020-03-132-8/+15
| | | | | | | | | | | | | | | | | | * doc/emacs/frames.texi (Mouse Commands): More detailed description of how tilting the mouse-wheel works. * lisp/mwheel.el (mouse-wheel-tilt-scroll) (mouse-wheel-flip-direction): Fix the wording of doc strings. (Bug#39979)
| * Fix last changeEli Zaretskii2020-03-131-1/+2
| | | | | | | | | | * lisp/tab-bar.el (tab-bar-new-button-show): Fix wording of the doc string.
| * * lisp/tab-bar.el: Last-minute changes.Juri Linkov2020-03-131-6/+19
| | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-mode): Check for non-nil tab-bar-new-button and tab-bar-close-button. (tab-bar-new-button-show): New defcustom. (tab-bar-make-keymap-1): Check for tab-bar-new-button-show. (tab-bar-separator): Add docstring.
| * * lisp/subr.el (cancel-change-group): Fix bug#39680Stefan Monnier2020-03-121-2/+7
| | | | | | | | | | | | | | Don't re-use an existing `pending-undo-list` even if (eq last-command 'undo) since there might have been changes to the buffer since that `undo` command and the `pending-undo-list` can hence be invalid for the current buffer contents.
| * Improve docs for horizontal scrolling with mouse and touchpad (Bug#39979)İ. Göktuğ Kayaalp2020-03-112-6/+10
| | | | | | | | | | | | * lisp/mwheel.el (mouse-wheel-tilt-scroll, mouse-wheel-flip-direction): Improve docstrings. * doc/emacs/frames.texi (Mouse Commands): Mention touchpads.
| * * lisp/emacs-lisp/package.el (package-install): Fix typo in docstring.Juri Linkov2020-03-101-1/+1
| |
| * Port .gdbinit to clang with -gdwarf-4Paul Eggert2020-03-091-1/+1
| | | | | | | | | | | | * src/.gdbinit (xgetsym): Port to clang with -gdwarf-4, which doesn’t output the type of lispsym anywhere other than emacs.o (Bug#39962).
| * Simplify rx example in manualMattias Engdegård2020-03-091-2/+2
| | | | | | | | | | * doc/lispref/searching.texi (Rx Notation): Use the 'not' shorthand introduced in Emacs 27.
| * ; * etc/NEWS: Fix typo.Michael Albinus2020-03-091-1/+1
| |
* | Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus2020-03-131-0/+1
|\ \
| * | * lisp/emacs-lisp/package.el (package-menu--generate): Fix doc string.Pieter van Oostrum2020-03-131-0/+1
| | | | | | | | | | | | Add REMEMBER-POS to docstring (bug#39861).
* | | * lisp/net/tramp.el (tramp-accept-process-output): Propagate `quit' signal.Michael Albinus2020-03-131-8/+11
|/ /
* | Make cl-equalp a bit more efficient at comparing stringsNoam Postavsky2020-03-121-2/+1
| | | | | | | | | | | | * lisp/emacs-lisp/cl-extra.el (cl-equalp): Use compare-strings with the IGNORE-CASE argument, rather than creating downcased copies of the strings to be compared.
* | rcirc: Match NickServ messages case-insensitively (Bug#39345)Noam Postavsky2020-03-121-6/+10
| | | | | | | | | | | | | | | | Reported by Jake Nelson <jake.nelson@gmail.com>. * lisp/net/rcirc.el (rcirc-check-auth-status): NickServ will response will show the nick in the same case used during registration, but it allows case-insensitive matches when logging in. Therefore, we should accept response messages regardless of case.
* | Fix NS child frame in native fullscreen (bug#36672)Andrii Kolomoiets2020-03-123-17/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/frame.el (toggle-frame-fullscreen): Don't sleep on cocoa. Fullscreen animation waiting is moved to src/nsterm.m. * src/nsterm.h (EmacsView): Add in_fullscreen_transition, inFullScreenTransition, waitFullScreenTransition. (NSWindowCollectionBehaviorFullScreenAuxiliary): New define. * src/nsterm.m (ns_make_frame_visible): Wait for fullscreen animation. (ns_set_parent_frame): Set frame collection behavior; make child frames non-fullscreen; make non-child frames fullscreen if parent was fullscreen. ([EmacsView initFrameFromEmacs]): Set in_fullscreen_transition; set frame collection behavior according to parent frame. ([EmacsView windowDidMove]): Remove code by commenting with "fixme". ([EmacsView windowWillEnterFullScreen], [EmacsView windowDidEnterFullScreen]) ([EmacsView windowWillExitFullScreen], [EmacsView windowDidExitFullScreen]): Set in_fullscreen_transition. ([EmacsView inFullScreenTransition], [EmacsView waitFullScreenTransition]): New methods. ([EmacsView updateCollectionBehavior]): Set collection behavior according to parent frame. ([EmacsView toggleFullScreen]): Wait for fullscreen animation.
* | * lisp/emacs-lisp/eldoc.el: Remove redundant `:group` argumentsStefan Monnier2020-03-121-35/+23
| |
* | * lisp/emacs-lisp/eldoc.el (eldoc--supported-p): Understand the "old" APIStefan Monnier2020-03-121-1/+10
| |
* | * lisp/subr.el (cancel-change-group): Undo accidental changeStefan Monnier2020-03-121-10/+3
| |
* | * lisp/net/tramp-sh.el (tramp-find-shell): Skip for asynchronous processes.Michael Albinus2020-03-121-36/+38
| |
* | Remove XEmacs exclusive face from themesStefan Kangas2020-03-114-4/+0
| | | | | | | | | | | | | | | | * etc/themes/deeper-blue-theme.el (class): * etc/themes/leuven-theme.el (class): * etc/themes/manoj-dark-theme.el (manoj-dark): * etc/themes/whiteboard-theme.el (class): Don't set XEmacs exclusive face 'font-lock-doc-string-face'.
* | Remove more XEmacs compat code from eshellStefan Kangas2020-03-114-16/+4
| | | | | | | | | | | | | | | | * lisp/eshell/em-glob.el (eshell-extended-glob): * lisp/eshell/em-ls.el (eshell-do-ls): * lisp/eshell/em-unix.el (eshell/du, eshell-mvcpln-template): * lisp/eshell/esh-util.el (eshell-file-attributes): Remove more XEmacs compat code; no longer let-bind the unused variable ange-cache.
* | * lisp/emacs-lisp/cl-macs.el: More care with `eval` and with `cl-typep`Stefan Monnier2020-03-101-20/+37
| | | | | | | | | | | | | | | | (cl-eval-when, cl--compile-time-too, cl-load-time-value): Obey lexical-binding. (cl-check-type): Prefer the predicate rather than the type in the error signal when it's easy to do (as is done outside of CL). (cl-deftype-satisfies): Add definitions for standard types.
* | * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Simplify resultStefan Monnier2020-03-101-16/+6
| | | | | | | | | | | | | | | | It used to return a pair (EXP . LAMBDA-CDR) but EXP was always nil, so just return the LAMBDA-CDR instead. (cl-defun, cl-iter-defun, cl-defmacro, cl-function, cl-macrolet): Adjust callers accordingly.
* | * lisp/window.el: Avoid `called-interactively-p`.Stefan Monnier2020-03-101-12/+16
| | | | | | | | | | (other-window, delete-other-windows, next-buffer, previous-buffer): Use an `interactive` arg instead.
* | * lisp/ido.el: Remove redundant `:group`sStefan Monnier2020-03-101-161/+92
| |
* | * lisp/subr.el (dlet): New macroStefan Monnier2020-03-103-11/+34
| | | | | | | | * lisp/calendar/calendar.el (calendar-dlet*): Use it.
* | Improve new-frame logic of windmove-display-in-direction (bug#39875)Juri Linkov2020-03-101-4/+8
| | | | | | | | | | * lisp/windmove.el (windmove-display-in-direction): For frame-based logic use code similar to display-buffer-pop-up-frame.
* | In vc-print-branch-log use root instead of the default directory (bug#39704)Juri Linkov2020-03-102-4/+9
| | | | | | | | | | * lisp/vc/vc.el (vc-print-branch-log): Use rootdir instead of default-directory for the second arg of vc-print-log-internal.
* | Finish implementation of set-file-times FLAG arg in TrampMichael Albinus2020-03-097-45/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times): Implement FLAG. (tramp-adb-handle-copy-file): Adapt `set-file-times' call. * lisp/net/tramp-compat.el (tramp-compat-set-file-times): New defalias. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-modes) (tramp-gvfs-handle-set-file-times, tramp-gvfs-set-file-uid-gid): Simplify `tramp-gvfs-url-file-name' call. * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times): Implement FLAG. (tramp-do-copy-or-rename-file-via-buffer) (tramp-do-copy-or-rename-file-out-of-band): Add optional argument OK-IF-ALREADY-EXISTS. Adapt callees. (tramp-do-copy-or-rename-file-via-buffer) (tramp-do-copy-or-rename-file-directly) (tramp-do-copy-or-rename-file-out-of-band): Adapt `set-file-times' call. * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-copy-file): Adapt `set-file-times' call. * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file): Adapt `set-file-times' call. (tramp-sudoedit-handle-set-file-times): Implement FLAG. * test/lisp/net/tramp-tests.el (tramp-test22-file-times): Extend test.
* | Merge from origin/emacs-27Paul Eggert2020-03-081-7/+42
|\ \ | |/ | | | | | | cf223dc928 ; * src/timefns.c: Fix typo in previous change. 20d3d3a950 * src/timefns.c: Add comments.
| * ; * src/timefns.c: Fix typo in previous change.Paul Eggert2020-03-081-1/+1
| |
| * * src/timefns.c: Add comments.Paul Eggert2020-03-081-7/+42
| |
* | * lisp/term/rxvt.el: Enable backeted paste and window titleDaniel Gröber2020-03-081-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rxvt-unicode uses the same escape sequences as xterm so just re-use the xterm functions to enable them. The `xterm-rxvt-function-map` keymap already has (define-key map "\e[200~" [xterm-paste]) so we're already handling the paste sequence and only need to enable it. Tested on rxvt-unicode version 9.22. (rxvt-set-window-title): New var. (terminal-init-rxvt): Use it; enable bracketed paste mode; run terminal-init-rxvt-hook.
* | CC Mode: allow specified directives (e.g. pragma) to be indented as statementsAlan Mackenzie2020-03-085-39/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-cmds.el (c-align-cpp-indent-to-body) (c-cpp-indent-to-body-flag, c-electric-pragma) (c-add-indent-to-body-to-abbrev-table, c-clear-stale-indent-to-body-abbrevs) (c-toggle-cpp-indent-to-body): New functions and variables. * lisp/progmodes/cc-langs.el (c-std-abbrev-keywords): New lang const/var. * lisp/progmodes/cc-mode.el (c-populate-abbrev-table): New function. (c-basic-common-init): call the c-populate-abbrev-table. (c-mode, c++-mode, objc-mode, java-mode, idl-mode, pike-mode, awk-mode): Remove the setting of MODE-abbrev-table. * lisp/progmodes/cc-vars.el (c-cpp-indent-to-body-directives): New defcustom. * doc/misc/cc-mode.texi (Custom Macros): Introduce and refer to .... (Indenting Directives): New page documenting the new mechanism.
* | Fix the MinGW build as followup to recent "nofollow" changesEli Zaretskii2020-03-085-46/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32.c (fdutimens): Call utimensat instead of utime. (set_file_times): Function deleted. (convert_from_timespec): Renamed from convert_from_time_t and modified to accept 'struct timespec' argument instead of 'time_t'. (utimensat): Renamed from utime and modified to accept 'struct timespec [2]' argument and an additional argument FLAG. Emulate Posix 'utimensat'. Call 'convert_from_timespec'. (w32_copy_file): Call 'utimensat' instead of 'set_file_times'. * src/fileio.c (Fcopy_file) [WINDOWSNT]: Make the error message be identical to that on Posix platforms. * nt/inc/sys/stat.h (utimensat): Provide prototype. * nt/mingw-cfg.site (ac_cv_func_futimens) (gl_cv_func_futimens_works, ac_cv_func_utimensat) (gl_cv_func_utimensat_works): Override Gnulib tests. * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_futimens) (OMIT_GNULIB_MODULE_utimensat): Disable these Gnulib modules.
* | Simplify run-at-timePaul Eggert2020-03-081-3/+0
| | | | | | | | | | * lisp/emacs-lisp/timer.el (run-at-time): Remove unnecessary test (Bug#39944).
* | Merge from origin/emacs-27Paul Eggert2020-03-085-18/+37
|\ \ | |/ | | | | | | | | | | | | 0a3682a566 * src/timefns.c: Add comments. b16ba4041d ; lisp/emacs-lisp/seq.el: Explain why we don't use cl-lib ... 3cbf4cb796 Eliminate use of cl-concatenate in 'seq' package 363d927086 Fix bug with JIT stealth timers 818333c85a * doc/lispref/os.texi (time-subtract): Doc fix.
| * * src/timefns.c: Add comments.Paul Eggert2020-03-081-8/+24
| |
| * ; lisp/emacs-lisp/seq.el: Explain why we don't use cl-lib hereNoam Postavsky2020-03-071-0/+4
| |
| * Eliminate use of cl-concatenate in 'seq' packageAndrew Eggenberger2020-03-072-6/+6
| | | | | | | | | | | | | | | | | | | | Fixes (Bug#39761) by making cl-extra dependent on seq rather than vice versa. * lisp/emacs-lisp/seq.el (seq-concatenate): Move cl-concatenate's code here instead of calling it. * lisp/emacs-lisp/cl-extra.el (cl-concatenate): Use cl-concatenate. Copyright-paperwork-exempt: yes
| * Fix bug with JIT stealth timersPaul Eggert2020-03-071-1/+1
| | | | | | | | | | * lisp/emacs-lisp/timer.el (run-at-time): Don’t assume that Lisp time values must be conses (Bug#39944).
| * * doc/lispref/os.texi (time-subtract): Doc fix.Paul Eggert2020-03-071-3/+2
| |
* | * lisp/emacs-lisp/bytecomp.el: Drop warning for loading into Emacs<23Stefan Monnier2020-03-071-53/+15
| | | | | | | | | | | | | | | | | | | | Stash the major version of the compiling Emacs such that the loading Emacs can later detect when loading a file compiled by a too-new Emacs. (byte-compile-fix-header): Remove. (byte-compile-from-buffer): Don't call it any more. (byte-compile-insert-header): Stash the emacs-major-version in it. Don't leave space for `byte-compile-fix-header`.
* | Skip filenotify tests on hydra.nixos.orgGlenn Morris2020-03-071-1/+2
| | | | | | | | | | | | They frequently hang for hours. * test/lisp/filenotify-tests.el (file-notify--test-remote-enabled-checked): Default to off on hydra.
* | Add ‘nofollow’ flag to set-file-timesPaul Eggert2020-03-0724-70/+476
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a companion to the recent set-file-modes patch. It adds support for a ‘nofollow’ flag to set-file-times (Bug#39773). Like the set-file-modes patch, it needs work in the w32 port. * admin/merge-gnulib (GNULIB_MODULES): Add futimens, utimensat. Remove utimens. * doc/lispref/files.texi (Changing Files): * etc/NEWS: Mention the change. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lisp/files.el (copy-directory): * lisp/gnus/gnus-cloud.el (gnus-cloud-replace-file): * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file): * lisp/tar-mode.el (tar-copy): * test/lisp/filenotify-tests.el (file-notify-test03-events): * test/lisp/files-tests.el: (files-tests-file-name-non-special-set-file-times): * test/lisp/net/tramp-tests.el (tramp-test22-file-times): When setting file times, avoid following symbolic links when the file is not supposed to be a symbolic link. * lib/futimens.c, lib/utimensat.c, m4/futimens.m4, m4/utimensat.m4: New files, copied from Gnulib. * lisp/gnus/gnus-cloud.el (gnus-cloud-replace-file): When creating a file that is not supposed to exist already, use the excl flag to check this. * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times): * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times): Accept an optional FLAG arg that is currently ignored, and add a FIXME comment for it. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-times): * src/fileio.c (Fset_file_times): Support an optional FLAG arg. * src/fileio.c (Fcopy_file): Use futimens instead of set_file_times, as it’s simpler and is a POSIX API. * src/sysdep.c (set_file_times): Move from here ... * src/w32.c (set_file_times): ... to here, and make it static, since it is now used only in w32.c. Presumably w32.c should also add support for futimens and utimensat (the POSIX APIs, which Emacs now uses) and it can remove fdutimens (the Gnulib API, which Emacs no longer uses).
* | Update from GnulibPaul Eggert2020-03-071-1/+3
| | | | | | | | | | | | This incorporates: 2020-03-07 open, openat: port to (O_RDWR | O_RDONLY) != 0 * lib/open.c: Copy from Gnulib.