aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Preferably print package-local nicknameGerd Möllmann2023-12-203-8/+24
| | | | | | | | | If "package" has a local nickname "p", prefer printing package:foo as p:foo because that's why we have the nickname. * src/pkg.c (pkg_local_nickname): New function. * src/lisp.h: Declare new function. * src/print.c (print_symbol): Use it to find a nickname, if any.
* More package-local nicknamesGerd Möllmann2023-12-191-2/+5
| | | | | * lisp/emacs-lisp/pkg.el (find-package): Search in local nicknames. * src/pkg.c (pkg_find_package): Fix last change.
* Local package nicknames -> package objectsGerd Möllmann2023-12-191-0/+11
| | | | Also, find nicknames in pkg_find_package.
* First steps for package-local nicknamesGerd Möllmann2023-12-192-0/+21
| | | | | | | * src/lisp.h (Lisp_Package): New member local_nicknames. * src/pkg.c (Fpackage_percent_local_nicknames, (Fpackage_percent_set_local_nicknames): New functions. (syms_of_pkg): Defsubrs for new functions.
* Merge remote-tracking branch 'origin/master' into scratch/pkgGerd Möllmann2023-12-1931-142/+1380
|\
| * debug.el: Straighten the code that find the "base" of the backtraceStefan Monnier2023-12-181-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let the caller tell us clearly where is the base of the backtrace, if it's not `debug`. This is done by passing a new `:backtrace-base` keyword argument to `debug`. Then use this info systematically in all the places where we access the real C-level backtrace, to try and avoid inconsistencies and brittle code that tries to enumerate the expected frames we're in. * src/eval.c (get_backtrace_starting_at): Add support for offsets in the `base` argument. (Fbacktrace_debug): Add optional `base` argument. * lisp/emacs-lisp/debug.el (debug, debugger-frame, debugger-frame-clear): Use `debugger--backtrace-base` when calling `backtrace-debug`. (debugger-setup-buffer): Use `debugger--backtrace-base` when calling `backtrace-get-frames`. (debugger-frame-number): Drop `skip-base` arg, assume it's never nil. Add sanity check. (debugger--backtrace-base): Use the `:backtrace-base` info in `debugger-args`. (debugger-eval-expression): Adjust call to `debugger-frame-number`. (debug--implement-debug-on-entry): Pass appropriate `:backtrace-base`.
| * Further fixes for problems uncovered by the previous fixPo Lu2023-12-181-9/+14
| | | | | | | | | | | | | | * src/sfnt.c (sfnt_deltap): Enable deltap instructions again, since they now serve a purpose. (sfnt_compute_phantom_points): Round phantom points to match the behavior of other TrueType scalers.
| * ; * src/sfnt.c: Fix typo.Po Lu2023-12-181-1/+1
| |
| * * src/sfnt.c (sfnt_interpret_mdap): Correct MDAP opcode.Po Lu2023-12-181-4/+4
| |
| * Fix typo in earlier changesPo Lu2023-12-181-5/+5
| | | | | | | | | | | | * src/sfnt.c (sfnt_poly_edges_exact): Don't overwrite the remainder of an ascending edge with its covered height. (main): Adjust tests.
| * Enable the new font scalerPo Lu2023-12-183-30/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/sfnt.c (sfnt_curve_is_flat): Tighten threshold for flat curves. (sfnt_insert_raster_step): Rewrite loop for clarity. (sfnt_poly_set_steps): New function; fill small spans with a plain unexceptional loop rather than memset. (sfnt_poly_steps): Call that function. (sfnt_verbose, main): Adjust tests such that the scaler can be selected at runtime. * src/sfnt.h: Update prototypes. * src/sfntfont.c (sfntfont_get_glyph_raster) (syms_of_sfntfont) <sfnt_raster_glyphs_exactly>: New variable.
| * * src/sfnt.h (sfnt_coerce_fixed): New macro.Po Lu2023-12-171-1/+2
| |
| * ; * src/sfnt.c: Fix typos.Po Lu2023-12-171-2/+2
| |
| * Introduce the rudiments of a new font rasterizerPo Lu2023-12-171-14/+913
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/sfnt.c (xzalloc): New function. (sfnt_poly_edges): Remove redundant statement. (sfnt_add, sfnt_sub, sfnt_mul): Move macro definitions above the new scaler. (sfnt_build_outline_fedges, sfnt_insert_raster_step) (sfnt_fedge_sort, sfnt_poly_edges_exact, sfnt_compute_fill) (sfnt_poly_steps, sfnt_raster_steps, sfnt_raster_edges_exact) (sfnt_raster_glyph_outline_exact): New functions, presently disabled. (sfnt_x_raster, main): Introduce new tests.
| * Silence warning in print.cStefan Kangas2023-12-171-1/+1
| | | | | | | | * src/print.c (print_bool_vector): Silence warning.
| * Merge from origin/emacs-29Eli Zaretskii2023-12-161-4/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bf4ccb0be07 ; * lisp/term.el (term--xterm-paste): Fix last change. 0d9e2e448d9 ; * doc/lispref/functions.texi (Function Documentation): ... 791cc5065da Fix shaping of Sinhala text efcbf0b5abf Add use cases of (fn) documentation facility. c3331cb3659 Fix pasting into terminal-mode on term.el 5be94e2bce5 Fix opening directory trees from Filesets menu 6b6e770a1f5 Eglot: Add ruff-lsp as an alternative Python server ed8a8a5ba16 Fix symbol name in Multisession Variables examples 400ef15bdc3 js-ts-mode: Fix font-lock rules conflict c165247c300 Add indentation rules for bracketless statements in js-ts... 7f1bd69cd19 Fix c-ts-mode bracketless indentation for BSD style (bug#... e23068cb9a1 Add missing indent rules in c-ts-mode (bug#66152) d2c4b926ac2 Fix treesit-default-defun-skipper (bug#66711) 9874561f39e Fix treesit-node-field-name and friends (bug#66674) eace9e11226 python-ts-mode: Highlight default parameters 23c06c7c308 Update to Org 9.6.13
| | * Fix treesit-node-field-name and friends (bug#66674)Yuan Fu2023-12-101-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So turns out ts_node_field_name_for_child takes a named node index, but we were passing it normal index that counts both named and anonymous nodes. That's what makes the field name all wrong in treesit explorer. * doc/lispref/parsing.texi: (Accessing Node Information): Update docstring. * lisp/treesit.el (treesit-node-index): Add some unrelated comment. (treesit-node-field-name): Get named node index rather than all node index. * src/treesit.c (Ftreesit_node_field_name_for_child): Update docstring, use ts_node_named_child_count.
| * | ; * src/androidfns.c (syms_of_androidfns) <android-os-language>: Doc fix.Eli Zaretskii2023-12-161-6/+5
| | |
| * | ; * src/androidfns.c (syms_of_androidfns_for_pdumper): Fix crash.Po Lu2023-12-141-18/+23
| | |
| * | Respect Language & Input preferences under AndroidPo Lu2023-12-141-0/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/android.texi (Android Environment): * doc/emacs/cmdargs.texi (General Variables): Mention the manner in which the default language environment is selected on Android. * lisp/startup.el (normal-top-level): If android and initial-window-system, call android-locale-for-system-language for the default locale name. * lisp/term/android-win.el (android-locale-for-system-language): New function. * src/androidfns.c (syms_of_androidfns_for_pdumper): New function. (syms_of_androidfns) <Vandroid_os_language>: New variable. Call syms_of_androidfns_for_pdumper both now and after loading the dump image.
| * | Correct implementation of UTPPo Lu2023-12-111-1/+27
| | | | | | | | | | | | | | | * src/sfnt.c (sfnt_interpret_utp): Derive which flags to reset from the freedom vector.
| * | Merge from origin/emacs-29Eli Zaretskii2023-12-105-9/+9
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | 2773cf9e013 ; Fix typos 020aff95fa3 ; Fix typos in ChangeLog files 5e03a621efc ; * lisp/progmodes/c-ts-mode.el (c-ts-mode--else-heuristi... f0734e1c0d1 Fix c-ts-mode indent heuristic (bug#67417) 08fc6bace20 Fix c-ts-mode indentation (bug#67357) 71bc2815ccd Add font-locking for hash-bang lines in typescript-ts-mode. db8347c8c87 Add font-locking for hash-bang lines in js-ts-mode 91f2ade57bb ruby-mode: Better detect regexp vs division (bug#67569)
| | * ; Fix typosStefan Kangas2023-12-101-1/+1
| | |
| | * ; Fix typos in ChangeLog filesStefan Kangas2023-12-104-8/+8
| | |
| * | ; Fix a few more typosStefan Kangas2023-12-102-3/+3
| | |
| * | ; Fix typosStefan Kangas2023-12-1017-36/+36
| | |
| * | Merge from origin/emacs-29Eli Zaretskii2023-12-097-7/+7
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0f361cc985d ; Minor copyedits in description of ':box' face property 46fe7a17f53 Fix dragging mode line on text terminals with a mouse (bu... 12daf386f37 ; * doc/lispref/processes.texi (Network): Fix wording and... 037d858dc1a (rust-ts-mode): Set electric-indent-chars dc9b733ab88 js-ts-mode: Highlight function parameters inside destruct... 4a72f13bdfb js-ts-mode: Highlight property shorthands in assignments 83ed9018ede (js--treesit-font-lock-settings): Highlight parameters in... ad0f87bb4c3 (js--treesit-font-lock-settings): Remove some duplicates 71c5f3694fd ; Another fix of doc string of 'message-mail-user-agent' ... 04a39353bae ; * lisp/gnus/message.el (message-mail-user-agent): Doc f... 82ddcf37ec6 ; * doc/lispref/files.texi (Changing Files): Fix last cha... 89068516b3e Don't claim to signal an error when deleting a nonexistin... 4fd254e1830 * lisp/indent.el (indent-rigidly): Improve prompt (bug#67... 5f923ff1a6a ; Fix typos a1f88963f5d rust-ts-mode--comment-docstring: Handle block doc comments a547b0e2e83 rust-ts-mode--comment-docstring: Fix/improve the previous...
| | * ; Fix typosStefan Kangas2023-12-038-8/+8
| | |
| * | Correct phantom point generation and MDAPPo Lu2023-12-091-35/+32
| | | | | | | | | | | | | | | | | | | | | * src/sfnt.c (sfnt_interpret_mdrp): Cease applying cvt cut in, as this is contrary to the specification. (sfnt_interpret_simple_glyph): Correct typo. (main): Revise tests.
| * | Display glyphs whose first contours commence at originPo Lu2023-12-081-2/+8
| | | | | | | | | | | | | | | | | | * src/sfnt.c (sfnt_build_append): Don't disregard redundant motion if outline is empty. Problem encountered in the "M" glyph within Source Code Pro VF Italic.
| * | Set a default locale on AndroidPo Lu2023-12-071-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/android.texi (Android Environment): Revise for change. * src/android.c (initEmacs): Set LANG to either en_US.utf8 or C, subject to whether the system is newer than Android 5.0 (inclusive).
| * | Avoid infloop with wide imagesEli Zaretskii2023-12-041-1/+4
| | | | | | | | | | | | | | | * src/xdisp.c (produce_image_glyph): Avoid inflooping under visual-line-mode when wide images are displayed. (Bug#67533)
| * | Improve 'window-text-pixel-size' when buffer includes imagesEli Zaretskii2023-12-031-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (window_text_pixel_size): Fix computation of Y when IGNORE_LINE_AT_END is non-nil and there's a 'display' property at TO. Improve movement to beginning of screen line at start. Fix computation of Y when lines are truncated and a line begins with a 'display' property at TO. (produce_image_glyph): Don't crop image glyph when word-wrap is in effect. (Bug#67533)
* | | Completion experimentsGerd Möllmann2023-12-113-40/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/pkg.c (pkg_symbol_completion_string, pkg_strip_package_prefix): New functions. (init_pkg_once): Add QCsymbol. * src/lisp.h: Declare new functions. * src/minibuf.c (Ftry_completion, Fall_completions, Ftest_completion): Use new functions. * lisp/simple.el (execute-extended-command): Use read-from-string instead of intern-soft to determine command function for the case it has a package prefix.
* | | Make global obarray a fake obarrayGerd Möllmann2023-12-101-1/+2
| | | | | | | | | | | | | | | * src/lread.c (init_obarray_once): Make obarray a vector containing the emacs package.
* | | Make sure *package* is buffer-localGerd Möllmann2023-12-055-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | * src/pkg.c (pkg_in_emacs_package): New function. * src/lisp.h: Declare it. * src/eval.c (run_hook_with_args): Use it. * src/lread.c (Fload): Use it. * src/xdisp.c (handle_fontified_prop): Use it.
* | | Setting buffer-local *package*Gerd Möllmann2023-12-042-13/+26
| | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/pkg.el (buffer-package): Get buffer's *package*. (set-buffer-package): Set it. * src/eval.c (Fdefault_buffer_local_value): Rewrite. (Fset_default_buffer_local_value): New function.
* | | Fix for vectorlike printing refactoringGerd Möllmann2023-12-031-1/+1
| | |
* | | Merge remote-tracking branch 'origin/master' into scratch/pkgGerd Möllmann2023-12-036-193/+200
|\ \ \ | |/ /
| * | Merge from origin/emacs-29Eli Zaretskii2023-12-022-2/+6
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f882f4ee97 ; Fix doc string punctuation in ruby-ts-mode.el. 546a68925c9 Fix 'Info-goto-node-web' when NODE is given in various forms 7ff943044e9 Fix setting cursor when the window's op line has 'line-pr... 7f0bef47ddd Drop extra parenthesis in example code in Emacs Lisp Intr... fbaf113bf38 rust-ts-mode: appropriately fontify doc strings bd62bdbc680 Fix example code in Emacs Lisp Introduction manual c7e459132a9 Fix example in Emacs Lisp Intro manual a6e9c26c8f4 ; * doc/emacs/files.texi (Save Commands): Fix last change. f6a06ed6c5d Elisp manual: Mention 'write-region' for saving the buffer 4774a3abb4b Document, that PROCESS of signal-process can be a string ab126284081 Fix typescript-ts-mode indentation for switch statements
| | * Fix setting cursor when the window's op line has 'line-prefix'Eli Zaretskii2023-12-021-2/+4
| | | | | | | | | | | | | | | * src/xdisp.c (set_cursor_from_row): Skip glyphs that come from a string if their 'avoid_cursor_p' flag is set. (Bug#67486)
| | * Document, that PROCESS of signal-process can be a stringMichael Albinus2023-11-301-0/+2
| | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Signals to Processes) [signal-process]: * src/process.c (Fsignal_process): Document, that PROCESS can be a string.
| * | Fix mode-line-inactive faceEli Zaretskii2023-12-011-2/+4
| | | | | | | | | | | | | | | | | | | | | * src/xfaces.c (Finternal_set_lisp_face_attribute): Fix validation of the :style attribute of :box. Previously, nil for :style was not accepted, which causes 'mode-line-inactive' face to be rejected. (Bug#67567)
| * | Fix validation of :box face attributeEli Zaretskii2023-11-301-3/+6
| | | | | | | | | | | | | | | | | | | | | * src/xfaces.c (Finternal_set_lisp_face_attribute): Fix the logic of validating the :box attribute. The previous code would always allow invalid attributes of :box as long as the invalid attribute was the last in the list. (Bug#67404)
| * | * src/pdumper.c (dump_vectorlike): Avert compiler warning.Po Lu2023-11-261-1/+1
| | |
| * | Refactor pseudovector printingMattias Engdegård2023-11-251-135/+134
| | | | | | | | | | | | | | | | | | | | | | | | * src/print.c (print_vectorlike): Split into... (print_bignum, print_bool_vector, print_vectorlike_unreadable): ...these functions. Exhaustive switch on pseudovector type. Remove unused return value. (print_object): Use new functions and simplify.
| * | ; * src/pdumper.c (dump_vectorlike): Populate switch fully.Mattias Engdegård2023-11-251-45/+30
| | |
| * | regex-emacs.c (forall_firstchar): Fix regression bug#67226Stefan Monnier2023-11-251-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All zero-width operations need to be taken into account when reaching `succeed` in `mutually_exclusive_one`! * src/regex-emacs.c (forall_firstchar_1): Call `f` for all zero-width matching operators. (analyze_first_fastmap, analyze_first_null, mutually_exclusive_one): Adjust accordingly.
* | | Merge remote-tracking branch 'origin/master' into scratch/pkgGerd Möllmann2023-11-2520-23/+203
|\ \ \ | |/ /
| * | ; * src/module-env-30.h: Fix commentaryPhilipp Stephani2023-11-231-3/+3
| | |