summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make 'eshell-bol' obsoleteJim Porter2023-01-147-33/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that Eshell uses fields for its output, 'eshell-bol' is no longer needed, and we can just use 'beginning-of-line'. * lisp/eshell/esh-mode.el (eshell-bol): Mark obsolete. (eshell-mode-map): Remove 'C-a' mapping. (eshell-command-map): Use 'move-beginning-of-line'. (eshell-move-argument, eshell-kill-input): Use 'beginning-of-line'. (eshell-get-old-input): Remove unnecessary call to 'eshell-skip-prompt-function'. * lisp/eshell/em-rebind.el (eshell-rebind-keys-alist): Remove 'C-a' and '<home>' mappings; the global mapping for these ('move-beginning-of-line') does the same thing now. * lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): * lisp/eshell/em-elecslash.el (eshell-electric-forward-slash): * lisp/eshell/em-hist.el (eshell-hist-word-reference) (eshell-previous-matching-input-from-input, eshell-test-imatch): * lisp/eshell/em-prompt.el (eshell-backward-matching-input): * lisp/eshell/em-rebind.el (eshell-point-within-input-p): * test/lisp/eshell/eshell-tests.el (eshell-test/forward-arg): Use 'beginning-of-line'. * test/lisp/eshell/eshell-tests.el (eshell-test/run-old-command): Rename to... (eshell-test/get-old-input): ... this, and expand the test.
* Set the 'field' property for Eshell outputJim Porter2023-01-146-24/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes Eshell work more like 'M-x shell', and lets the <home> key move to the beginning of the user's input at the prompt (bug#60666). * lisp/eshell/em-prompt.el (eshell-emit-prompt): Add 'field' property to prompt. (eshell-bol-ignoring-prompt): New function. * lisp/eshell/esh-io.el: Declare 'eshell-interactive-print'... (eshell-output-object-to-target): ... use it. * lisp/eshell/esh-mode.el (eshell-output-filter-functions): Update docstring. (eshell-interactive-print): Set the output to have a field value of 'command-output'. (eshell-output-filter): Rename to... (eshell-interactive-filter): ... this, and take a buffer instead of a process. * lisp/eshell/esh-proc.el (eshell-interactive-process-filter): New function, adapted from 'eshell-output-filter'... (eshell-gather-process-output): ... use it. * test/lisp/eshell/em-prompt-tests.el: New file. * etc/NEWS: Announce this change.
* Merge from origin/emacs-29Eli Zaretskii2023-01-143-4/+7
|\ | | | | | | | | | | | | | | | | | | fd77de542d8 ; * etc/NEWS: Fix typos. 195afb68e31 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/... cd83bc930ca ; * lisp/htmlfontify.el (hfy-exclude-file-rules): Fix :ve... 8d7ad656658 Fix indent and font-lock for annotation_type # Conflicts: # etc/NEWS
| * ; * etc/NEWS: Fix typos.Michael Albinus2023-01-141-2/+1
| |
| * Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29Eli Zaretskii2023-01-141-1/+5
| |\
| | * Fix indent and font-lock for annotation_typeTheodor Thornhill2023-01-141-1/+5
| | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): Indent inside body. (java-ts-mode--font-lock-settings): Add rule for name in annotation_type_element_declaration.
| * | ; * lisp/htmlfontify.el (hfy-exclude-file-rules): Fix :version.Eli Zaretskii2023-01-141-1/+1
| |/
* | (apropos-documentation): Don't try to parse .elc filesStefan Monnier2023-01-141-129/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old code scanned for #@ in .elc files, assuming they're docstrings and then looking around them to try and guess to which definition that docstring belongs, making many assumptions about how the code happens to be layed out by bytecomp. Replace that with code which relies on the (FILE . POS) info to extract the docstring knowing already where they are and what def they belong to. * lisp/apropos.el (apropos-documentation-check-elc-file): Delete function. (apropos--documentation-add-from-elc): New function to replace it. (apropos--documentation-add): New function, extracted from `apropos-documentation`. (apropos-documentation): Use them. Let-bind `apropos-accumulator` and `apropos-files-scanned`. (apropos-documentation-internal): Don't handle the `cons` case any more. (apropos-item): Don't declare as global var. (apropos-documentation-check-doc-file): Use `apropos-item` as a local var rather than a global var. (apropos-print-doc): Receive `apropos-item` as arg rather than refer to it as a global variable. (apropos-print): Adjust calls accordingly.
* | Merge remote-tracking branch 'refs/remotes/origin/master'Stefan Monnier2023-01-145-41/+100
|\ \
| * | Teach 'eww-open-file' about prefix argumentEli Zaretskii2023-01-143-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/eww.el (eww-open-file): Accept a new optional argument NEW-BUFFER to show FILE in a new buffer. (Bug#60809) * etc/NEWS: * doc/misc/eww.texi (Basics): Document the new feature.
| * | ; * lisp/proced.el (proced--determine-pos): Fix doc string wording.Eli Zaretskii2023-01-141-2/+2
| | |
| * | Preserve the window position with proced (bug#60381)Laurence Warne2023-01-142-33/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preserve the window position for windows which display a proced buffer, but are not the selected window when a proced buffer is updated. Previously, the window position would be set to the start of the buffer when a proced buffer was updated and it was not displayed in the selected window. Similarly, preserve the position in proced buffers which are not displayed in any window by setting 'switch-to-buffer-preserve-window-point' to nil in proced buffers. * lisp/proced.el (proced-auto-update-timer): Only update a given proced buffer if it is displayed in a window. (proced-update): Set the window position if the proced buffer is displayed in a window. (proced--position-info, proced--determine-pos): New Functions. (proced-mode): Set 'switch-to-buffer-preserve-window-point' to nil in proced buffers. * test/lisp/proced-tests.el (proced-update-preserves-pid-at-point-test): New test.
| * | ; * lisp/doc-view.el (doc-view-mupdf-use-svg): Bump :version.Eli Zaretskii2023-01-141-1/+1
| | |
* | | Merge from origin/emacs-29Stefan Monnier2023-01-147-85/+161
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | 96601cd90ba apropos.el: Fix bug#60628 10032f424cc Fix indentation of some declarations and statements e2e937300f5 Fix indentation of object_expressions in csharp-ts-mode 0116e27b26c ; Fix NEWS markup 435ba92ccc4 ; Fix last change in htmlfontify.el 7100ecd7a47 Replace 'hfy-find-cmd' with 'directory-files-recursively'. f102145d381 ; * etc/PROBLEMS: Describe problems with MuPDF 1.21. (Bu...
| * | apropos.el: Fix bug#60628Stefan Monnier2023-01-141-77/+100
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/apropos.el (apropos--map-preloaded-atoms): New function. (apropos-documentation): Use it. (apropos-documentation-check-elc-file): Don't presume #@ is preceded by a newline (since that's not the case any more since commit 900b09c0235d54d5), but be more careful not to burp on false positives.
| * | Fix indentation of some declarations and statementsTheodor Thornhill2023-01-141-0/+4
| | | | | | | | | | | | | | | * lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): Add new rules so that we don't anchor at col 0.
| * | Fix indentation of object_expressions in csharp-ts-modeTheodor Thornhill2023-01-141-0/+5
| | | | | | | | | | | | | | | | | | * lisp/progmodes/csharp-mode.el (csharp-ts-mode--indent-rules): Make sure the opening brace is indented at parent-bol, and everything else is indented.
| * | ; Fix NEWS markupEli Zaretskii2023-01-141-0/+1
| | |
| * | ; Fix last change in htmlfontify.elEli Zaretskii2023-01-141-2/+3
| | |
| * | Replace 'hfy-find-cmd' with 'directory-files-recursively'.Xi Lu2023-01-141-7/+14
| | | | | | | | | | | | | | | | | | | | | This removes a potential vulnerability to maliciously named files. (Bug#60562) * lisp/htmlfontify.el (hfy-exclude-file-rules): New defcustom. (hfy-list-files): Reimplement using 'directory-files-recursively'.
| * | ; * etc/PROBLEMS: Describe problems with MuPDF 1.21. (Bug#60308)Eli Zaretskii2023-01-141-0/+12
| | |
* | | ; Merge from origin/emacs-29Stefan Monnier2023-01-140-0/+0
|\| | | | | | | | | | | | | | | | | The following commit was skipped: 79971ebacc7 Disable and document 'doc-view-mupdf-use-svg' (bug#58041)
| * | Disable and document 'doc-view-mupdf-use-svg' (bug#58041)Eli Zaretskii2023-01-142-2/+16
| | | | | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-mupdf-use-svg): Disable by default. * etc/NEWS: Document. Patch by Visuwesh <visuweshm@gmail.com>. Do not merge to master.
* | | Merge from origin/emacs-29Stefan Monnier2023-01-143-44/+99
|\| | | | | | | | | | | | | | | | | f1032bf24e7 Eglot: don't use "nil" as minibuffer initial input 1b9ffd28116 Fix dependency bug when building lwlib dc33a122230 Fix use of build_pure_c_string in treesit.c
| * | Eglot: don't use "nil" as minibuffer initial inputEshel Yaron2023-01-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doing M-x eglot in a buffer for which buffer-file-name is nil, prompts the user for a major mode to manage by invoking completing-read. The way completing-read was called would end up with the string "nil" as the initial minibuffer input, which is not very useful nor is it a valid input. * lisp/progmodes/eglot.el (eglot--guess-contact): Tweak prompt for major mode. (Bug#60379) Copyright-paperwork-exempt: yes
| * | Fix dependency bug when building lwlibPaul Eggert2023-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * lwlib/Makefile.in (DEPFLAGS): Use OBJS to calculate dependency file names, not ALLOBJS. This fixes a typo introduced in 2015-05-15 "Replace AC_SUBST_FILE in configure with include in Makefiles" that caused lwlib/*.o to not be rebuilt sometimes when that was needed.
| * | Fix use of build_pure_c_string in treesit.cYuan Fu2023-01-131-42/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is brought up in bug#60691. build_pure_c_string should only be used in places such as syms_of_treesit, which are called just once, during dumping. * src/treesit.c (Vtreesit_str_libtree_sitter): (Vtreesit_str_tree_sitter): (Vtreesit_str_dot): (Vtreesit_str_question_mark): (Vtreesit_str_star): (Vtreesit_str_plus): (Vtreesit_str_pound_equal): (Vtreesit_str_pound_match): (Vtreesit_str_pound_pred): (Vtreesit_str_open_bracket): (Vtreesit_str_close_bracket): (Vtreesit_str_open_paren): (Vtreesit_str_close_paren): (Vtreesit_str_space): (Vtreesit_str_equal): (Vtreesit_str_match): (Vtreesit_str_pred): New variables. (treesit_load_language): (Ftreesit_pattern_expand): (Ftreesit_query_expand): (treesit_eval_predicates): Use new varaibles. (treesit_check_buffer_size): (treesit_compose_query_signal_data): (treesit_check_range_argument): (Ftreesit_parser_set_included_ranges): (treesit_predicate_capture_name_to_node): (treesit_predicate_equal): (treesit_predicate_match): (treesit_predicate_pred): Use build_string for signal message. (syms_of_treesit): Initialize new variables.
* | | ; Merge from origin/emacs-29Stefan Monnier2023-01-140-0/+0
|\| | | | | | | | | | | | | | | | | | | | The following commits were skipped: 59c3c53efa4 * lisp/subr.el (combine-change-calls-1): Fix bug#60467 9f8f8ed1baf Adapt tramp-tests.el (do not merge with master)
| * | * lisp/subr.el (combine-change-calls-1): Fix bug#60467Stefan Monnier2023-01-131-7/+7
| | | | | | | | | | | | | | | Don't stop at timestamps. Strip them for now, to be on the safe side. Don't merge into `master` where we'll use a better fix.
| * | Adapt tramp-tests.el (do not merge with master)Michael Albinus2023-01-131-8/+11
| | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-container-p): Rename from `tramp--test-docker-p'. Handle also "podman" method. Adapt callees.
* | | Merge from origin/emacs-29Stefan Monnier2023-01-1418-45/+167
|\| | | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 861556c1339 Fix minibuffer-completion tests c0578edc8fc ; * doc/misc/eglot.texi (Troubleshooting Eglot): Fix typo... c6bbf9cc270 Add c-ts-mode tests a760364f5f3 Fix c-ts-mode--fill-paragraph 2a2b1d09ac7 Fix minor issues with 'pp' and related commands dfb38fb2ee6 ; Improve documentation of tree-sitter node comparison e8a89a18b69 ; Fix non-tree-sitter builds f27a330b99e ; Fix typo in ert-with-temp-file 956889d8ff1 Equal now recognizes tree-sitter nodes (bug#60659) 8f446c2d397 Fix c-ts-mode comment indentation (bug#60270) 083badc9c12 * lisp/subr.el (while-let): Use if-let, not if-let* (bug#... 9ecebcdded1 * lisp/simple.el (next-completion): Handle first completi... cfd2b3504ab Fix encoding with 'utf-8-auto' 53b47df8229 Report cursor correctly on PGTK when there is a margin # Conflicts: # etc/NEWS
| * Fix minibuffer-completion testsEli Zaretskii2023-01-131-1/+1
| | | | | | | | | | * test/lisp/minibuffer-tests.el (completions-header-format-test): Fix the test which first fired, and then drew the target...
| * ; * doc/misc/eglot.texi (Troubleshooting Eglot): Fix typo (bug#60780).Arash Esbati2023-01-131-1/+1
| |
| * Add c-ts-mode testsDaniel Martín2023-01-132-0/+75
| | | | | | | | | | | | | | | | * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New .erts file to test indentation of typical C constructs and prevent regression of bug fixes. * test/lisp/progmodes/c-ts-mode-tests.el: New file with c-ts-mode tests.
| * Fix c-ts-mode--fill-paragraphYuan Fu2023-01-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | Example: doc: /* Return non-nil if NODE1 and NODE2 are the same node. If any one of NODE1 and NODE2 is nil, return nil. This function uses the same equivalence metric as `equal'. */ * lisp/progmodes/c-ts-mode.el (c-ts-mode--fill-paragraph): Fix the case where there are words before the /*, like the example above.
| * Fix minor issues with 'pp' and related commandsEli Zaretskii2023-01-132-10/+20
| | | | | | | | | | | | | | | | | | * etc/NEWS: * lisp/emacs-lisp/pp.el (pp-use-max-width, pp-emacs-lisp-code): Mention in doc string that formatting via 'pp-emacs-lisp-code' could be slow. (pp-eval-expression, pp-macroexpand-expression): Honor 'pp-use-max-width'. (Bug#58687)
| * ; Improve documentation of tree-sitter node comparisonEli Zaretskii2023-01-132-4/+10
| | | | | | | | | | | | * doc/lispref/parsing.texi (Accessing Node Information): * src/treesit.c (Ftreesit_node_eq): Improve documentation of node comparison.
| * ; Fix non-tree-sitter buildsEli Zaretskii2023-01-131-3/+4
| | | | | | | | | | * src/fns.c (internal_equal): Call treesit_node_eq only if tree-sitter was compiled in.
| * ; Fix typo in ert-with-temp-fileStefan Kangas2023-01-131-1/+1
| | | | | | | | | | * lisp/emacs-lisp/ert-x.el (ert-with-temp-file): Fix typo. Reported by F. Jason Park <jp@neverwas.me>. (Bug#60730)
| * Equal now recognizes tree-sitter nodes (bug#60659)Yuan Fu2023-01-124-8/+23
| | | | | | | | | | | | | | | | | | | | | | Now equal uses ts_node_eq to check equality between nodes. * doc/lispref/parsing.texi: (Accessing Node Information): Update manual. * src/fns.c (internal_equal): Handle tree-sitter nodes. * src/treesit.c (treesit_node_eq): New function. (Ftreesit_node_eq): Factor out. Update docstring. * src/treesit.h (treesit_node_eq): Declare new function.
| * Fix c-ts-mode comment indentation (bug#60270)Yuan Fu2023-01-121-2/+4
| | | | | | | | | | * lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): Move the star rule up.
| * * lisp/subr.el (while-let): Use if-let, not if-let* (bug#60758).Sean Whitton2023-01-121-1/+1
| |
| * * lisp/simple.el (next-completion): Handle first completion specially.Gregory Heytings2023-01-121-0/+8
| | | | | | | | | | | | | | | | When completions-header-format is nil and completion-show-help is nil, the first completion is at the beginning the buffer, so 'M-<down>' missed it and moved to the second completion. Handle this case by setting/checking the special text-property 'first-completion' that is nil at the first call (bug#60411).
| * Fix encoding with 'utf-8-auto'Eli Zaretskii2023-01-123-17/+18
| | | | | | | | | | | | | | | | | | | | | | | | * src/coding.c (encode_coding_utf_8): Fix encoding with 'utf-8-auto': it should produce BOM, per the documentation of the :bom attribute. (Bug#60750) * lisp/international/mule.el (define-coding-system): Doc fix. * test/src/coding-tests.el (coding-tests): Use 'with-coding-priority' instead of 'prefer-coding-system', as the latter has global persistent effect and affects further tests.
| * Report cursor correctly on PGTK when there is a marginPo Lu2023-01-121-1/+2
| | | | | | | | | | * src/pgtkterm.c (pgtk_draw_window_cursor): Adjust frame_x by the margin width as well.
* | Update from Gnulib by running admin/merge-gnulibPaul Eggert2023-01-1313-26/+130
| | | | | | | | | | | | | | | | | | This adds a new file m4/xattr.m4 from Gnulib, for NFS v4 attribute copying. Also, do these changes by hand: * configure.ac: Mention $LIB_XATTR" in ACL summary. * src/Makefile.in (QCOPY_ACL_LIB): New macro. (LIBES): Use it.
* | * lisp/apropos.el (apropos-safe-documentation): Use `function-documentation`Stefan Monnier2023-01-131-17/+7
| |
* | (function-documentation): Make it work for the remaining casesStefan Monnier2023-01-132-14/+31
| | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (function-documentation): Use `internal-subr-documentation` and make it work also with symbols and macros. * src/doc.c (Fsubr_documentation): New function, extracted from Fdocumentation. (syms_of_doc): defsubr it. (Fdocumentation): Don't handle subrs and module functions here.
* | * lisp/reveal.el (reveal-open-new-overlays): Use `invisible-p`Stefan Monnier2023-01-131-11/+7
| |
* | undo-tests.el: Tests for bug#60467Gregory Heytings2023-01-131-0/+72
| | | | | | | | | | | | * test/src/undo-tests.el (undo-test-combine-change-calls-1) (undo-test-combine-change-calls-2, undo-test-combine-change-calls-3): New tests.