aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters2001-11-17 07:20:39 +0000
committerColin Walters2001-11-17 07:20:39 +0000
commitd1c9842e9efcc9963e295510ec7ab0af216b0b5e (patch)
tree88d3c4b9b73ec9645979a1ce1b3fafcb37cbc66f
parent032a857de1979932ed6669d5d2abadcfdc3564be (diff)
downloademacs-d1c9842e9efcc9963e295510ec7ab0af216b0b5e.tar.gz
emacs-d1c9842e9efcc9963e295510ec7ab0af216b0b5e.zip
Remove calc problems.
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/PROBLEMS260
2 files changed, 4 insertions, 260 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 2e8f8e5afae..e51f9a9e3b7 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12001-11-17 Colin Walters <walters@debian.org>
2
3 * PROBLEMS: Remove calc problems.
4
12001-11-16 Eli Zaretskii <eliz@is.elta.co.il> 52001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
2 6
3 * TUTORIAL.fr: New file. From ,AI(Bric Jacoboni <jaco@teaser.fr>. 7 * TUTORIAL.fr: New file. From ,AI(Bric Jacoboni <jaco@teaser.fr>.
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index aacd37284bd..b64f2999627 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -609,266 +609,6 @@ Index: psgml-parse.el
609+ (setq after-change-functions '(sgml-set-face-after-change))) 609+ (setq after-change-functions '(sgml-set-face-after-change)))
610 (sgml-with-parser-syntax-ro 610 (sgml-with-parser-syntax-ro
611 611
612* The Calc package fails to build and signals errors with Emacs 21.
613
614Apply the following patches which reportedly fix several problems:
615
616--- calc-ext.el.~1~ Sun Apr 3 02:26:34 1994
617+++ calc-ext.el Wed Sep 18 17:35:01 1996
618@@ -1354,6 +1354,25 @@
619 (calc-fancy-prefix 'calc-inverse-flag "Inverse..." n)
620 )
621
622+(defconst calc-fancy-prefix-map
623+ (let ((map (make-sparse-keymap)))
624+ (define-key map [t] 'calc-fancy-prefix-other-key)
625+ (define-key map (vector meta-prefix-char t) 'calc-fancy-prefix-other-key)
626+ (define-key map [switch-frame] nil)
627+ (define-key map [?\C-u] 'universal-argument)
628+ (define-key map [?0] 'digit-argument)
629+ (define-key map [?1] 'digit-argument)
630+ (define-key map [?2] 'digit-argument)
631+ (define-key map [?3] 'digit-argument)
632+ (define-key map [?4] 'digit-argument)
633+ (define-key map [?5] 'digit-argument)
634+ (define-key map [?6] 'digit-argument)
635+ (define-key map [?7] 'digit-argument)
636+ (define-key map [?8] 'digit-argument)
637+ (define-key map [?9] 'digit-argument)
638+ map)
639+ "Keymap used while processing calc-fancy-prefix.")
640+
641 (defun calc-fancy-prefix (flag msg n)
642 (let (prefix)
643 (calc-wrapper
644@@ -1364,6 +1383,8 @@
645 (message (if prefix msg "")))
646 (and prefix
647 (not calc-is-keypad-press)
648+ (if (boundp 'overriding-terminal-local-map)
649+ (setq overriding-terminal-local-map calc-fancy-prefix-map)
650 (let ((event (calc-read-key t)))
651 (if (eq (setq last-command-char (car event)) ?\C-u)
652 (universal-argument)
653@@ -1376,9 +1397,18 @@
654 (if (or (not (integerp last-command-char))
655 (eq last-command-char ?-))
656 (calc-unread-command)
657- (digit-argument n))))))
658+ (digit-argument n)))))))
659 )
660 (setq calc-is-keypad-press nil)
661+
662+(defun calc-fancy-prefix-other-key (arg)
663+ (interactive "P")
664+ (if (or (not (integerp last-command-char))
665+ (and (>= last-command-char 0) (< last-command-char ? )
666+ (not (eq last-command-char meta-prefix-char))))
667+ (calc-wrapper)) ; clear flags if not a Calc command.
668+ (calc-unread-command)
669+ (setq overriding-terminal-local-map nil))
670
671 (defun calc-invert-func ()
672 (save-excursion
673
674Index: Makefile
675--- Makefile.~1~ Sun Dec 15 23:50:45 1996
676+++ Makefile Thu Nov 30 15:09:45 2000
677@@ -41,7 +41,7 @@
678
679 # Other macros.
680 EFLAGS = -batch
681-MAINT = -l calc-maint.elc
682+MAINT = -l calc-maint.el
683
684 # Control whether intermediate files are kept.
685 PURGE = -rm -f
686@@ -154,10 +154,7 @@
687
688
689 # All this because "-l calc-maint" doesn't work.
690-maint: calc-maint.elc
691-calc-maint.elc: calc-maint.el
692- cp calc-maint.el calc-maint.elc
693-
694+maint: calc-maint.el
695
696 # Create an Emacs TAGS file
697 tags: TAGS
698
699Index: calc-aent.el
700--- calc-aent.el.~1~ Sun Dec 15 23:50:36 1996
701+++ calc-aent.el Tue Nov 21 18:34:33 2000
702@@ -385,7 +385,7 @@
703 (calc-minibuffer-contains
704 "\\`\\([^\"]*\"[^\"]*\"\\)*[^\"]*\"[^\"]*\\'"))
705 (insert "`")
706- (setq alg-exp (buffer-string))
707+ (setq alg-exp (field-string))
708 (and (> (length alg-exp) 0) (setq calc-previous-alg-entry alg-exp))
709 (exit-minibuffer))
710 )
711@@ -393,14 +393,14 @@
712
713 (defun calcAlg-enter ()
714 (interactive)
715- (let* ((str (buffer-string))
716+ (let* ((str (field-string))
717 (exp (and (> (length str) 0)
718 (save-excursion
719 (set-buffer calc-buffer)
720 (math-read-exprs str)))))
721 (if (eq (car-safe exp) 'error)
722 (progn
723- (goto-char (point-min))
724+ (goto-char (field-beginning))
725 (forward-char (nth 1 exp))
726 (beep)
727 (calc-temp-minibuffer-message
728@@ -455,14 +455,14 @@
729 (interactive)
730 (if (calc-minibuffer-contains ".*[@oh] *[^'m ]+[^'m]*\\'")
731 (calcDigit-key)
732- (setq calc-digit-value (buffer-string))
733+ (setq calc-digit-value (field-string))
734 (exit-minibuffer))
735 )
736
737 (defun calcDigit-edit ()
738 (interactive)
739 (calc-unread-command)
740- (setq calc-digit-value (buffer-string))
741+ (setq calc-digit-value (field-string))
742 (exit-minibuffer)
743 )
744
745Index: calc.el
746--- calc.el.~1~ Sun Dec 15 23:50:47 1996
747+++ calc.el Wed Nov 22 13:08:49 2000
748@@ -2051,11 +2051,11 @@
749 ;; Exercise for the reader: Figure out why this is a good precaution!
750 (or (boundp 'calc-buffer)
751 (use-local-map minibuffer-local-map))
752- (let ((str (buffer-string)))
753+ (let ((str (field-string)))
754 (setq calc-digit-value (save-excursion
755 (set-buffer calc-buffer)
756 (math-read-number str))))
757- (if (and (null calc-digit-value) (> (buffer-size) 0))
758+ (if (and (null calc-digit-value) (> (field-end) (field-beginning)))
759 (progn
760 (beep)
761 (calc-temp-minibuffer-message " [Bad format]"))
762@@ -2071,7 +2071,7 @@
763
764 (defun calc-minibuffer-contains (rex)
765 (save-excursion
766- (goto-char (point-min))
767+ (goto-char (field-end (point-min)))
768 (looking-at rex))
769 )
770
771@@ -2158,10 +2158,8 @@
772 (upcase last-command-char))))
773 (and dig
774 (< dig radix)))))))
775- (save-excursion
776- (goto-char (point-min))
777- (looking-at
778- "[-+]?\\(.*\\+/- *\\|.*mod *\\)?\\([0-9]+\\.?0*[@oh] *\\)?\\([0-9]+\\.?0*['m] *\\)?[0-9]*\\(\\.?[0-9]*\\(e[-+]?[0-3]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?\\)?\\|[0-9]:\\([0-9]+:\\)?[0-9]*\\)?[\"s]?\\'")))
779+ (calc-minibuffer-contains
780+ "[-+]?\\(.*\\+/- *\\|.*mod *\\)?\\([0-9]+\\.?0*[@oh] *\\)?\\([0-9]+\\.?0*['m] *\\)?[0-9]*\\(\\.?[0-9]*\\(e[-+]?[0-3]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?\\)?\\|[0-9]:\\([0-9]+:\\)?[0-9]*\\)?[\"s]?\\'"))
781 (if (and (memq last-command-char '(?@ ?o ?h ?\' ?m))
782 (string-match " " calc-hms-format))
783 (insert " "))
784@@ -2190,7 +2188,7 @@
785 ((eq last-command 'calcDigit-start)
786 (erase-buffer))
787 (t (backward-delete-char 1)))
788- (if (= (buffer-size) 0)
789+ (if (= (field-beginning) (field-end))
790 (progn
791 (setq last-command-char 13)
792 (calcDigit-nondigit)))
793
794* TeX'ing the Calc manual fails.
795
796The following patches allow to build the Calc manual using texinfo.tex
797from Emacs 19.34 distribution:
798
799*** calc-maint.e~0 Mon Dec 16 07:11:26 1996
800--- calc-maint.el Sun Dec 10 14:32:38 2000
801***************
802*** 308,314 ****
803 (insert "@tex\n"
804 "\\global\\advance\\appendixno2\n"
805 "\\gdef\\xref#1.{See ``#1.''}\n")
806! (setq midpos (point))
807 (insert "@end tex\n")
808 (insert-buffer-substring srcbuf sumpos endpos)
809 (insert "@bye\n")
810--- 308,314 ----
811 (insert "@tex\n"
812 "\\global\\advance\\appendixno2\n"
813 "\\gdef\\xref#1.{See ``#1.''}\n")
814! (setq midpos (point-marker))
815 (insert "@end tex\n")
816 (insert-buffer-substring srcbuf sumpos endpos)
817 (insert "@bye\n")
818*** Makefile.~0 Mon Dec 16 07:11:24 1996
819--- Makefile Sun Dec 10 14:44:00 2000
820***************
821*** 98,106 ****
822 # Format the Calc manual as one printable volume using TeX.
823 tex:
824 $(REMOVE) calc.aux
825! $(TEX) calc.texinfo
826 $(TEXINDEX) calc.[cfkptv]?
827! $(TEX) calc.texinfo
828 $(PURGE) calc.cp calc.fn calc.pg calc.tp calc.vr
829 $(PURGE) calc.cps calc.fns calc.kys calc.pgs calc.tps calc.vrs
830 $(PURGE) calc.toc
831--- 98,106 ----
832 # Format the Calc manual as one printable volume using TeX.
833 tex:
834 $(REMOVE) calc.aux
835! -$(TEX) calc.texinfo
836 $(TEXINDEX) calc.[cfkptv]?
837! -$(TEX) calc.texinfo
838 $(PURGE) calc.cp calc.fn calc.pg calc.tp calc.vr
839 $(PURGE) calc.cps calc.fns calc.kys calc.pgs calc.tps calc.vrs
840 $(PURGE) calc.toc
841*** calc.texinfo.~1~ Thu Oct 10 18:18:56 1996
842--- calc.texinfo Mon Dec 11 08:25:00 2000
843***************
844*** 12,17 ****
845--- 12,19 ----
846 % Because makeinfo.c exists, we can't just define new commands.
847 % So instead, we take over little-used existing commands.
848 %
849+ % Suggested by Karl Berry <karl@@freefriends.org>
850+ \gdef\!{\mskip-\thinmuskip}
851 % Redefine @cite{text} to act like $text$ in regular TeX.
852 % Info will typeset this same as @samp{text}.
853 \gdef\goodtex{\tex \let\rm\goodrm \let\t\ttfont \turnoffactive}
854***************
855*** 23686,23692 ****
856 a vector of the actual parameter values, written as equations:
857 @cite{[a = 3, b = 2]}, in case you'd rather read them in a list
858 than pick them out of the formula. (You can type @kbd{t y}
859! to move this vector to the stack; @pxref{Trail Commands}.)
860
861 Specifying a different independent variable name will affect the
862 resulting formula: @kbd{a F 1 k RET} produces @kbd{3 + 2 k}.
863--- 23689,23695 ----
864 a vector of the actual parameter values, written as equations:
865 @cite{[a = 3, b = 2]}, in case you'd rather read them in a list
866 than pick them out of the formula. (You can type @kbd{t y}
867! to move this vector to the stack; see @ref{Trail Commands}.)
868
869 Specifying a different independent variable name will affect the
870 resulting formula: @kbd{a F 1 k RET} produces @kbd{3 + 2 k}.
871
872* Unicode characters are not unified with other Mule charsets. 612* Unicode characters are not unified with other Mule charsets.
873 613
874As of v21.1, Emacs charsets are still not unified. This means that 614As of v21.1, Emacs charsets are still not unified. This means that