aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKaroly Lorentey2005-03-16 15:59:10 +0000
committerKaroly Lorentey2005-03-16 15:59:10 +0000
commita810eaf92838985d9648acb470dc3c8d26847c15 (patch)
tree026be88abb42bb9bbfcf6574e532f4339b82f211 /lisp
parent3453bb3a36766b297909a2b1aae2681258ab3118 (diff)
parent613f367343dc8e9ab03519472d7b49895f184ab1 (diff)
downloademacs-a810eaf92838985d9648acb470dc3c8d26847c15.tar.gz
emacs-a810eaf92838985d9648acb470dc3c8d26847c15.zip
Merged from miles@gnu.org--gnu-2005 (patch 159)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-159 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-307
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog47
-rw-r--r--lisp/bindings.el1
-rw-r--r--lisp/custom.el112
-rw-r--r--lisp/facemenu.el8
-rw-r--r--lisp/font-lock.el7
-rw-r--r--lisp/help-mode.el8
-rw-r--r--lisp/jit-lock.el11
-rw-r--r--lisp/menu-bar.el2
-rw-r--r--lisp/novice.el13
-rw-r--r--lisp/simple.el21
-rw-r--r--lisp/startup.el52
-rw-r--r--lisp/textmodes/flyspell.el2
12 files changed, 173 insertions, 111 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d65a446a376..a3826bf9a4b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,50 @@
12005-03-06 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * menu-bar.el (menu-bar-file-menu): Add the same :enable to
4 "Open Directory" as for "Open File".
5
62005-03-06 Chong Yidong <cyd@stupidchicken.com>
7
8 * simple.el (activate-mark-hook, deactivate-mark-hook): Add defvars.
9 (push-mark-command): Run activate-mark-hook.
10
112005-03-06 Richard M. Stallman <rms@gnu.org>
12
13 * help-mode.el (help-mode-finish): Don't alter the element
14 in view-return-to-alist if there already is one.
15
16 * jit-lock.el (jit-lock-stealth-fontify): When calling sit-for,
17 make sure the current buffer is the expected one.
18
19 * novice.el (disabled-command-function): Output in *Disabled Command*.
20 Explicitly ignore non-keyboard events, and explicitly handle C-g.
21
22 * textmodes/flyspell.el (flyspell-large-region):
23 Pass args differently for aspell.
24
25 * files.el (mode-require-final-newline): Doc fix.
26
272005-03-03 Stephan Stahl <stahl@eos.franken.de> (tiny change)
28
29 * progmodes/which-func.el (which-function):
30 Specify NOERROR when calling imenu--make-index-alist.
31
322005-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
33
34 * simple.el (normal-erase-is-backspace): Define default value.
35
36 * custom.el (custom-theme-set-variables): Remove unused var `immediate'.
37 (custom-reevaluate-setting): Simple function to handle
38 variables that are defined before their default value can really
39 be computed.
40
41 * startup.el (command-line): Use it for temporary-file-directory,
42 small-emporary-file-directory, auto-save-file-name-transforms,
43 blink-cursor-mode, and normal-erase-is-backspace.
44
45 * font-lock.el (font-lock-fontify-keywords-region): Ensure forward
46 progress, even with buggy anchored keywords.
47
12005-03-05 Luc Teirlinck <teirllm@auburn.edu> 482005-03-05 Luc Teirlinck <teirllm@auburn.edu>
2 49
3 * simple.el (goto-line): Remove unbalanced final parenthesis. 50 * simple.el (goto-line): Remove unbalanced final parenthesis.
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 7d67095566c..a581027993c 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -701,6 +701,7 @@ language you are using."
701(define-key global-map "\C-p" 'previous-line) 701(define-key global-map "\C-p" 'previous-line)
702(define-key ctl-x-map "\C-n" 'set-goal-column) 702(define-key ctl-x-map "\C-n" 'set-goal-column)
703(define-key global-map "\C-e" 'move-end-of-line) 703(define-key global-map "\C-e" 'move-end-of-line)
704(define-key esc-map "g" 'goto-line)
704 705
705;;(defun function-key-error () 706;;(defun function-key-error ()
706;; (interactive) 707;; (interactive)
diff --git a/lisp/custom.el b/lisp/custom.el
index 13195c7f78f..77b54a109c5 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -1,6 +1,6 @@
1;;; custom.el --- tools for declaring and initializing options 1;;; custom.el --- tools for declaring and initializing options
2;; 2;;
3;; Copyright (C) 1996, 1997, 1999, 2001, 2002, 2004 3;; Copyright (C) 1996, 1997, 1999, 2001, 2002, 2004, 2005
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5;; 5;;
6;; Author: Per Abrahamsen <abraham@dina.kvl.dk> 6;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
@@ -726,6 +726,15 @@ handle SYMBOL properly.
726COMMENT is a comment string about SYMBOL." 726COMMENT is a comment string about SYMBOL."
727 (apply 'custom-theme-set-variables 'user args)) 727 (apply 'custom-theme-set-variables 'user args))
728 728
729(defun custom-reevaluate-setting (symbol)
730 "Reset the value of SYMBOL by re-evaluating its saved or default value.
731This is useful for variables that are defined before their default value
732can really be computed. E.g. dumped variables whose default depends on
733run-time information."
734 (funcall (or (get symbol 'custom-set) 'set-default)
735 symbol
736 (eval (car (or (get symbol 'saved-value) (get symbol 'standard-value))))))
737
729(defun custom-theme-set-variables (theme &rest args) 738(defun custom-theme-set-variables (theme &rest args)
730 "Initialize variables for theme THEME according to settings in ARGS. 739 "Initialize variables for theme THEME according to settings in ARGS.
731Each of the arguments in ARGS should be a list of this form: 740Each of the arguments in ARGS should be a list of this form:
@@ -753,44 +762,43 @@ SYMBOL's property `force-value' is set to the symbol `immediate'.
753EXP itself is saved unevaluated as SYMBOL property `saved-value' and 762EXP itself is saved unevaluated as SYMBOL property `saved-value' and
754in SYMBOL's list property `theme-value' \(using `custom-push-theme')." 763in SYMBOL's list property `theme-value' \(using `custom-push-theme')."
755 (custom-check-theme theme) 764 (custom-check-theme theme)
756 (let ((immediate (get theme 'theme-immediate))) 765 (setq args
757 (setq args 766 (sort args
758 (sort args 767 (lambda (a1 a2)
759 (lambda (a1 a2) 768 (let* ((sym1 (car a1))
760 (let* ((sym1 (car a1)) 769 (sym2 (car a2))
761 (sym2 (car a2)) 770 (1-then-2 (memq sym1 (get sym2 'custom-dependencies)))
762 (1-then-2 (memq sym1 (get sym2 'custom-dependencies))) 771 (2-then-1 (memq sym2 (get sym1 'custom-dependencies))))
763 (2-then-1 (memq sym2 (get sym1 'custom-dependencies)))) 772 (cond ((and 1-then-2 2-then-1)
764 (cond ((and 1-then-2 2-then-1) 773 (error "Circular custom dependency between `%s' and `%s'"
765 (error "Circular custom dependency between `%s' and `%s'" 774 sym1 sym2))
766 sym1 sym2)) 775 (2-then-1 nil)
767 (2-then-1 nil) 776 ;; Put symbols with :require last. The macro
768 ;; Put symbols with :require last. The macro 777 ;; define-minor-mode generates a defcustom
769 ;; define-minor-mode generates a defcustom 778 ;; with a :require and a :set, where the
770 ;; with a :require and a :set, where the 779 ;; setter function calls the mode function.
771 ;; setter function calls the mode function. 780 ;; Putting symbols with :require last ensures
772 ;; Putting symbols with :require last ensures 781 ;; that the mode function will see other
773 ;; that the mode function will see other 782 ;; customized values rather than default
774 ;; customized values rather than default 783 ;; values.
775 ;; values. 784 (t (nth 3 a2)))))))
776 (t (nth 3 a2))))))) 785 (while args
777 (while args 786 (let ((entry (car args)))
778 (let ((entry (car args))) 787 (if (listp entry)
779 (if (listp entry) 788 (let* ((symbol (indirect-variable (nth 0 entry)))
780 (let* ((symbol (indirect-variable (nth 0 entry))) 789 (value (nth 1 entry))
781 (value (nth 1 entry)) 790 (now (nth 2 entry))
782 (now (nth 2 entry)) 791 (requests (nth 3 entry))
783 (requests (nth 3 entry)) 792 (comment (nth 4 entry))
784 (comment (nth 4 entry)) 793 set)
785 set) 794 (when requests
786 (when requests 795 (put symbol 'custom-requests requests)
787 (put symbol 'custom-requests requests) 796 (mapc 'require requests))
788 (mapc 'require requests)) 797 (setq set (or (get symbol 'custom-set) 'custom-set-default))
789 (setq set (or (get symbol 'custom-set) 'custom-set-default)) 798 (put symbol 'saved-value (list value))
790 (put symbol 'saved-value (list value)) 799 (put symbol 'saved-variable-comment comment)
791 (put symbol 'saved-variable-comment comment) 800 (custom-push-theme 'theme-value symbol theme 'set value)
792 (custom-push-theme 'theme-value symbol theme 'set value) 801 ;; Allow for errors in the case where the setter has
793 ;; Allow for errors in the case where the setter has
794 ;; changed between versions, say, but let the user know. 802 ;; changed between versions, say, but let the user know.
795 (condition-case data 803 (condition-case data
796 (cond (now 804 (cond (now
@@ -802,18 +810,18 @@ in SYMBOL's list property `theme-value' \(using `custom-push-theme')."
802 (funcall set symbol (eval value)))) 810 (funcall set symbol (eval value))))
803 (error 811 (error
804 (message "Error setting %s: %s" symbol data))) 812 (message "Error setting %s: %s" symbol data)))
805 (setq args (cdr args)) 813 (setq args (cdr args))
806 (and (or now (default-boundp symbol)) 814 (and (or now (default-boundp symbol))
807 (put symbol 'variable-comment comment))) 815 (put symbol 'variable-comment comment)))
808 ;; Old format, a plist of SYMBOL VALUE pairs. 816 ;; Old format, a plist of SYMBOL VALUE pairs.
809 (message "Warning: old format `custom-set-variables'") 817 (message "Warning: old format `custom-set-variables'")
810 (ding) 818 (ding)
811 (sit-for 2) 819 (sit-for 2)
812 (let ((symbol (indirect-variable (nth 0 args))) 820 (let ((symbol (indirect-variable (nth 0 args)))
813 (value (nth 1 args))) 821 (value (nth 1 args)))
814 (put symbol 'saved-value (list value)) 822 (put symbol 'saved-value (list value))
815 (custom-push-theme 'theme-value symbol theme 'set value)) 823 (custom-push-theme 'theme-value symbol theme 'set value))
816 (setq args (cdr (cdr args)))))))) 824 (setq args (cdr (cdr args)))))))
817 825
818(defun custom-set-default (variable value) 826(defun custom-set-default (variable value)
819 "Default :set function for a customizable variable. 827 "Default :set function for a customizable variable.
@@ -1091,5 +1099,5 @@ This means reset VARIABLE to its value in TO-THEME."
1091 1099
1092(provide 'custom) 1100(provide 'custom)
1093 1101
1094;;; arch-tag: 041b6116-aabe-4f9a-902d-74092bc3dab2 1102;; arch-tag: 041b6116-aabe-4f9a-902d-74092bc3dab2
1095;;; custom.el ends here 1103;;; custom.el ends here
diff --git a/lisp/facemenu.el b/lisp/facemenu.el
index 127b8fe608b..a996d4c15e7 100644
--- a/lisp/facemenu.el
+++ b/lisp/facemenu.el
@@ -39,8 +39,8 @@
39;; modifications before inserting or typing anything. 39;; modifications before inserting or typing anything.
40;; 40;;
41;; Faces can be selected from the keyboard as well. 41;; Faces can be selected from the keyboard as well.
42;; The standard keybindings are M-g (or ESC g) + letter: 42;; The standard keybindings are M-o (or ESC o) + letter:
43;; M-g i = "set italic", M-g b = "set bold", etc. 43;; M-o i = "set italic", M-o b = "set bold", etc.
44 44
45;;; Customization: 45;;; Customization:
46;; An alternative set of keybindings that may be easier to type can be set up 46;; An alternative set of keybindings that may be easier to type can be set up
@@ -91,12 +91,12 @@
91 (require 'button)) 91 (require 'button))
92 92
93;;; Provide some binding for startup: 93;;; Provide some binding for startup:
94;;;###autoload (define-key global-map "\M-g" 'facemenu-keymap) 94;;;###autoload (define-key global-map "\M-o" 'facemenu-keymap)
95;;;###autoload (autoload 'facemenu-keymap "facemenu" "Keymap for face-changing commands." t 'keymap) 95;;;###autoload (autoload 'facemenu-keymap "facemenu" "Keymap for face-changing commands." t 'keymap)
96 96
97;; Global bindings: 97;; Global bindings:
98(define-key global-map [C-down-mouse-2] 'facemenu-menu) 98(define-key global-map [C-down-mouse-2] 'facemenu-menu)
99(define-key global-map "\M-g" 'facemenu-keymap) 99(define-key global-map "\M-o" 'facemenu-keymap)
100 100
101(defgroup facemenu nil 101(defgroup facemenu nil
102 "Create a face menu for interactively adding fonts to text" 102 "Create a face menu for interactively adding fonts to text"
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 0b82e738014..f2cd0985958 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1,7 +1,7 @@
1;;; font-lock.el --- Electric font lock mode 1;;; font-lock.el --- Electric font lock mode
2 2
3;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4;; 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 4;; 2000, 2001, 2002, 2003, 2004 2005 Free Software Foundation, Inc.
5 5
6;; Author: jwz, then rms, then sm 6;; Author: jwz, then rms, then sm
7;; Maintainer: FSF 7;; Maintainer: FSF
@@ -1425,7 +1425,10 @@ LOUDLY, if non-nil, allows progress-meter bar."
1425 (while highlights 1425 (while highlights
1426 (if (numberp (car (car highlights))) 1426 (if (numberp (car (car highlights)))
1427 (font-lock-apply-highlight (car highlights)) 1427 (font-lock-apply-highlight (car highlights))
1428 (font-lock-fontify-anchored-keywords (car highlights) end)) 1428 (let ((pos (point)))
1429 (font-lock-fontify-anchored-keywords (car highlights) end)
1430 ;; Ensure forward progress.
1431 (if (< (point) pos) (goto-char pos))))
1429 (setq highlights (cdr highlights)))) 1432 (setq highlights (cdr highlights))))
1430 (setq keywords (cdr keywords))))) 1433 (setq keywords (cdr keywords)))))
1431 1434
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index e9d3561d251..8b0284089fc 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -194,8 +194,12 @@ Commands:
194;;;###autoload 194;;;###autoload
195(defun help-mode-finish () 195(defun help-mode-finish ()
196 (let ((entry (assq (selected-window) view-return-to-alist))) 196 (let ((entry (assq (selected-window) view-return-to-alist)))
197 (if entry (setcdr entry (cons (selected-window) 197 (if entry
198 help-return-method)) 198 ;; When entering Help mode from the Help window,
199 ;; such as by following a link, preserve the same
200 ;; meaning for the q command.
201 ;; (setcdr entry (cons (selected-window) help-return-method))
202 nil
199 (setq view-return-to-alist 203 (setq view-return-to-alist
200 (cons (cons (selected-window) help-return-method) 204 (cons (cons (selected-window) help-return-method)
201 view-return-to-alist)))) 205 view-return-to-alist))))
diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el
index 43c8457c80b..fe64d871d96 100644
--- a/lisp/jit-lock.el
+++ b/lisp/jit-lock.el
@@ -415,6 +415,7 @@ This functions is called after Emacs has been idle for
415 (unless (or executing-kbd-macro 415 (unless (or executing-kbd-macro
416 (window-minibuffer-p (selected-window))) 416 (window-minibuffer-p (selected-window)))
417 (let ((buffers (buffer-list)) 417 (let ((buffers (buffer-list))
418 (outer-buffer (current-buffer))
418 minibuffer-auto-raise 419 minibuffer-auto-raise
419 message-log-max) 420 message-log-max)
420 (with-local-quit 421 (with-local-quit
@@ -449,7 +450,10 @@ This functions is called after Emacs has been idle for
449 (point (point-min))) 450 (point (point-min)))
450 (while (and (setq start 451 (while (and (setq start
451 (jit-lock-stealth-chunk-start point)) 452 (jit-lock-stealth-chunk-start point))
452 (sit-for nice)) 453 ;; In case sit-for runs any timers,
454 ;; give them the expected current buffer.
455 (with-current-buffer outer-buffer
456 (sit-for nice)))
453 457
454 ;; fontify a block. 458 ;; fontify a block.
455 (jit-lock-fontify-now start (+ start jit-lock-chunk-size)) 459 (jit-lock-fontify-now start (+ start jit-lock-chunk-size))
@@ -461,7 +465,10 @@ This functions is called after Emacs has been idle for
461 ;; Wait a little if load is too high. 465 ;; Wait a little if load is too high.
462 (when (and jit-lock-stealth-load 466 (when (and jit-lock-stealth-load
463 (> (car (load-average)) jit-lock-stealth-load)) 467 (> (car (load-average)) jit-lock-stealth-load))
464 (sit-for (or jit-lock-stealth-time 30))))))))))))) 468 ;; In case sit-for runs any timers,
469 ;; give them the expected current buffer.
470 (with-current-buffer outer-buffer
471 (sit-for (or jit-lock-stealth-time 30))))))))))))))
465 472
466 473
467 474
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 093969d5725..8dfb6a792df 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -184,6 +184,8 @@ A large number or nil slows down menu responsiveness."
184 :help "Insert another file into current buffer")) 184 :help "Insert another file into current buffer"))
185(define-key menu-bar-file-menu [dired] 185(define-key menu-bar-file-menu [dired]
186 '(menu-item "Open Directory..." dired 186 '(menu-item "Open Directory..." dired
187 :enable (not (window-minibuffer-p
188 (frame-selected-window menu-updating-frame)))
187 :help "Read a directory, operate on its files")) 189 :help "Read a directory, operate on its files"))
188(define-key menu-bar-file-menu [open-file] 190(define-key menu-bar-file-menu [open-file]
189 '(menu-item "Open File..." find-file-existing 191 '(menu-item "Open File..." find-file-existing
diff --git a/lisp/novice.el b/lisp/novice.el
index de92857980b..3e63f0a7bc6 100644
--- a/lisp/novice.el
+++ b/lisp/novice.el
@@ -49,7 +49,7 @@ If nil, the feature is disabled, i.e., all commands work normally.")
49(defun disabled-command-function (&rest ignore) 49(defun disabled-command-function (&rest ignore)
50 (let (char) 50 (let (char)
51 (save-window-excursion 51 (save-window-excursion
52 (with-output-to-temp-buffer "*Help*" 52 (with-output-to-temp-buffer "*Disabled Command*"
53 (let ((keys (this-command-keys))) 53 (let ((keys (this-command-keys)))
54 (if (or (eq (aref keys 0) 54 (if (or (eq (aref keys 0)
55 (if (stringp keys) 55 (if (stringp keys)
@@ -68,7 +68,7 @@ If nil, the feature is disabled, i.e., all commands work normally.")
68 (princ "It is disabled because new users often find it confusing.\n") 68 (princ "It is disabled because new users often find it confusing.\n")
69 (princ "Here's the first part of its description:\n\n") 69 (princ "Here's the first part of its description:\n\n")
70 ;; Keep only the first paragraph of the documentation. 70 ;; Keep only the first paragraph of the documentation.
71 (with-current-buffer "*Help*" 71 (with-current-buffer "*Disabled Command*"
72 (goto-char (point-max)) 72 (goto-char (point-max))
73 (let ((start (point))) 73 (let ((start (point)))
74 (save-excursion 74 (save-excursion
@@ -91,10 +91,15 @@ SPC to try the command just this once, but leave it disabled.
91 (help-mode))) 91 (help-mode)))
92 (message "Type y, n, ! or SPC (the space bar): ") 92 (message "Type y, n, ! or SPC (the space bar): ")
93 (let ((cursor-in-echo-area t)) 93 (let ((cursor-in-echo-area t))
94 (while (not (memq (setq char (downcase (read-char))) 94 (while (progn (setq char (read-event))
95 '(?! ?y ?n ?\ ))) 95 (or (not (numberp char))
96 (not (memq (downcase char)
97 '(?! ?y ?n ?\ ?\C-g)))))
96 (ding) 98 (ding)
97 (message "Please type y, n, ! or SPC (the space bar): ")))) 99 (message "Please type y, n, ! or SPC (the space bar): "))))
100 (setq char (downcase char))
101 (if (= char ?\C-g)
102 (setq quit-flag t))
98 (if (= char ?!) 103 (if (= char ?!)
99 (setq disabled-command-function nil)) 104 (setq disabled-command-function nil))
100 (if (= char ?y) 105 (if (= char ?y)
diff --git a/lisp/simple.el b/lisp/simple.el
index 0b40d53b756..50a727aa15f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2917,6 +2917,14 @@ START and END specify the portion of the current buffer to be copied."
2917(put 'mark-inactive 'error-conditions '(mark-inactive error)) 2917(put 'mark-inactive 'error-conditions '(mark-inactive error))
2918(put 'mark-inactive 'error-message "The mark is not active now") 2918(put 'mark-inactive 'error-message "The mark is not active now")
2919 2919
2920(defvar activate-mark-hook nil
2921 "Hook run when the mark becomes active.
2922It is also run at the end of a command, if the mark is active and
2923it is possible that the region may have changed")
2924
2925(defvar deactivate-mark-hook nil
2926 "Hook run when the mark becomes inactive.")
2927
2920(defun mark (&optional force) 2928(defun mark (&optional force)
2921 "Return this buffer's mark value as integer; error if mark inactive. 2929 "Return this buffer's mark value as integer; error if mark inactive.
2922If optional argument FORCE is non-nil, access the mark value 2930If optional argument FORCE is non-nil, access the mark value
@@ -3008,6 +3016,7 @@ Display `Mark set' unless the optional second arg NOMSG is non-nil."
3008 (if (or arg (null mark) (/= mark (point))) 3016 (if (or arg (null mark) (/= mark (point)))
3009 (push-mark nil nomsg t) 3017 (push-mark nil nomsg t)
3010 (setq mark-active t) 3018 (setq mark-active t)
3019 (run-hooks 'activate-mark-hook)
3011 (unless nomsg 3020 (unless nomsg
3012 (message "Mark activated"))))) 3021 (message "Mark activated")))))
3013 3022
@@ -5029,7 +5038,17 @@ the front of the list of recently selected ones."
5029 5038
5030;;; Handling of Backspace and Delete keys. 5039;;; Handling of Backspace and Delete keys.
5031 5040
5032(defcustom normal-erase-is-backspace nil 5041(defcustom normal-erase-is-backspace
5042 (and (not noninteractive)
5043 (or (memq system-type '(ms-dos windows-nt))
5044 (and (memq initial-window-system '(x))
5045 (fboundp 'x-backspace-delete-keys-p)
5046 (x-backspace-delete-keys-p))
5047 ;; If the terminal Emacs is running on has erase char
5048 ;; set to ^H, use the Backspace key for deleting
5049 ;; backward and, and the Delete key for deleting forward.
5050 (and (null initial-window-system)
5051 (eq tty-erase-char ?\^H))))
5033 "If non-nil, Delete key deletes forward and Backspace key deletes backward. 5052 "If non-nil, Delete key deletes forward and Backspace key deletes backward.
5034 5053
5035On window systems, the default value of this option is chosen 5054On window systems, the default value of this option is chosen
diff --git a/lisp/startup.el b/lisp/startup.el
index b16cfdeb0c9..d0eca538f96 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1,7 +1,7 @@
1;;; startup.el --- process Emacs shell arguments 1;;; startup.el --- process Emacs shell arguments
2 2
3;; Copyright (C) 1985, 86, 92, 94, 95, 96, 97, 98, 99, 2000, 01, 02, 2004 3;; Copyright (C) 1985, 1986, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
4;; Free Software Foundation, Inc. 4;; 2001, 2002, 2004, 2005 Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
7;; Keywords: internal 7;; Keywords: internal
@@ -568,22 +568,9 @@ opening the first frame (e.g. open a connection to the server).")
568 (setq command-line-default-directory default-directory) 568 (setq command-line-default-directory default-directory)
569 569
570 ;; Choose a reasonable location for temporary files. 570 ;; Choose a reasonable location for temporary files.
571 (setq temporary-file-directory 571 (custom-reevaluate-setting 'temporary-file-directory)
572 (file-name-as-directory 572 (custom-reevaluate-setting 'small-emporary-file-directory)
573 (cond ((memq system-type '(ms-dos windows-nt)) 573 (custom-reevaluate-setting 'auto-save-file-name-transforms)
574 (or (getenv "TEMP") (getenv "TMPDIR") (getenv "TMP") "c:/temp"))
575 ((memq system-type '(vax-vms axp-vms))
576 (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "SYS$SCRATCH:"))
577 (t
578 (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "/tmp")))))
579 (setq small-temporary-file-directory
580 (if (eq system-type 'ms-dos)
581 (getenv "TMPDIR")))
582 (setq auto-save-file-name-transforms
583 (list (list (car (car auto-save-file-name-transforms))
584 ;; Don't put "\\2" inside expand-file-name, since
585 ;; it will be transformed to "/2" on DOS/Windows.
586 (concat temporary-file-directory "\\2") t)))
587 574
588 ;; See if we should import version-control from the environment variable. 575 ;; See if we should import version-control from the environment variable.
589 (let ((vc (getenv "VERSION_CONTROL"))) 576 (let ((vc (getenv "VERSION_CONTROL")))
@@ -749,35 +736,14 @@ opening the first frame (e.g. open a connection to the server).")
749 (tool-bar-mode 1)) 736 (tool-bar-mode 1))
750 737
751 ;; Can't do this init in defcustom because the relevant variables 738 ;; Can't do this init in defcustom because the relevant variables
752 ;; are not set. If you make any changes to the `or' form below, 739 ;; are not set.
753 ;; you should also change the corresponding expression in the 740 (custom-reevaluate-setting 'blink-cursor-mode)
754 ;; defcustom in frame.el, or Custom will be badly confused. 741 (custom-reevaluate-setting 'normal-erase-is-backspace)
755 (unless (or noninteractive
756 no-blinking-cursor
757 (eq system-type 'ms-dos)
758 (not (memq initial-window-system '(x w32))))
759 (blink-cursor-mode 1))
760
761 (unless noninteractive
762 ;; DOS/Windows systems have a PC-type keyboard which has both
763 ;; <delete> and <backspace> keys.
764 (when (or (memq system-type '(ms-dos windows-nt))
765 (and (memq initial-window-system '(x))
766 (fboundp 'x-backspace-delete-keys-p)
767 (x-backspace-delete-keys-p))
768 ;; If the terminal Emacs is running on has erase char
769 ;; set to ^H, use the Backspace key for deleting
770 ;; backward and, and the Delete key for deleting forward.
771 (and (null initial-window-system)
772 (eq tty-erase-char 8)))
773 (setq-default normal-erase-is-backspace t)
774 (normal-erase-is-backspace-mode 1)))
775 742
776 (unless (or noninteractive 743 (unless (or noninteractive
777 emacs-quick-startup 744 emacs-quick-startup
778 (not (display-graphic-p)) 745 (not (display-graphic-p))
779 (not (fboundp 'x-show-tip))) 746 (not (fboundp 'x-show-tip)))
780 (setq-default tooltip-mode t)
781 (tooltip-mode 1)) 747 (tooltip-mode 1))
782 748
783 ;; Register default TTY colors for the case the terminal hasn't a 749 ;; Register default TTY colors for the case the terminal hasn't a
@@ -1757,5 +1723,5 @@ normal otherwise."
1757 (setq file (replace-match "/" t t file))) 1723 (setq file (replace-match "/" t t file)))
1758 file)) 1724 file))
1759 1725
1760;;; arch-tag: 7e294698-244d-4758-984b-4047f887a5db 1726;; arch-tag: 7e294698-244d-4758-984b-4047f887a5db
1761;;; startup.el ends here 1727;;; startup.el ends here
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index c224a970e01..7020426b9a8 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1329,7 +1329,7 @@ Word syntax described by `ispell-dictionary-alist' (which see)."
1329 nil 1329 nil
1330 buffer 1330 buffer
1331 nil 1331 nil
1332 "-l" 1332 (if ispell-really-aspell "list" "-l")
1333 (let (args) 1333 (let (args)
1334 ;; Local dictionary becomes the global dictionary in use. 1334 ;; Local dictionary becomes the global dictionary in use.
1335 (if ispell-local-dictionary 1335 (if ispell-local-dictionary