1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00
Commit Graph

824 Commits

Author SHA1 Message Date
Jay Belanger
d2605269ba calc-mode.el (calc-basic-simplification-mode): Rename from
`calc-limited-simplification-mode'.
(calc-alg-simplification-mode): New function.

calc.el (calc-set-mode-line): Adjust mode line display
for basic simplification mode.

calc-help.el (calc-m-prefix-help): Update help message.

calc-ext.el (calc-init-extensions): Add bindings and autoloads 
for `calc-basic-simplify-mode' and `calc-alg-simplify-mode'.
2012-07-31 16:32:28 -05:00
Jay Belanger
4514c2522d calc/calc-mode.el (calc-alg-simplify-mode): Remove function.
(calc-limited-simplify-mode): Renamed from calc-lim-simplify-mode.
calc/calc-ext.el (calc-init-extensions): Fix bindings for
`calc-limited-simplify-mode'.
2012-07-29 21:32:57 -05:00
Jay Belanger
4b33740959 calc/calc-help (calc-m-prefix-help): Change message. 2012-07-29 18:25:39 -05:00
Jay Belanger
1823ac5abe calc/calc.el (calc-simplify-mode): Make 'alg the default value.
(calc-set-mode-line): Don't display "AlgSimp ".

calc/calc-mode.el (calc-alg-simplify-mode): Remove function.
(calc-lim-simplify-mode): New function.
(calc-set-simplify-mode): Default to 'alg.
(calc-default-simplify-mode): Make algebraic simplifications the default.

calc/calc-ext.el (calc-init-extensions): Remove binding for
`calc-alg-simplify-mode'. Add binding for `calc-lim-simplify-mode'.

calc/README: Mention new default simplification mode.
2012-07-29 18:19:09 -05:00
Jay Belanger
9052f9f01e calc/calc.el (math-normalize-error): New variable.
(math-normalize): Set `math-normalize-error' to t when there's an error.

calc/calc-alg.el (math-simplify): Don't simplify when `math-normalize'
returns an error.
2012-07-29 13:51:16 -05:00
Jay Belanger
e827b1eb40 calccomp.el (math-compose-expr): Undo previous change. 2012-07-27 10:05:13 -05:00
Jay Belanger
ca1302a40a calccomp.el (math-compose-expr): Use parentheses when
there is a product in the denominator of a fraction.
2012-07-26 22:48:40 -05:00
Stefan Monnier
7abaf5ccc9 Autoload more carefully from Lisp. Follow aliases for function properties.
* lisp/subr.el (autoloadp): New function.
(symbol-file): Use it.
(function-get): New function.
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Use function-get and
autoload-do-load.
* lisp/emacs-lisp/lisp-mode.el (lisp-font-lock-syntactic-face-function)
(lisp-indent-function):
* lisp/emacs-lisp/gv.el (gv-get):
* lisp/emacs-lisp/edebug.el (get-edebug-spec, edebug-basic-spec):
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form):
* lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
* lisp/emacs-lisp/autoload.el (make-autoload, autoload-print-form):
Use function-get.
* lisp/emacs-lisp/cl.el: Don't propagate function properties any more.

* src/eval.c (Fautoload_do_load): Rename from do_autoload, export to Lisp,
add argument, tune behavior, and adjust all callers.

* lisp/speedbar.el (speedbar-add-localized-speedbar-support):
* lisp/emacs-lisp/disass.el (disassemble-internal):
* lisp/desktop.el (desktop-load-file):
* lisp/help-fns.el (help-function-arglist, find-lisp-object-file-name)
(describe-function-1):
* lisp/emacs-lisp/find-func.el (find-function-noselect):
* lisp/emacs-lisp/elp.el (elp-instrument-function):
* lisp/emacs-lisp/advice.el (ad-has-proper-definition):
* lisp/apropos.el (apropos-safe-documentation, apropos-macrop):
* lisp/emacs-lisp/debug.el (debug-on-entry):
* lisp/emacs-lisp/cl-macs.el (cl-compiler-macroexpand):
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand):
* lisp/calc/calc.el (name): Use autoloadp & autoload-do-load.
2012-07-25 21:27:33 -04:00
Jay Belanger
3cc5a3a871 calc-alg.el (math-simplify-divide): Don't cross multiply
in an equation when the lhs is a variable.
2012-07-24 21:38:36 -05:00
Jay Belanger
76bc2ec7dc * calc/calc-units.el (math-consistent-units-p): Accept unit systems
as consistent units.
2012-05-19 09:59:47 -05:00
Jay Belanger
6b38973b8e * calc/calc-units.el (calc-quick-units): Use the proper units expression. 2012-05-18 22:11:09 -05:00
Jay Belanger
cd3466e6a5 * calc/calc-units.el (calc-ensure-consistent-units): Declare. 2012-05-18 22:03:35 -05:00
Jay Belanger
d14b00297f * calc/calc.el (calc-ensure-consistent-units): New variable.
* calc/calc-units.el (math-consistent-units-p, math-check-unit-consistency):
  New functions.
  (calc-quick-units, calc-convert-units): Use `math-check-unit-consistency' when 
  `calc-ensure-consistent-units' is non-nil. 
  (calc-extract-units): Fix typo.

* doc/misc/calc.texi
  (Basic Operations on Units, Customizing Calc):
  Mention `calc-ensure-consistent-units'.
2012-05-18 22:00:48 -05:00
Rüdiger Sonderfeld
b1a1071666 calc/calc-lang.el (math-C-parse-bess, math-C-parse-fma): New functions.
(math-function-table):  Add support for more C functions.
2012-05-18 10:16:23 -05:00
Paul Eggert
0bfcf5c598 Fix minor Y10k bugs.
* lisp/arc-mode.el (archive-unixdate):
* lisp/autoinsert.el (auto-insert-alist):
* lisp/calc/calc-forms.el (math-this-year):
* lisp/gnus/nnweb.el (nnweb-google-parse-1):
* lisp/emacs-lisp/copyright.el (copyright-current-year)
(copyright-update-year, copyright):
* lisp/tar-mode.el (tar-clip-time-string):
* lisp/time.el (display-time-update):
Don't assume years have 4 digits.
2012-05-03 23:13:18 -07:00
Chong Yidong
cf20dee024 Tweaks to Customize interface. Set custom-reset-button-menu to t.
* cus-edit.el (custom-commands, custom-reset-menu)
(Custom-reset-standard): Tweak labels.
(custom-reset-button-menu): Change default to t.
(custom-buffer-create-internal): For the custom-reset-button-menu
case, put the revert button first.
(custom-group-subtitle): New face.
(custom-group-value-create): Align docstring to a specific column.

* wid-edit.el (widget-documentation-link-add): Don't handle
indentation in this function.
(widget-documentation-string-indent-to): New function.
(widget-documentation-string-value-create): Use it.

* autorevert.el (auto-revert):
* epg-config.el (epg):
* ibuffer.el (ibuffer):
* mpc.el (mpc):
* ses.el (ses):
* eshell/eshell.el (eshell):
* net/ange-ftp.el (ange-ftp):
* progmodes/ebnf2ps.el (postscript):
* progmodes/flymake.el (flymake):
* progmodes/prolog.el (prolog):
* progmodes/verilog-mode.el (verilog-mode):
* progmodes/which-func.el (which-func):
* textmodes/picture.el (picture):
* textmodes/tildify.el (tildify):
* vc/ediff.el (ediff): Tweak defgroups to improve presentation in
customization buffers.
2012-04-22 21:58:00 +08:00
Chong Yidong
fb7ada5f94 Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
Glenn Morris
2bed3f0483 Add missing :version tags to new defgroups and defcustoms
* window.el (window-sides-slots):
* tool-bar.el (tool-bar-position):
* term/xterm.el (xterm-extra-capabilities):
* ses.el (ses-self-reference-early-detection):
* progmodes/verilog-mode.el (verilog-auto-declare-nettype)
(verilog-auto-wire-type)
(verilog-auto-delete-trailing-whitespace)
(verilog-auto-reset-blocking-in-non, verilog-auto-inst-sort)
(verilog-auto-tieoff-declaration):
* progmodes/sql.el (sql-login-hook, sql-ansi-statement-starters)
(sql-oracle-statement-starters, sql-oracle-scan-on):
* progmodes/prolog.el (prolog-align-comments-flag)
(prolog-indent-mline-comments-flag, prolog-object-end-to-0-flag)
(prolog-left-indent-regexp, prolog-paren-indent-p)
(prolog-paren-indent, prolog-parse-mode, prolog-keywords)
(prolog-types, prolog-mode-specificators)
(prolog-determinism-specificators, prolog-directives)
(prolog-electric-newline-flag, prolog-hungry-delete-key-flag)
(prolog-electric-dot-flag)
(prolog-electric-dot-full-predicate-template)
(prolog-electric-underscore-flag, prolog-electric-tab-flag)
(prolog-electric-if-then-else-flag, prolog-electric-colon-flag)
(prolog-electric-dash-flag, prolog-old-sicstus-keys-flag)
(prolog-program-switches, prolog-prompt-regexp)
(prolog-debug-on-string, prolog-debug-off-string)
(prolog-trace-on-string, prolog-trace-off-string)
(prolog-zip-on-string, prolog-zip-off-string)
(prolog-use-standard-consult-compile-method-flag)
(prolog-use-prolog-tokenizer-flag, prolog-imenu-flag)
(prolog-imenu-max-lines, prolog-info-predicate-index)
(prolog-underscore-wordchar-flag, prolog-use-sicstus-sd)
(prolog-char-quote-workaround):
* progmodes/cc-vars.el (c-defun-tactic):
* net/tramp.el (tramp-encoding-command-interactive)
(tramp-local-end-of-line):
* net/soap-client.el (soap-client):
* net/netrc.el (netrc-file):
* net/gnutls.el (gnutls):
* minibuffer.el (completion-category-overrides)
(completion-cycle-threshold)
(completion-pcm-complete-word-inserts-delimiters):
* man.el (Man-name-local-regexp):
* mail/feedmail.el (feedmail-display-full-frame):
* international/characters.el (glyphless-char-display-control):
* eshell/em-ls.el (eshell-ls-date-format):
* emacs-lisp/cl-indent.el (lisp-lambda-list-keyword-alignment)
(lisp-lambda-list-keyword-parameter-indentation)
(lisp-lambda-list-keyword-parameter-alignment):
* doc-view.el (doc-view-image-width, doc-view-unoconv-program):
* dired-x.el (dired-omit-verbose):
* cus-theme.el (custom-theme-allow-multiple-selections):
* calc/calc.el (calc-highlight-selections-with-faces)
(calc-lu-field-reference, calc-lu-power-reference)
(calc-note-threshold):
* battery.el (battery-mode-line-limit):
* arc-mode.el (archive-7z-extract, archive-7z-expunge)
(archive-7z-update):
* allout.el (allout-prefixed-keybindings)
(allout-unprefixed-keybindings)
(allout-inhibit-auto-fill-on-headline)
(allout-flattened-numbering-abbreviation):
* allout-widgets.el (allout-widgets-auto-activation)
(allout-widgets-icons-dark-subdir)
(allout-widgets-icons-light-subdir, allout-widgets-icon-types)
(allout-widgets-theme-dark-background)
(allout-widgets-theme-light-background)
(allout-widgets-item-image-properties-emacs)
(allout-widgets-item-image-properties-xemacs)
(allout-widgets-run-unit-tests-on-load)
(allout-widgets-time-decoration-activity)
(allout-widgets-hook-error-post-time)
(allout-widgets-track-decoration):
* gnus/sieve-manage.el (sieve-manage-default-stream):
* gnus/shr.el (shr):
* gnus/nnir.el (nnir-ignored-newsgroups, nnir-summary-line-format)
(nnir-retrieve-headers-override-function)
(nnir-imap-default-search-key, nnir-notmuch-program)
(nnir-notmuch-additional-switches, nnir-notmuch-remove-prefix)
(nnir-method-default-engines):
* gnus/message.el (message-cite-reply-position):
* gnus/gssapi.el (gssapi-program):
* gnus/gravatar.el (gravatar):
* gnus/gnus-sum.el (gnus-refer-thread-use-nnir):
* gnus/gnus-registry.el (gnus-registry-unfollowed-addresses)
(gnus-registry-max-pruned-entries):
* gnus/gnus-picon.el (gnus-picon-inhibit-top-level-domains):
* gnus/gnus-int.el (gnus-after-set-mark-hook)
(gnus-before-update-mark-hook):
* gnus/gnus-async.el (gnus-async-post-fetch-function):
* gnus/auth-source.el (auth-source-cache-expiry):
Add missing :version tags to new defcustoms and defgroups.
2012-02-11 14:13:29 -08:00
Jay Belanger
dd6f2a637d calc/calc-units.el (math-put-default-units): Don't use "1" as a
default unit.
2012-01-20 18:46:09 -06:00
Glenn Morris
acaf905b11 Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Paul Eggert
6196cffecf Spelling fixes. 2011-12-21 01:58:39 -08:00
Andreas Schwab
f16c898aa3 * calc/calc-misc.el (calc-help): Avoid wrapping help message. 2011-12-16 14:32:35 +01:00
Paul Eggert
333f9019e2 Spelling fixes. 2011-12-11 21:32:49 -08:00
Paul Eggert
c80e3b4aed Spelling fixes. 2011-12-04 00:02:42 -08:00
Paul Eggert
ee7683ebb7 Spelling fixes. 2011-11-22 23:03:56 -08:00
Juri Linkov
f2a0aa3ae9 * lisp/calc/calc.el (calc-read-key-sequence): Let-bind `input-method-function' to nil.
Fixes: debbugs:10018
2011-11-22 01:59:09 +02:00
Paul Eggert
e1dbe924b5 Spelling fixes. 2011-11-19 18:29:42 -08:00
Paul Eggert
3ed8598c49 Spelling fixes. 2011-11-18 00:31:02 -08:00
Paul Eggert
4c36be58ca Spelling fixes. 2011-11-17 01:09:20 -08:00
Juanma Barranquero
c701515351 Fix typos. 2011-11-15 18:37:37 +01:00
Paul Eggert
da6062e6ea Spelling fixes. 2011-11-14 23:55:13 -08:00
Paul Eggert
8350f087ef Spelling fixes. 2011-11-14 12:23:26 -08:00
Chong Yidong
ce3cefcca3 Change scroll-up/down bindings to Emacs 24's scroll-*-command.
* cus-edit.el (custom-mode-map):
* epa.el (epa-key-list-mode-map):
* man.el (Man-mode-map):
* startup.el (splash-screen-keymap):
* simple.el (special-mode-map): Use scroll-up-command and
scroll-down-command.

* progmodes/idlw-help.el (idlwave-help-mode-map):
* progmodes/ebrowse.el (ebrowse-electric-position-mode-map):
* net/newst-plainview.el (newsticker-mode-map):
* emulation/ws-mode.el (wordstar-mode-map):
* emulation/vi.el (vi-com-map):
* calc/calc-graph.el (calc-graph-show-dumb):
* term/sun.el (terminal-init-sun):
* term/ns-win.el (global-map):
* progmodes/grep.el (grep-mode-map):
* progmodes/ebrowse.el (ebrowse-electric-list-mode-map):
* mail/rmail.el (rmail-mode-map):
* progmodes/cpp.el (cpp-edit-mode-map): Likewise.
2011-10-01 16:32:01 -04:00
Feng Li
7c643369dd * calc/calc-ext.el (math-defintegral-2): Remove nested backquote. 2011-08-16 17:33:57 -05:00
Jay Belanger
a1c2400f27 * calc/calc.el (calc-kill-stack-buffer): Make sure that the trail
buffer isn't killed before making it current.
2011-06-01 19:09:42 -05:00
Stefan Monnier
4f91a8160f Don't quote lambda expressions with `quote'. 2011-05-23 14:57:17 -03:00
Juanma Barranquero
6e087a44c5 lisp/calc/calccomp.el (math-comp-to-string-flat-term): Simplify. 2011-04-29 01:08:37 +02:00
Jay Belanger
1fe275ee28 * calc/calc-menu.el (calc-units-menu): Add entries for logarithmic
units and musical notes.
2011-03-20 15:59:29 -05:00
Jay Belanger
580b66d801 * lisp/calc-units.el (calcFunc-lupquant): Rename from
`calcFunc-pquant' (fixing previous commit).
  (calcFunc-lufquant): Rename from `calcFunc-fquant'
  (fixing previous commit).

* lisp/calc/calc-ext.el (calc-init-extensions): Update the names of the
  functions being autoloaded.
2011-03-16 21:25:36 -05:00
Jay Belanger
d71990a1e4 * lisp/calc/README: Mention musical notes.
* lisp/calc-units.el (calc-lu-quant): Rename from 
  `calc-logunits-quantity'. 
  (calcFunc-lupquant): Rename from `calcFunc-powerquant'.
  (calcFunc-lufquant): Rename from `calcFunc-fieldquant'.
  (calc-db): Rename from `calc-dblevel'.
  (calcFunc-dbpower): Rename from `calcFunc-dbpowerlevel'.
  (calcFunc-dbfield): Rename from `calcFunc-dbfieldlevel'.
  (calc-np): Rename from `calc-nplevel'.
  (calcFunc-nppower): Rename from `calcFunc-nppowerlevel'.
  (calcFunc-npfield): Rename from `calcFunc-npfieldlevel'.
  (calc-lu-plus): Rename from `calc-logunits-add'.
  (calcFunc-lupadd): Rename from `calcFunc-lupoweradd'.
  (calcFunc-lufadd): Rename from `calcFunc-lufieldadd'.
  (calc-lu-minus): Rename from `calc-logunits-sub'.
  (calcFunc-lupsub): Rename from `calcFunc-lupowersub'.
  (calcFunc-lufsub): Rename from `calcFunc-lufieldsub'.
  (calc-lu-times): Rename from `calc-logunits-mul'.
  (calcFunc-lupmul): Rename from `calcFunc-lupowermul'.
  (calcFunc-lufmul): Rename from `calcFunc-lufieldmul'.
  (calc-lu-divide): Rename from `calc-logunits-div'.
  (calcFunc-lupdiv): Rename from `calcFunc-lupowerdiv'.
  (calcFunc-lufdiv): Rename from `calcFunc-lufielddiv'.

* lisp/calc/calc-ext.el (calc-init-extensions): Update the names of the
  functions being autoloaded.

* lisp/calc/calc.el   (calc-lu-power-reference): Rename from
  `calc-logunits-power-reference'. 
  (calc-lu-field-reference): Rename from
  `calc-logunits-field-reference'. 

* lisp/calc/calc-help (calc-l-prefix-help): Mention musical note functions.

* doc/misc/calc.texi (Logarithmic Units): Update the function names.
2011-03-16 20:30:08 -05:00
Jay Belanger
9d5aa01d30 * calc/calc.el (calc-mode-map): Don't bind "C-_" to `calc-missing-key'. 2011-03-09 17:38:16 -06:00
Jay Belanger
8f60c82016 * calc/calc-units.el (math-midi-round): Translate calc-note-threshold
to an appropriate fraction.
2011-03-05 22:36:15 -06:00
Jay Belanger
05a29101b2 * calc/calc-units.el (math-midi-round, math-freqp, math-midip)
(math-spnp, math-spn-to-midi, math-midi-to-spn, math-freq-to-spn)
  (math-midi-to-freq, math-spn-to-freq, calcFunc-spn, calcFunc-midi)
  (calcFunc-freq, calc-freq, calc-midi, calc-spn): New functions.
  (math-notes): New variable.

* calc/calc.el (calc-note-threshold): New variable.

* calc/calc-ext.el (calc-init-extensions): Add keybindings for
  calc-spn, calc-midi, calc-freq.  Add autoloads for calcFunc-spn,
  calcFunc-midi, calcFunc-freq, calc-spn, calc-midi and calc-freq.

* doc/misc/calc.tex (Musical Notes): New section.
  (Customizing Calc): Mention calc-note-threshold.
2011-03-05 22:28:39 -06:00
Jay Belanger
479a2c9bfe * doc/misc/calc.texi (Logarithmic Units): Rename calc-logunits-dblevel
and calc-logunits-nplevel to calc-dblevel and calc-nplevel,
  respectively.

* calc/calc-ext.el (calc-init-extensions): Rename calc-logunits-dblevel
  and calc-logunits-nplevel to calc-dblevel and calc-nplevel,
  respectively.

* calc/calc-units.el (calc-dblevel): Rename from calc-logunits-dblevel.
  (calc-nplevel): Rename from calc-logunits-nplevel.
2011-03-05 21:51:28 -06:00
Jay Belanger
d6ffd3f84f * calc/calc-units.el (math-to-standard-rec): Don't treat subscripted
variables as units.
2011-03-04 00:35:49 -06:00
Jay Belanger
771fc75ee9 * calc/calc-math.el (calcFunc-log10): Check for symbolic mode
when evaluating.

* calc/calc-units.el (math-conditional-apply, math-conditional-pow): 
  New function.
  (math-logunits-add, math-logunits-mul, math-logunits-divide):
  (math-logunits-quant, math-logunits-level): Use
  `math-conditional-apply' and `math-conditional-pow' to evaluate 
  functions.
  (math-logunits-level): Extract units from ratio.
2011-03-01 21:07:34 -06:00
Jay Belanger
53f963cf73 Adjust previous change to behave as intended. 2011-02-26 19:55:29 -06:00
Jay Belanger
b49df7426b * calc/calc-ext.el (calc-init-extensions): Autoload `calc-l-prefix-help'
instead of `calc-ul-prefix-help'.

* calc/calc-math.el (calcFunc-log10): Don't signal an error in symbolic
mode.

* calc/calc-vec.el (calcFunc-subscr): Don't do anything if the first
argument is a variable.
2011-02-26 19:33:37 -06:00
Jay Belanger
226590f8d1 calc/calc-units.el (math-logunits-quant): Add support for
non-logarithmic units.
2011-02-07 16:25:31 -06:00
Jay Belanger
ec6ad6f20a calc/README: Add mention of logarithmic units.
calc/calc-help.el (calc-logunits-add): Rename from `calc-logunits-plus'.
(calc-logunits-sub): Rename from `calc-logunits-minus'.
(calc-logunits-mul): Rename from `calc-logunits-times'.
(calcFunc-lupoweradd): Rename from `calcFunc-lupowerplus'.
(calcFunc-lupowersub): Rename from `calcFunc-lupowerminus'.
(calcFunc-lupowermul): Rename from `calcFunc-lupowertimes'.
calc/calc-ext.el (calc-init-extensions): Change names of logarithmic
unit functions in autoloads.
2011-02-06 18:54:23 -06:00