aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorStefan Monnier2009-08-28 17:02:53 +0000
committerStefan Monnier2009-08-28 17:02:53 +0000
commit14acf2f55e96b3d01cd4f42508313a87d01c65cf (patch)
tree70cd72663c338877f2071ce88c562a17968afb20 /lisp/emulation
parent72f16325c1807f5e822c2eb76e10392630842d39 (diff)
downloademacs-14acf2f55e96b3d01cd4f42508313a87d01c65cf.tar.gz
emacs-14acf2f55e96b3d01cd4f42508313a87d01c65cf.zip
* gnus/nnheader.el (nnheader-find-file-noselect):
* gnus/mm-util.el (mm-insert-file-contents): * org/org-html.el (org-export-as-html): * org/org-docbook.el (org-export-as-docbook): * textmodes/reftex.el (reftex-get-file-buffer-force): * progmodes/verilog-mode.el (verilog-batch-execute-func): * emulation/viper.el (viper-go-away, viper-set-hooks): * emacs-lisp/re-builder.el (re-builder-unload-function): * emacs-lisp/bytecomp.el (byte-compile-file): * ses.el (ses-unload-function): * hexl.el (hexl-find-file): * files.el (normal-mode): * ehelp.el (with-electric-help): * autoinsert.el (auto-insert-alist): * arc-mode.el (archive-mode): Use (default-value 'major-mode) instead of default-major-mode.
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/viper.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el
index 1631b1aa6ba..2d65f5c4a06 100644
--- a/lisp/emulation/viper.el
+++ b/lisp/emulation/viper.el
@@ -678,8 +678,9 @@ It also can't undo some Viper settings."
678 global-mode-string 678 global-mode-string
679 (delq 'viper-mode-string global-mode-string)) 679 (delq 'viper-mode-string global-mode-string))
680 680
681 (setq default-major-mode 681 (setq-default major-mode
682 (viper-standard-value 'default-major-mode viper-saved-non-viper-variables)) 682 (viper-standard-value 'default-major-mode
683 viper-saved-non-viper-variables))
683 684
684 (if (featurep 'emacs) 685 (if (featurep 'emacs)
685 (setq-default 686 (setq-default
@@ -834,8 +835,8 @@ It also can't undo some Viper settings."
834 ;; in Fundamental Mode and Vi state. 835 ;; in Fundamental Mode and Vi state.
835 ;; When viper-mode is executed in such a case, it will set the major mode 836 ;; When viper-mode is executed in such a case, it will set the major mode
836 ;; back to fundamental-mode. 837 ;; back to fundamental-mode.
837 (if (eq default-major-mode 'fundamental-mode) 838 (if (eq (default-value 'major-mode) 'fundamental-mode)
838 (setq default-major-mode 'viper-mode)) 839 (setq-default major-mode 'viper-mode))
839 840
840 (add-hook 'change-major-mode-hook 'viper-major-mode-change-sentinel) 841 (add-hook 'change-major-mode-hook 'viper-major-mode-change-sentinel)
841 (add-hook 'find-file-hooks 'set-viper-state-in-major-mode) 842 (add-hook 'find-file-hooks 'set-viper-state-in-major-mode)
@@ -1214,7 +1215,7 @@ These two lines must come in the order given.
1214(if (null viper-saved-non-viper-variables) 1215(if (null viper-saved-non-viper-variables)
1215 (setq viper-saved-non-viper-variables 1216 (setq viper-saved-non-viper-variables
1216 (list 1217 (list
1217 (cons 'default-major-mode (list default-major-mode)) 1218 (cons 'default-major-mode (list (default-value 'major-mode)))
1218 (cons 'next-line-add-newlines (list next-line-add-newlines)) 1219 (cons 'next-line-add-newlines (list next-line-add-newlines))
1219 (cons 'require-final-newline (list require-final-newline)) 1220 (cons 'require-final-newline (list require-final-newline))
1220 (cons 'scroll-step (list scroll-step)) 1221 (cons 'scroll-step (list scroll-step))