aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog24
-rw-r--r--lisp/calc/calc-embed.el15
-rw-r--r--lisp/calc/calc-lang.el29
-rw-r--r--lisp/help-fns.el1
-rw-r--r--lisp/international/mule-cmds.el9
-rw-r--r--lisp/textmodes/ispell.el5
6 files changed, 66 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c7ab3fb44ae..81daee7d7b5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,27 @@
12005-02-04 Jay Belanger <belanger@truman.edu>
2
3 * calc/calc-embed.el (calc-embedded-update): Don't put in
4 unnecessary newlines. Adjust the end of formula marker.
5
6 * calc/calc-lang.el (math-latex-parse-frac): Don't use arguments.
7 (math-latex-parse-two-args): New function.
8
92005-02-03 Lute Kamstra <lute@gnu.org>
10
11 * help-fns.el (help-with-tutorial): Make sure that users cannot
12 remove the entire text of the tutorial by means of `undo'.
13
142005-02-03 Stefan Monnier <monnier@iro.umontreal.ca>
15
16 * textmodes/ispell.el (ispell-internal-change-dictionary): Fix problem
17 in recent changes, where the ispell process was repeatedly
18 killed & restarted.
19
20 * international/mule-cmds.el (set-locale-environment): Set file-name
21 coding system to utf-8 on Darwin systems.
22 (set-default-coding-systems): Don't set default-file-name-coding-system
23 on Darwin systems.
24
12005-02-03 Richard M. Stallman <rms@gnu.org> 252005-02-03 Richard M. Stallman <rms@gnu.org>
2 26
3 * hi-lock.el (hi-lock-mode): Turning on Hi-Lock turns on Font-Lock. 27 * hi-lock.el (hi-lock-mode): Turning on Hi-Lock turns on Font-Lock.
diff --git a/lisp/calc/calc-embed.el b/lisp/calc/calc-embed.el
index 4c6311c9a5b..e3b3b6b5b19 100644
--- a/lisp/calc/calc-embed.el
+++ b/lisp/calc/calc-embed.el
@@ -967,19 +967,24 @@ The command \\[yank] can retrieve it from there."
967 (calc-embedded-original-buffer t info) 967 (calc-embedded-original-buffer t info)
968 (or (equal str (aref info 6)) 968 (or (equal str (aref info 6))
969 (let ((delta (- (aref info 5) (aref info 3))) 969 (let ((delta (- (aref info 5) (aref info 3)))
970 (adjbot 0)
970 (buffer-read-only nil)) 971 (buffer-read-only nil))
971 (goto-char (aref info 2)) 972 (goto-char (aref info 2))
972 (delete-region (point) (aref info 3)) 973 (delete-region (point) (aref info 3))
973 (and (> (nth 1 entry) (1+ extra)) 974 (and (> (nth 1 entry) (1+ extra))
974 (aref info 7) 975 (aref info 7)
975 (progn 976 (progn
976 (aset info 7 nil)
977 (delete-horizontal-space) 977 (delete-horizontal-space)
978 (insert "\n\n") 978 (if (looking-at "\n")
979 (delete-horizontal-space) 979 ;; If there's a newline there, don't add one
980 (backward-char 1))) 980 (insert "\n")
981 (insert "\n\n")
982 (delete-horizontal-space)
983 (setq adjbot 1)
984; (setq delta (1+ delta))
985 (backward-char 1))))
981 (insert str) 986 (insert str)
982 (set-marker (aref info 3) (point)) 987 (set-marker (aref info 3) (+ (point) adjbot))
983 (set-marker (aref info 5) (+ (point) delta)) 988 (set-marker (aref info 5) (+ (point) delta))
984 (aset info 6 str)))))) 989 (aset info 6 str))))))
985 (if (eq (car-safe val) 'calcFunc-evalto) 990 (if (eq (car-safe val) 'calcFunc-evalto)
diff --git a/lisp/calc/calc-lang.el b/lisp/calc/calc-lang.el
index d91d78fc461..63d24bb76d5 100644
--- a/lisp/calc/calc-lang.el
+++ b/lisp/calc/calc-lang.el
@@ -469,12 +469,12 @@
469(put 'latex 'math-function-table 469(put 'latex 'math-function-table
470 (append 470 (append
471 (get 'tex 'math-function-table) 471 (get 'tex 'math-function-table)
472 '(( \\frac . (math-latex-parse-frac /)) 472 '(( \\frac . (math-latex-parse-frac))
473 ( \\tfrac . (math-latex-parse-frac /)) 473 ( \\tfrac . (math-latex-parse-frac))
474 ( \\dfrac . (math-latex-parse-frac /)) 474 ( \\dfrac . (math-latex-parse-frac))
475 ( \\binom . (math-latex-parse-frac calcFunc-choose)) 475 ( \\binom . (math-latex-parse-two-args calcFunc-choose))
476 ( \\tbinom . (math-latex-parse-frac calcFunc-choose)) 476 ( \\tbinom . (math-latex-parse-two-args calcFunc-choose))
477 ( \\dbinom . (math-latex-parse-frac calcFunc-choose)) 477 ( \\dbinom . (math-latex-parse-two-args calcFunc-choose))
478 ( \\phi . calcFunc-totient ) 478 ( \\phi . calcFunc-totient )
479 ( \\mu . calcFunc-moebius )))) 479 ( \\mu . calcFunc-moebius ))))
480 480
@@ -487,12 +487,23 @@
487 487
488(put 'latex 'math-complex-format 'i) 488(put 'latex 'math-complex-format 'i)
489 489
490
490(defun math-latex-parse-frac (f val) 491(defun math-latex-parse-frac (f val)
491 (let (numer denom) 492 (let (numer denom)
492 (setq args (math-read-expr-list)) 493 (setq numer (car (math-read-expr-list)))
494 (math-read-token)
495 (setq denom (math-read-factor))
496 (if (and (Math-num-integerp numer)
497 (Math-num-integerp denom))
498 (list 'frac numer denom)
499 (list '/ numer denom))))
500
501(defun math-latex-parse-two-args (f val)
502 (let (first second)
503 (setq first (car (math-read-expr-list)))
493 (math-read-token) 504 (math-read-token)
494 (setq margs (math-read-factor)) 505 (setq second (math-read-factor))
495 (list (nth 2 f) (car args) margs))) 506 (list (nth 2 f) first second)))
496 507
497(defun math-latex-print-frac (a fn) 508(defun math-latex-print-frac (a fn)
498 (list 'horiz (nth 1 fn) "{" (math-compose-expr (nth 1 a) -1) 509 (list 'horiz (nth 1 fn) "{" (math-compose-expr (nth 1 a) -1)
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 9acadaa2fa6..4bf0a4775a0 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -97,6 +97,7 @@ With ARG, you are asked to choose which language."
97 (forward-line 1) 97 (forward-line 1)
98 (newline (- n (/ n 2))))) 98 (newline (- n (/ n 2)))))
99 (goto-char (point-min)) 99 (goto-char (point-min))
100 (setq buffer-undo-list nil)
100 (set-buffer-modified-p nil)))) 101 (set-buffer-modified-p nil))))
101 102
102;;;###autoload 103;;;###autoload
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index e101b7c5f33..338a6025e18 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -327,7 +327,8 @@ This also sets the following values:
327 (or (local-variable-p 'buffer-file-coding-system buffer) 327 (or (local-variable-p 'buffer-file-coding-system buffer)
328 (ucs-set-table-for-input buffer)))) 328 (ucs-set-table-for-input buffer))))
329 329
330 (if default-enable-multibyte-characters 330 (if (and default-enable-multibyte-characters (not (eq system-type 'darwin)))
331 ;; The file-name coding system on Darwin systems is always utf-8.
331 (setq default-file-name-coding-system coding-system)) 332 (setq default-file-name-coding-system coding-system))
332 ;; If coding-system is nil, honor that on MS-DOS as well, so 333 ;; If coding-system is nil, honor that on MS-DOS as well, so
333 ;; that they could reset the terminal coding system. 334 ;; that they could reset the terminal coding system.
@@ -1694,6 +1695,8 @@ The default status is as follows:
1694 1695
1695 (set-default-coding-systems nil) 1696 (set-default-coding-systems nil)
1696 (setq default-sendmail-coding-system 'iso-latin-1) 1697 (setq default-sendmail-coding-system 'iso-latin-1)
1698 ;; On Darwin systems, this should be utf-8, but when this file is loaded
1699 ;; utf-8 is not yet defined, so we set it in set-locale-environment instead.
1697 (setq default-file-name-coding-system 'iso-latin-1) 1700 (setq default-file-name-coding-system 'iso-latin-1)
1698 ;; Preserve eol-type from existing default-process-coding-systems. 1701 ;; Preserve eol-type from existing default-process-coding-systems.
1699 ;; On non-unix-like systems in particular, these may have been set 1702 ;; On non-unix-like systems in particular, these may have been set
@@ -2489,6 +2492,10 @@ See also `locale-charset-language-names', `locale-language-names',
2489 (set-keyboard-coding-system code-page-coding) 2492 (set-keyboard-coding-system code-page-coding)
2490 (set-terminal-coding-system code-page-coding)))) 2493 (set-terminal-coding-system code-page-coding))))
2491 2494
2495 ;; On Darwin, file names are always encoded in utf-8, no matter the locale.
2496 (when (eq system-type 'darwin)
2497 (setq default-file-name-coding-system 'utf-8))
2498
2492 ;; Default to A4 paper if we're not in a C, POSIX or US locale. 2499 ;; Default to A4 paper if we're not in a C, POSIX or US locale.
2493 ;; (See comments in Flocale_info.) 2500 ;; (See comments in Flocale_info.)
2494 (let ((locale locale) 2501 (let ((locale locale)
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index c403422801f..d5171125ae8 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1,6 +1,7 @@
1;;; ispell.el --- interface to International Ispell Versions 3.1 and 3.2 1;;; ispell.el --- interface to International Ispell Versions 3.1 and 3.2
2 2
3;; Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 3;; Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005
4;; Free Software Foundation, Inc.
4 5
5;; Author: Ken Stevens <k.stevens@ieee.org> 6;; Author: Ken Stevens <k.stevens@ieee.org>
6;; Maintainer: Ken Stevens <k.stevens@ieee.org> 7;; Maintainer: Ken Stevens <k.stevens@ieee.org>
@@ -2449,7 +2450,7 @@ With prefix argument, set the default dictionary."
2449 "Update the dictionary actually used by Ispell. 2450 "Update the dictionary actually used by Ispell.
2450This may kill the Ispell process; if so, 2451This may kill the Ispell process; if so,
2451a new one will be started when needed." 2452a new one will be started when needed."
2452 (let ((dict (or ispell-local-dictionary ispell-dictionary "default"))) 2453 (let ((dict (or ispell-local-dictionary ispell-dictionary)))
2453 (unless (equal ispell-current-dictionary dict) 2454 (unless (equal ispell-current-dictionary dict)
2454 (setq ispell-current-dictionary dict) 2455 (setq ispell-current-dictionary dict)
2455 (ispell-kill-ispell t)))) 2456 (ispell-kill-ispell t))))