aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/calc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use single-arg form of `signal` to re-throw an errorStefan Monnier13 hours1-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/smerge-mode.el (smerge-extend): * lisp/vc/diff-mode.el (diff-beginning-of-file-and-junk): * lisp/transient.el (transient--with-emergency-exit): * lisp/textmodes/tex-mode.el (latex-forward-sexp): * lisp/tar-mode.el (tar-mode): * lisp/savehist.el (savehist--reload): * lisp/progmodes/octave.el (inferior-octave-resync-dirs): * lisp/progmodes/js.el (js--re-search-forward): * lisp/plstore.el (plstore--decrypt): * lisp/net/dbus.el (dbus-ignore-errors, dbus-register-signal) (dbus-handle-event): * lisp/mouse.el (mouse-drag-track, mouse-drag-region-rectangle): * lisp/minibuffer.el (completion-pcm--find-all-completions): * lisp/mail/rfc2231.el (rfc2231-parse-string): * lisp/mail/rfc2047.el (rfc2047-encode-region): * lisp/jit-lock.el (jit-lock-fontify-now): * lisp/international/ja-dic-utl.el (skkdic-lookup-key): * lisp/gnus/nnselect.el (nnselect-generate-artlist): * lisp/gnus/mml-sec.el (mml-secure-epg-encrypt, mml-secure-epg-sign): * lisp/gnus/mail-source.el (mail-source-fetch-pop) (mail-source-check-pop): * lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): * lisp/files.el (basic-save-buffer-2, files--ensure-directory) (files--force, copy-directory): * lisp/eshell/esh-io.el (eshell-output-object-to-target): * lisp/epa.el (epa-decrypt-file, epa-verify-file, epa-sign-file) (epa-encrypt-file, epa-decrypt-region, epa-verify-region) (epa-sign-region, epa-encrypt-region, epa-delete-keys) (epa-export-keys, epa-insert-keys): * lisp/emacs-lisp/package.el (package--unless-error): * lisp/emacs-lisp/multisession.el (multisession--read-file-value): * lisp/emacs-lisp/lisp.el (up-list-default-function): * lisp/desktop.el (desktop-kill): * lisp/calendar/time-date.el (date-to-time): * lisp/calendar/appt.el (appt-display-message): * lisp/calc/calc.el (calc-do): * lisp/bookmark.el (bookmark-handle-bookmark): * src/fileio.c (report_file_errno): * lisp/vc/vc.el (vc-checkout, vc-pull): Use `(signal err)` instead of `(signal (car err) (cdr err))`.
* ; calc: Correct width of rules composed of Unicode glyphsJacob S. Gordon2026-01-171-2/+6
| | | | | | | | | | With higher values of 'calc-string-maximum-character', rules made up of glyphs of non-unit width can be the wrong length. Calculate the number of characters in the rule based on the display width, rounded up to the nearest integer. Refines feature introduced in bug#78528. * lisp/calc/calccomp.el (math-comp-simplify-term): Calculate rule width with a ratio of 'string-pixel-width's.
* ; calc: Improve alignment for Unicode stringsJacob S. Gordon2026-01-171-1/+5
| | | | | | | | | With higher values of 'calc-string-maximum-character' the string length can differ from the displayed width. Calculate alignment offsets based on the the display width, rounded up to the nearest integer. Refines feature introduced in bug#78528. * lisp/calc/calccomp.el (math-comp-width): Replace 'length' with a ratio of 'string-pixel-width's.
* calc: Improve handling of invalid 'calc-string-maximum-character'Jacob S. Gordon2026-01-171-11/+13
| | | | | | | | | | | | | | | Previously, if 'calc-string-maximum-character' wasn't a valid character 'math-vector-is-string' would throw an error in the comparison, leading to an incomplete display of the stack and a cryptic error message. Instead, have 'math-vector-is-string' return nil, which effectively disables the display of strings. Refines feature introduced in bug#78528. * doc/misc/calc.texi (Customizing Calc): Update description of behavior for invalid 'calc-string-maximum-character'. * lisp/calc/calccomp.el (math-vector-is-string): Return nil when 'calc-string-maximum-character' doesn't represent a character. * test/lisp/calc/calc-tests.el (calc-math-vector-is-string): Correct and simplify tests.
* ; Add 2026 to copyright years.Sean Whitton2026-01-0143-43/+43
|
* Merge from origin/emacs-30Eli Zaretskii2025-12-061-2/+2
|\ | | | | | | | | | | | | | | 998d45d5d10 ; * lisp/calc/calc-units.el: Better reference for CODATA ... fae83f1eb8b ; Improve documentation of 'char-script-table' 3e489ed8049 ; * src/font.c (Flist_fonts): Doc fix. 4c292b6f703 ; vc-dir-clean-files: Improve docstring and message (bug#... 8a6b84dbcbc Fix doc string of 'display-buffer'
| * ; * lisp/calc/calc-units.el: Better reference for CODATA 2022.Ulrich Müller2025-12-061-2/+2
| |
* | * lisp/calc/calc.el (calc): Ony substitute binding ofAndreas Schwab2025-09-141-1/+3
| | | | | | | | calc-help-prefix after calc-ext has been loaded.
* | Fix recursive load when 'calc-always-load-extensions' is setSean Devlin2025-08-301-6/+2
| | | | | | | | | | * lisp/calc/calc.el (calc-create-buffer): Call 'calc-load-everything'. (calc-always-load-extensions): Delete erroneous stanza. (Bug#79157)
* | Add user option to inhibit Calc startup message (bug#79143)Sean Devlin2025-08-301-7/+14
| | | | | | | | | | | | | | | | | | | | | | * doc/misc/calc.texi (Customizing Calc): Document the new option. * etc/NEWS: Document the new option. * lisp/calc/calc.el (calc-inhibit-startup-message): New option to inhibit Calc’s startup message. (calc): Respect the option in Calc’s startup code. * test/lisp/calc/calc-tests.el (ert): Require ert-x for 'ert-with-message-capture'. (calc-inhibit-startup-message): Test the new user option.
* | calc: Allow strings with character codes above Latin-1Jacob S. Gordon2025-06-142-4/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current behavior of the functions 'calc-display-strings', 'strings', and 'bstrings' is to skip any vector containing integers outside the Latin-1 range (0x00-0xFF). We introduce a custom variable 'calc-string-maximum-character' to replace this hard-coded maximum, and to allow vectors containing higher character codes to be displayed as strings. The default value of 0xFF preserves the existing behavior. * lisp/calc/calc.el (calc-string-maximum-character): Add custom variable 'calc-string-maximum-character'. * lisp/calc/calccomp.el (math-vector-is-string): Replace hard-coded maximum with 'calc-string-maximum-character', and the 'natnump' assertion with 'characterp'. The latter guards against the maximum being larger than '(max-char)', but not on invalid types of the maximum such as strings. * test/lisp/calc/calc-tests.el (calc-math-vector-is-string): Add tests for 'math-vector-is-string' using different values of 'calc-string-maximum-character'. * doc/misc/calc.texi (Quick Calculator, Strings, Customizing Calc): Add variable definition for 'calc-string-maximum-character' and reference thereof when discussing 'calc-display-strings'. Generalize a comment about string display and availability of 8-bit fonts. (Bug#78528)
* | Merge from savannah/emacs-30Yuan Fu2025-04-181-8/+1
|\ \ | |/ | | | | | | 2b535a9c771 ; Improve documentation of some functions in files-x.el 45cf832ac75 Fix deleting the first line of calc trail
| * Fix deleting the first line of calc trailWojciech Siewierski2025-04-151-8/+1
| | | | | | | | | | | | * lisp/calc/calc-trail.el (calc-trail-kill): Remove the check preventing the removal of the first trail line, which is no longer relevant since commit 8e1376a3912. (Bug#77816)
| * Update copyright year to 2025Stefan Kangas2025-01-0243-43/+43
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Don't warn about lexbind cookies when loading calc settingsVisuwesh2025-04-152-2/+4
| | | | | | | | | | | | * lisp/calc/calc-mode.el (calc-settings-file-name): * lisp/calc/calc.el (calc-mode): Bind 'warning-inhibit-types' to avoid lexbind cookie missing warning.
* | (calc-save-modes): Add a `lexical-binding` cookieStefan Monnier2025-04-131-15/+9
| | | | | | | | | | * lisp/calc/calc-mode.el (calc-save-modes): Add a `lexical-binding` cookie when it is safe. Use `pcase-dolist` and `pp`.
* | lisp/calc/calc-keypd.el (calc-keypad-vector-menu): Don't quote lambdaStefan Monnier2025-04-041-5/+5
| |
* | Prefer '(evenp A)' to '(= 0 (logand A 1))'Stefan Kangas2025-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | * lisp/calc/calc-arith.el (calcFunc-dint): * lisp/calculator.el (calculator-expt): * lisp/emacs-lisp/bytecomp.el (byte-compile-unfold-bcf): * lisp/emacs-lisp/elint.el (elint-check-defcustom-form): * lisp/ps-print.el (ps-print-page-p): (ps-print-sheet-p): Prefer '(evenp A)' to '(= 0 (logand A 1))' and variations thereof.
* | Prefer '(evenp A)' to '(= 0 (% A 2))'evenp-oddpStefan Kangas2025-02-175-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calc/calc-comb.el (math-prime-test): * lisp/calc/calc-keypd.el (calc-keypad-press): * lisp/calc/calc-math.el (math-sqrt): (math-sqrt-raw): * lisp/calc/calc-misc.el (math-iipow): (math-iipow-show): * lisp/calc/calc-stat.el (calcFunc-vmedian): * lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-2week): (cal-tex-cursor-filofax-daily): * lisp/elec-pair.el (electric-pair-post-self-insert-function): * lisp/emacs-lisp/checkdoc.el (checkdoc-in-example-string-p): * lisp/emacs-lisp/eieio.el (defclass): * lisp/emacs-lisp/ert-x.el (ert-propertized-string): * lisp/emacs-lisp/ert.el (ert--significant-plist-keys): (ert--plist-difference-explanation): * lisp/emacs-lisp/helper.el (Helper-help-scroller): * lisp/emacs-lisp/pcase.el (pcase-setq): * lisp/files-x.el (setq-connection-local): * lisp/gnus/gnus-uu.el (gnus-uu-post-encoded): * lisp/gnus/message.el (message-make-in-reply-to): * lisp/gnus/nndiary.el (nndiary-last-occurrence): (nndiary-next-occurrence): * lisp/mail/rfc2047.el (rfc2047-decode-region): * lisp/play/5x5.el (5x5-draw-grid): * lisp/play/gametree.el (gametree-compute-reduced-score): (gametree-insert-new-leaf): (gametree-break-line-here): * lisp/play/zone.el (zone-fret): * lisp/vc/ediff-ptch.el (ediff-get-patch-buffer): * lisp/yank-media.el (yank-media--utf-16-p): Prefer '(evenp A)' to '(= 0 (% A 2))' and variations thereof.
* | Prefer '(oddp A)' to '(= 1 (% A 2))'Stefan Kangas2025-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/align.el (align-match-tex-pattern): * lisp/calc/calc-funcs.el (math-bernoulli-number): * lisp/cedet/semantic/bovine/el.el (semantic-ctxt-current-assignment): * lisp/comint.el (comint-within-quotes): * lisp/emacs-lisp/chart.el (chart-axis-draw): * lisp/emacs-lisp/cl-extra.el (cl-round): * lisp/emacs-lisp/eieio.el (defclass): * lisp/emacs-lisp/elint.el (elint-check-setq-form): * lisp/emulation/cua-rect.el (cua--rectangle-right-side): * lisp/progmodes/gud.el (gud-gdb-completions-1): * lisp/ps-print.el (ps-end-job): * lisp/ses.el (ses-center): * lisp/vc/ediff-ptch.el (ediff-get-patch-buffer): Prefer '(oddp A)' to '(= 1 (% A 2))' and variations thereof.
* | Prefer oddp/evenp to cl-oddp/cl-evenpStefan Kangas2025-02-172-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calc/calc-ext.el (math-oddp): * lisp/calc/calc-misc.el (math-evenp): * lisp/calendar/todo-mode.el (todo-adjusted-category-label-length, todo-insert-category-line) (todo-update-categories-display): * lisp/emacs-lisp/cl-macs.el (cl-defstruct): * lisp/net/gnutls.el (open-gnutls-stream): * lisp/tab-line.el (tab-line-tab-face-inactive-alternating): * test/lisp/auth-source-tests.el (auth-source-test-macos-keychain-search): * test/lisp/emacs-lisp/cl-extra-tests.el (cl-extra-test-notany) (cl-extra-test-notevery): * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-adjoin-test): * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-collect) (cl-macs-loop-append/nconc, cl-macs-loop-when) (cl-macs-loop-if): * test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-remove-test) (cl-remove-if-test, cl-remove-if-not-test, cl-seq-delete-test) (cl-delete-if-test, cl-delete-if-not-test) (cl-seq-substitute-if-test, cl-seq-substitute-if-not-test) (cl-find-if-test, cl-find-if-not-test, cl-position-if-test) (cl-seq-count-test, cl-count-if-test, cl-count-if-not-test) (cl-member-if-test, cl-member-if-not-test, cl-assoc-if-test) (cl-assoc-if-not-test, cl-rassoc-if-test) (cl-rassoc-if-not-test): * test/src/treesit-tests.el (treesit-search-forward-predicate): Prefer oddp/evenp to cl-oddp/cl-evenp where possible. * lisp/calc/calc-ext.el (cl-lib): * lisp/calc/calc-misc.el (cl-lib): Don't require.
* | Delete redundant lambdas around unary functionsStefan Kangas2025-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not just stylistic, but also slightly faster. These are all regular defuns, of course, as this won't work with macros and defsubsts. * lisp/calc/calc-nlfit.el (math-nlfit-fit-curve) (calc-fit-hubbert-linear-curve): * lisp/calendar/cal-tex.el (cal-tex-latexify-list): * lisp/calendar/todo-mode.el (todo-sort): * lisp/cedet/semantic/ctxt.el (semantic-ctxt-end-of-symbol-default) (semantic-ctxt-current-symbol-default): * lisp/cedet/semantic/symref.el (semantic-symref-result-get-files): * lisp/cedet/semantic/texi.el (semantic-texi-command-completion-list): * lisp/descr-text.el (describe-char): * lisp/emacs-lisp/eieio-datadebug.el (data-debug-add-specialized-thing): * lisp/emacs-lisp/rmc.el (read-multiple-choice--short-answers): * lisp/eshell/em-pred.el (eshell-modifier-alist): * lisp/gnus/gnus-cache.el (gnus-cache-articles-in-group): * lisp/gnus/gnus-dired.el (gnus-dired-attach): * lisp/help-mode.el (help-package-def): * lisp/ibuf-ext.el (ibuffer-mark-modified-buffers): * lisp/image/image-dired.el: * lisp/international/quail.el (quail-keyseq-translate) (quail-get-translations): * lisp/isearch.el (isearch-pre-command-hook) (search-within-boundaries): * lisp/mail/supercite.el (sc-ask): * lisp/mh-e/mh-e.el (mh-variant-set): * lisp/net/rcirc.el (rcirc-nick-channels, rcirc-channel-nicks): (rcirc-browse-url): * lisp/obsolete/thumbs.el (thumbs-cleanup-thumbsdir): * lisp/org/org-agenda.el (org-agenda-filter-completion-function): * lisp/org/org-table.el (org-table-eval-formula): * lisp/org/org.el (org-set-regexps-and-options): * lisp/org/ox.el (org-export--get-inbuffer-options): * lisp/ses.el (ses-range): * lisp/textmodes/emacs-news-mode.el (emacs-news--buttonize): * lisp/textmodes/ispell.el (ispell-begin-tex-skip-regexp): * lisp/vc/vc-cvs.el (vc-cvs-stay-local-p): * lisp/window.el (window--state-get-1): * test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-all-groups-work): Delete redundant lambdas around unary functions. (Bug#66816)
* | Avoid ln(10) expression in calc units definitionUlrich Müller2025-02-032-7/+7
| | | | | | | | | | | | | | | | | | * lisp/calc/calc-ext.el (calc-init-extensions): Autoload calc-math for math-ln-10. * lisp/calc/calc-units.el (math-standard-units): Use new ln10 constant instead of ln(10) in the decibel definition. (math-find-base-units-rec): Allow ln10 in expression. (math-to-standard-rec): Recognize the ln10 constant. (Bug#75861)
* | Update copyright year to 2025Paul Eggert2025-01-0143-43/+43
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Show the keybinding next to command in calc's xVisuwesh2024-12-261-2/+5
|/ | | | | | * lisp/calc/calc-ext.el (calc-execute-extended-command): Use M-x's ':affixation-function' to show the keybinding of the calc command next to its name. (Bug#74829)
* * lisp/calc/calc-ext.el (math-approx-sqrt-e): Doc fix (bug#73817).Ulrich Müller2024-10-151-1/+1
|
* Work around Gnuplot bug in displaying plotsEli Zaretskii2024-08-311-1/+3
| | | | | | * lisp/calc/calc-graph.el (calc-gnuplot-command): Prepend newline to Gnuplot command. Suggested by Visuwesh <visuweshm@gmail.com>. (Bug#72778)
* ; Fix typosStefan Kangas2024-07-181-1/+1
|
* Fix byte-compiler warning in calc.elPo Lu2024-07-091-1/+1
| | | | | | | * lisp/calc/calc.el (calc-embedded-open-close-new-formula-alist): Remove previously introduced quotation marks, as they bring the width of the doc string past 80.
* Checkdoc fixes in `calc/*.el`Stefan Kangas2024-07-081-1/+1
| | | | | * lisp/calc/calc.el (calc-embedded-open-close-new-formula-alist): Checkdoc fixes.
* Fix calc-trail-here for first line of trail.Ashwin Kafle2024-06-151-1/+1
| | | | | | * lisp/calc/calc.el(calc-trail-here): Change 'or' to 'and' since (bobp) can return true even if the buffer is not empty. (Bug#71533)
* Reorder Calc units tableUlrich Müller2024-06-051-8/+9
| | | | | * lisp/calc/calc-units.el (math-standard-units): Reorder the table, so that all CODATA values are grouped together.
* ; * lisp/calc/calc-units.el: Update a comment.Ulrich Müller2024-06-051-1/+1
|
* Update Calc units tableUlrich Müller2024-06-041-24/+24
| | | | | * lisp/calc/calc-units.el (math-standard-units): Update to 2022 CODATA adjustment.
* * lisp/calc/calc-prog.el: Switch to new method of detecting end of kbd macroTim Ruffing2024-03-101-6/+10
| | | | | | | | | | | | 'read-char' will no longer return -1 as of ac82baea1c41ec974ad49f2861ae6c06bda2b4ed. This switches to a cleaner method of detecting whether the end of a keyboard macro has been reached. * lisp/calc/calc-prog.el (calc--at-end-of-kmacro-p): New function. (calc-kbd-skip-to-else-if): Use the function. Co-authored-by: Stefan Monnier <monnier@iro.umontreal.ca>
* Calc parses fractions written using U+2044 FRACTION SLASHDaniel Brooks2024-01-271-0/+1
| | | | | | | | | | | | | | | | | | Fractions of the form 123⁄456 are handled as if written 123:456. Note in particular the difference in behavior from U+2215 DIVISION SLASH and U+002F SOLIDUS, which result in division rather than a rational fraction. * lisp/calc/calc-aent.el (math-read-replacement-list): Substitute a colon for any fraction slash. (Bug#66944) * test/lisp/calc/calc-tests.el (calc-frac-input): Test various fraction types. * etc/NEWS: * doc/misc/calc.texi (Fractions): Mention fraction slash, precomposed fractions. Copyright-paperwork-exempt: yes
* Merge from savannah/emacs-29Po Lu2024-01-0243-43/+43
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dc4e6b13296 ; Update copyright years in more files 64b37776318 ; Run set-copyright from admin.el 8e1c56ae467 ; Add 2024 to copyright years # Conflicts: # doc/misc/modus-themes.org # doc/misc/texinfo.tex # etc/NEWS # etc/refcards/ru-refcard.tex # etc/themes/modus-operandi-theme.el # etc/themes/modus-themes.el # etc/themes/modus-vivendi-theme.el # lib/alloca.in.h # lib/binary-io.h # lib/c-ctype.h # lib/c-strcasecmp.c # lib/c-strncasecmp.c # lib/careadlinkat.c # lib/cloexec.c # lib/close-stream.c # lib/diffseq.h # lib/dup2.c # lib/filemode.h # lib/fpending.c # lib/fpending.h # lib/fsusage.c # lib/getgroups.c # lib/getloadavg.c # lib/gettext.h # lib/gettime.c # lib/gettimeofday.c # lib/group-member.c # lib/malloc.c # lib/md5-stream.c # lib/md5.c # lib/md5.h # lib/memmem.c # lib/memrchr.c # lib/nanosleep.c # lib/save-cwd.h # lib/sha1.c # lib/sig2str.c # lib/stdlib.in.h # lib/strtoimax.c # lib/strtol.c # lib/strtoll.c # lib/time_r.c # lib/xalloc-oversized.h # lisp/auth-source-pass.el # lisp/emacs-lisp/lisp-mnt.el # lisp/emacs-lisp/timer.el # lisp/info-look.el # lisp/jit-lock.el # lisp/loadhist.el # lisp/mail/rmail.el # lisp/net/ntlm.el # lisp/net/webjump.el # lisp/progmodes/asm-mode.el # lisp/progmodes/project.el # lisp/progmodes/sh-script.el # lisp/textmodes/flyspell.el # lisp/textmodes/reftex-toc.el # lisp/textmodes/reftex.el # lisp/textmodes/tex-mode.el # lisp/url/url-gw.el # m4/alloca.m4 # m4/clock_time.m4 # m4/d-type.m4 # m4/dirent_h.m4 # m4/dup2.m4 # m4/euidaccess.m4 # m4/fchmodat.m4 # m4/filemode.m4 # m4/fsusage.m4 # m4/getgroups.m4 # m4/getloadavg.m4 # m4/getrandom.m4 # m4/gettime.m4 # m4/gettimeofday.m4 # m4/gnulib-common.m4 # m4/group-member.m4 # m4/inttypes.m4 # m4/malloc.m4 # m4/manywarnings.m4 # m4/mempcpy.m4 # m4/memrchr.m4 # m4/mkostemp.m4 # m4/mktime.m4 # m4/nproc.m4 # m4/nstrftime.m4 # m4/pathmax.m4 # m4/pipe2.m4 # m4/pselect.m4 # m4/pthread_sigmask.m4 # m4/readlink.m4 # m4/realloc.m4 # m4/sig2str.m4 # m4/ssize_t.m4 # m4/stat-time.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/stdio_h.m4 # m4/stdlib_h.m4 # m4/stpcpy.m4 # m4/strnlen.m4 # m4/strtoimax.m4 # m4/strtoll.m4 # m4/time_h.m4 # m4/timegm.m4 # m4/timer_time.m4 # m4/timespec.m4 # m4/unistd_h.m4 # m4/warnings.m4 # nt/configure.bat # nt/preprep.c # test/lisp/register-tests.el
| * ; Add 2024 to copyright yearsPo Lu2024-01-0243-43/+43
| |
* | Calc: speed up math-read-preprocess-string (bug#67536)Mattias Engdegård2023-12-191-13/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `math-read-preprocess-string` is one of the bottlenecks of `calc-eval` and was unnecessarily slow even with no substitutions made. This affected org-mode in particular, where `calc-eval` is called repeatedly to recalculate tables. Reported by Raffael Stocker who also wrote the unit tests here. * lisp/calc/calc-aent.el (math--read-preprocess-re-cache): New. (math-read-preprocess-string): Use math--read-preprocess-re-cache, first computing it if necessary. * test/lisp/calc/calc-tests.el (calc-math-read-preprocess-string): New test.
* | Cease preloading touch-screen.el outside X and AndroidPo Lu2023-12-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calc/calc.el (touch-screen-display-keyboard): * lisp/minibuffer.el (clear-minibuffer-message): * lisp/term.el (touch-screen-display-keyboard): Declare touch-screen-display-keyboard before binding or setting it. * lisp/loadup.el: Don't autoload touch-screen.el outside X and Android. * lisp/touch-screen.el: Autoload functions called from commands responding to touch screen events.
* | ; * lisp/calc/calc-units.el (math-standard-units): Fix typo.Ulrich Müller2023-11-291-1/+1
| |
* | ; * lisp/calc/calc-units.el: Update dead URL.Ulrich Müller2023-11-291-1/+1
| |
* | Update Calc units tableUlrich Müller2023-11-291-44/+49
| | | | | | | | | | | | * lisp/calc/calc-units.el (math-standard-units): Update to 2018 CODATA adjustment. Use exact value for V0. Update some spellings, e.g. "Planck constant" instead of "Planck's constant".
* | Merge from savannah/emacs-29Po Lu2023-11-241-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 1978b603bc3 Make python-ts-mode's syntax-highlighting more standardized 99658346d1e ; Improve documentation of desktop.el in user manual f7dc0202127 Fix "Text is read-only" on backspacing initial Calc input 662d54775d5 Add a doc string to simple.el (bug#67355) 5a5e36d2aad ; Improve function documentation tips 86016d8ecdb Mention "visual line" in user manual 4bb65ed77a8 ; * doc/lispref/minibuf.texi (Programmed Completion): Imp... dfb3dcb404c Allow listing Emoji from a read-only buffer # Conflicts: # lisp/calc/calc.el # lisp/international/emoji.el
| * Fix "Text is read-only" on backspacing initial Calc inputGeorge Kuzler2023-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Immediately after `calc-mode' opens the minibuffer for input (because you typed a digit, "e", etc), pressing backspace should clear the minibuffer and return you to the *Calculator* buffer. Instead, it leaves the minibuffer as-is and prints the message "Text is read-only"; this is because the function used, `erase-buffer', tries to erase the read-only minibuffer prompt. Using `delete-minibuffer-contents' fixes this, since it doesn't attempt to delete the prompt. * lisp/calc/calc.el (calcDigit-backspace): Use `delete-minibuffer-contents' instead of `erase-buffer'. (Bug#67395) Copyright-paperwork-exempt: yes
* | Declare calc-eval-error in calc.elStefan Kangas2023-11-051-0/+2
| | | | | | | | * lisp/calc/calc.el (calc-eval-error): Declare. (Bug#58801)
* | ; * lisp/calc/calc-units.el (math-standard-units): Drop comment for mu0.Ulrich Müller2023-10-201-2/+2
| |
* | ; * lisp/calc/calc-units.el (math-standard-units): Doc improvement.Mattias Engdegård2023-10-101-1/+5
| |
* | ; * lisp/calc/calc-units.el: Fix spelling of my name.Ulrich Müller2023-10-101-1/+1
| |
* | Update astronomical length units in CalcUlrich Müller2023-10-101-5/+6
| | | | | | | | | | | | * lisp/calc/calc-units.el (math-standard-units): Update the astronomical unit and the parsec, using their definitions by the International Astronomical Union.