summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Improve format-spec documentation (bug#41571)Basil L. Contovounesios2020-06-023-83/+206
| | | | | | | | | | | | | | | | | | * doc/lispref/text.texi (Interpolated Strings): Move from here... * doc/lispref/strings.texi (Custom Format Strings): ...to here, renaming the node and clarifying the documentation. (Formatting Strings): End node with sentence referring to the next one. * lisp/format-spec.el (format-spec): Clarify docstring.
* | * lisp/progmodes/js.el (js-mode): Remove second call to c-init-language-varsAlan Mackenzie2020-06-071-1/+0
| | | | | | | | | | This spurious second call fouled up already set configuration variables. Fixes bug #41649.
* | Add file encryption to TrampMichael Albinus2020-06-073-3/+762
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-crypt.el: New file. * lisp/net/tramp.el (tramp-run-real-handler): Add `tramp-crypt-file-name-handler'. (tramp-register-file-name-handlers): Call `tramp-register-crypt-file-name-handler'. (tramp-handle-insert-file-contents, tramp-local-host-p): Check for `tramp-crypt-enabled' * test/lisp/net/tramp-tests.el (tramp--test-crypt-p): New defun. (tramp-test24-file-acl, tramp-test25-file-selinux) (tramp-test28-process-file, tramp-test29-start-file-process) (tramp-test30-make-process, tramp-test31-interrupt-process) (tramp-test32-shell-command) (tramp-test32-shell-command-dont-erase-buffer) (tramp-test33-environment-variables) (tramp-test33-environment-variables-and-port-numbers) (tramp-test34-explicit-shell-file-name, tramp-test35-exec-path) (tramp-test35-remote-path, tramp-test36-vc-registered) (tramp--test-check-files, tramp-test43-asynchronous-requests): Use it.
* | Tramp code cleanupMichael Albinus2020-06-073-13/+13
| | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-cache.el (tramp-get-connection-property): Cleanup. * lisp/net/tramp-cmds.el (tramp-cleanup-all-connections): Delete also connection processes. * lisp/net/tramp-sh.el (tramp-set-remote-path): Cache 4096 even if PIPE_BUF doesn't exist.
* | Use 65535 as color-values scale value in the NS backendMattias Engdegård2020-06-073-6/+6
| | | | | | | | | | | | | | * src/nsfns.m (Fxw_color_values): Scale with 65535 instead of 65280, for uniformity with other backends. * lisp/faces.el (color-values): Update doc string. * doc/lispref/frames.texi (Color Names): Update examples.
* | The key prefix 'C-x t t' displays next command buffer in a new tab (bug#41691)Juri Linkov2020-06-074-54/+97
| | | | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (other-tab-prefix): New command. (tab-prefix-map): Bind key 'C-x t t' to other-tab-prefix. * lisp/windmove.el (windmove-display-in-direction): Use display-buffer-override-next-command. * lisp/window.el (display-buffer-override-next-command): New function refactored from windmove-display-in-direction.
* | make-text-button no longer modifies its string argPaul Eggert2020-06-064-5/+13
| | | | | | | | | | | | | | | | | | * etc/NEWS: Mention this. * lisp/apropos.el (apropos-library-button): * lisp/ibuf-ext.el (ibuffer-old-saved-filters-warning): There’s no longer a need copy make-text-button’s string arg. * lisp/button.el (make-text-button): Return a copy of a string arg. Delay making the copy until after error-checking.
* | Un-deprecate oset and oset-defaultBasil L. Contovounesios2020-06-065-27/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For discussion see the following threads: https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg00630.html https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg00674.html https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00099.html * lisp/emacs-lisp/eieio.el (oset, oset-default): Un-deprecate. * lisp/emacs-lisp/eieio-core.el (eieio-oref): Declare gv-setter here instead of in lisp/emacs-lisp/eieio.el. Suggested by Stefan Monnier <monnier@iro.umontreal.ca>. (eieio-oref-default): Add gv-setter declaration. * etc/NEWS: Announce these changes. * doc/misc/eieio.texi (Accessing Slots): Document oref and oref-default as generalized variables. Consistently document getters before setters. * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Use lexical-binding. (eieio-test-13-init-methods): Simplify. (eieio-test-33-instance-tracker): Declare IT-list as special.
* | Improve battery status display via GNU/Linux sysfsEllington Santos2020-06-061-5/+12
| | | | | | | | | | | | | | * lisp/battery.el (battery-linux-sysfs): Support %b format. Improve the display of %p. (Bug#41542) Copyright-paperwork-exempt: yes
* | Avoid zero-width glyphs and the resulting cursor artifactsPip Cet2020-06-051-7/+26
| | | | | | | | | | | | | | * src/xdisp.c (fill_gstring_glyph_string): Handle unavailable glyphs. (append_composite_glyph): Mark unavailable glyphs. (gui_produce_glyphs): Make glyphs unavailable for zero-width compositions. (Bug#41645)
* | Streamline live_*_holdingPaul Eggert2020-06-041-124/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (live_string_holding, live_cons_holding, live_symbol_holding) (live_float_p, live_vector_holding): Assert that m->type is correct, instead of testing this at runtime. All callers changed. (live_large_vector_holding, live_small_vector_holding): Now two functions instead of the old live_vector_holding. All callers changed. (live_large_vector_p, live_small_vector_p): Now two functions instead of the old live_vector_p. All callers changed. (mark_maybe_object): Ignore Lisp_Type_Unused0 quickly too, since that cannot possibly be an object. (CHECK_LIVE, CHECK_ALLOCATED_AND_LIVE): New arg MEM_TYPE. All callers changed. (CHECK_ALLOCATED_AND_LIVE_SYMBOL): Simplify by combining GC_CHECK_MARKED_OBJECTS code.
* | Make live_*_p more accuratePaul Eggert2020-06-041-40/+60
| | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (live_string_holding, live_cons_holding) (live_symbol_holding, live_vector_holding): Return a C pointer, not a Lisp_Object. All callers changed. This helps the compiler a bit. (live_string_p, live_cons_p, live_symbol_p, live_vector_p): Require that P point directly at the object, rather than somewhere within the object. This fixes some false positives with valid_lisp_object_p (used only in debugging). (mark_maybe_object): Rely on the new accuracy.
* | Fix some side-effecting uses of make-text-buttonBasil L. Contovounesios2020-06-043-5/+3
| | | | | | | | | | | | | | | | | | | | | | For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00117.html * lisp/apropos.el (apropos-library-button): * lisp/help-fns.el (help-fns--first-release): Return result of make-text-button instead of relying on its side effects. * lisp/ibuf-ext.el (ibuffer-old-saved-filters-warning): Avoid modifying an immutable string.
* | * lisp/dired.el (dired-toggle-marks): Use region for non-nil dired-mark-regionJuri Linkov2020-06-051-22/+40
| | | | | | | | | | | | (dired-mark--region-use-p, dired-mark--region-beginning) (dired-mark--region-end): New internal functions. (dired-mark-if): Use new functions. (Bug#39902)
* | Change default project list filename to "projects"Simen Heggestøyl2020-06-041-1/+1
| | | | | | | | | | * lisp/progmodes/project.el (project-list-file): Change the default filename to "projects".
* | Use characters for keys in project-switch-commandsSimen Heggestøyl2020-06-041-16/+12
| | | | | | | | | | | | | | * lisp/progmodes/project.el (project-switch-commands): Use characters for keys instead of string for better future compatibility with 'read-multiple-choice'. (project-switch-project): Adjust to above change.
* | ; Small cleanup in project.elSimen Heggestøyl2020-06-041-3/+2
| | | | | | | | | | * lisp/progmodes/project.el (project--add-to-project-list-front): Minor simplification after recent changes.
* | * lisp/font-lock.el (font-lock--syntax-table-affects-ppss): New varStefan Monnier2020-06-041-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This tries to make `font-lock-syntax-table` work correctly even when it changes the parsing of strings and comments, as was the case in `font-latex.el`. We should probably deprecate the use of `font-lock-syntax-table` since the present fix is still not 100% and since it comes with performance problems in large files. (font-lock-set-defaults): Set it. (font-lock-fontify-syntactically-region): Don't use `syntax-ppss` when we think that `font-lock-syntax-table` would interfere.
* | ; * test/src/xfaces-tests.el (xfaces-color-distance): Fix bug idMattias Engdegård2020-06-041-1/+1
| |
* | Don’t default to Valgrind unless ENABLE_CHECKINGPaul Eggert2020-06-031-2/+3
| | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (USE_VALGRIND): If not defined, don’t default it to 1 unless ENABLE_CHECKING. The Valgrind hooks bloat the garbage collector a bit in production, and there’s no need for them these days if one has a Valgrind suppressions file (which one needs anyway). (mark_maybe_pointer): Use ‘#if USE_VALGRIND’ instead of ‘#ifdef USE_VALGRIND’ for consistency with other uses of USE_VALGRIND. This is in case someone builds with ‘-DENABLE_CHECKING -DUSE_VALGRIND=0’ in CFLAGS.
* | Revert make-text-button string copyPaul Eggert2020-06-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | * lisp/button.el (make-text-button): Don’t make a copy of a button’s string label. This reverts the change made in 2020-05-17T05:23:28Z!eggert@cs.ucla.edu, which broke SLY. Problem reported by João Távora in: https://lists.gnu.org/r/emacs-devel/2020-06/msg00117.html However, we’ll need a better fix for this once string literals become contents, if SLY uses string constants for text button labels.
* | Fix make-text-button bug with string copyPaul Eggert2020-06-031-1/+2
| | | | | | | | | | | | | | | | * lisp/button.el (make-text-button): Use the copy of BEG uniformly, instead of in just one place. This fixes a typo introduced in 2020-05-17T05:23:28Z!eggert@cs.ucla.edu. Problem reported by João Távora in: https://lists.gnu.org/r/emacs-devel/2020-06/msg00117.html
* | Ensure Jsonrpc processes are created in correct bufferJoão Távora2020-06-031-35/+39
| | | | | | | | | | | | | | | | | | | | Report and original implementation by Steve Purcell <steve@sanityinc.com>. See also See https://github.com/joaotavora/eglot/pull/493 for details * lisp/jsonrpc.el (initialize-instance): Make process in original buffer. (Version): Bump to 1.0.12
* | Make color-distance symmetric and more accurateMattias Engdegård2020-06-032-11/+40
| | | | | | | | | | | | | | * src/xfaces.c (color_distance): Don't throw away the low 8 bits of the colours, and make the function symmetric (bug41544) (Fcolor_distance): Add caution about this not being a true metric. * test/src/xfaces-tests.el: New file.
* | ; Clean up recent project.el additionsBasil L. Contovounesios2020-06-031-3/+5
| | | | | | | | | | * lisp/progmodes/project.el (project): Add :version tag. (project-list-file): Fix custom :type and add :version tag.
* | Handle mid-gstring face changesPip Cet2020-06-031-0/+1
| | | | | | | | | | * src/xdisp.c (fill_gstring_glyph_string): Don't extend the glyph string past face changes. (Bug#41454)
* | Fix bug in recent byte-code checking hoistPaul Eggert2020-06-021-10/+11
| | | | | | | | | | | | | | | | Problem reported by Daniel Colascione (Bug#41680). * src/lread.c (read1): Check that AREF (tmp, COMPILED_BYTECODE) is a string before subjecting it to STRING_MULTIBYTE. Be more consistent about using AREF in the neighborhood, to help prevent this sort of problem from recurring.
* | Avoid losing composition state in handle_stop_backwardsPip Cet2020-06-021-0/+2
| | | | | | | | | | * src/xdisp.c (handle_stop_backwards): Save composition iterator state across our forward scan. (Bug#41626)
* | ; NEWS updatesDmitry Gutov2020-06-031-0/+4
| |
* | Small cleanupDmitry Gutov2020-06-031-4/+2
| | | | | | | | | | | | * lisp/progmodes/project.el (project--add-to-project-list-front): Small simplification. (project--remove-from-project-list): Remove oudated comment.
* | project-list-file: New user optionDmitry Gutov2020-06-031-3/+14
| | | | | | | | | | | | | | | | | | * lisp/progmodes/project.el (project): New custom group. (project-vc): Use it as parent. (project-vc-merge-submodules): Tag with Emacs version. (project-read-file-name-function): Assign to the 'project' group. (project-list-file): New user option (bug#41600). (project--write-project-list, project--read-project-list): Use it.
* | ; * src/composite.c (syms_of_composite): Fix last change.Eli Zaretskii2020-06-021-1/+2
| |
* | Fix Arabic composition rulesEli Zaretskii2020-06-022-5/+6
| | | | | | | | | | | | | | | | * lisp/language/misc-lang.el (composition-function-table): Reorder Arabic composition rules in descending order of lookback. * src/composite.c (syms_of_composite): Document the order of rules in 'composition-function-table'.
* | Write project list to file only when changedSimen Heggestøyl2020-06-021-6/+7
| | | | | | | | | | * lisp/progmodes/project.el (project--add-to-project-list-front): Write the project list to file only when it has changed.
* | Remove 'project--ensure-file-exists'Simen Heggestøyl2020-06-021-16/+11
| | | | | | | | | | | | * lisp/progmodes/project.el (project--ensure-file-exists): Remove. (project--read-project-list): Set 'project--list' to nil when the project list file doesn't exist.
* | Fix handling of CGJ in Hebrew textEli Zaretskii2020-06-021-1/+1
| | | | | | | | | | * lisp/language/hebrew.el (hebrew): Add CGJ U+034F to the combining characters supported in Hebrew compositions. (Bug#41645)
* | Simplify and regularize some offset tests in alloc.cPaul Eggert2020-06-011-5/+4
| | | | | | | | | | * src/alloc.c (live_string_holding, live_cons_holding) (live_symbol_holding, live_float_p): Simplify and regularize.
* | Merge from origin/emacs-27Paul Eggert2020-06-011-1/+4
|\ \ | |/ | | | | 0260d2d2db Don't call 'mbrtowc' on WINDOWSNT
| * Don't call 'mbrtowc' on WINDOWSNTEli Zaretskii2020-06-011-1/+4
| | | | | | | | | | * src/emacs.c (using_utf8): Don't call 'mbrtowc' on WINDOWSNT systems, as it's not available on Windows 9X.
* | ; Merge from origin/emacs-27Paul Eggert2020-06-010-0/+0
|\ \ | |/ | | | | | | | | The following commit was skipped: fb90f46f47 ; Auto-commit of loaddefs files.
| * ; Auto-commit of loaddefs files.Glenn Morris2020-06-011-27/+55
| |
* | Merge from origin/emacs-27Paul Eggert2020-06-017-683/+749
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 44c0e074f7 * doc/emacs/buffers.texi (Icomplete): Mention icomplete-mi... 68b6dad1d8 Be more aggressive in marking objects during GC 36f508f589 ; * src/xdisp.c (find_last_unchanged_at_beg_row): Fix a typo. cc340da1fe Fix bug #41618 "(byte-compile 'foo) errors when foo is a m... 41232e6797 Avoid crashes due to bidi cache being reset during redisplay f72bb4ce36 * lisp/tab-bar.el (switch-to-buffer-other-tab): Normalize ... d3e0023aaa ; * etc/TODO: Fix formatting. (Bug#41497) a8ad94cd2f Fix mingw.org's MinGW GCC 9 warning about 'execve' # Conflicts: # lisp/tab-bar.el # nt/inc/ms-w32.h # src/alloc.c
| * * doc/emacs/buffers.texi (Icomplete): Mention icomplete-minibuffer-setup-hook.João Távora2020-06-011-1/+8
| |
| * Be more aggressive in marking objects during GCPaul Eggert2020-05-311-16/+10
| | | | | | | | | | | | | | Simplified version of a patch from Pip Cet (Bug#41321#299). * src/alloc.c (maybe_lisp_pointer): Remove. All uses removed. (mark_memory): Also look at the pointer offset by ‘lispsym’, for symbols.
| * ; * src/xdisp.c (find_last_unchanged_at_beg_row): Fix a typo.Eli Zaretskii2020-05-311-1/+1
| |
| * Fix bug #41618 "(byte-compile 'foo) errors when foo is a macro."Alan Mackenzie2020-05-311-3/+4
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile): Disentangle the eval of the final form from the pushing of 'macro onto it, doing the former first.
| * Avoid crashes due to bidi cache being reset during redisplayEli Zaretskii2020-05-311-0/+2
| | | | | | | | | | | | | | | | | | If automatic character composition triggers GC, and 'garbage-collection-messages' are turned on, we could have the bidi cache reset while processing RTL text, which would then consistently crash. * src/xdisp.c (display_echo_area_1): Protect the bidi cache against changes inside 'try_window'.
| * * lisp/tab-bar.el (switch-to-buffer-other-tab): Normalize buffer.Juri Linkov2020-05-311-3/+4
| | | | | | | | | | | | | | * lisp/tab-bar.el (switch-to-buffer-other-tab): Use 'window-normalize-buffer-to-switch-to' on 'buffer-or-name', like does 'pop-to-buffer' used by 'switch-to-buffer-other-frame', instead of raising the error "Invalid buffer" on a non-existent buffer name.
| * ; * etc/TODO: Fix formatting. (Bug#41497)Eli Zaretskii2020-05-301-641/+719
| |
| * Fix mingw.org's MinGW GCC 9 warning about 'execve'Eli Zaretskii2020-05-301-0/+5
| | | | | | | | | | * nt/inc/ms-w32.h (execve) [__GNUC__ > 9]: Provide a different prototype for mingw.org's MinGW as well, to match the GCC builtin.