diff options
| author | Chong Yidong | 2010-08-22 17:15:20 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-08-22 17:15:20 -0400 |
| commit | 198a7a97ff99b96523f7c0736aa303d305595094 (patch) | |
| tree | 956fc21f7bd577ca58c981dd67859409dfb0153e /lisp | |
| parent | b0126eac41487b9bca5af5cbb2212ff5b2c58b80 (diff) | |
| download | emacs-198a7a97ff99b96523f7c0736aa303d305595094.tar.gz emacs-198a7a97ff99b96523f7c0736aa303d305595094.zip | |
Make obsolete --unibyte argument do nothing (Bug#6886).
* src/emacs.c (main): Remove --unibyte handling (Bug#6886).
* lisp/startup.el (command-line-1): Issue warning for ignored arguments
--unibyte, etc (Bug#6886).
* doc/lispref/nonascii.texi (Text Representations):
* doc/lispref/loading.texi (Loading Non-ASCII):
* doc/lispref/compile.texi (Byte Compilation): Don't mention obsolete
--unibyte command-line argument.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/Makefile.in | 5 | ||||
| -rw-r--r-- | lisp/international/mule.el | 10 | ||||
| -rw-r--r-- | lisp/makefile.w32-in | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 24 |
5 files changed, 26 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 12a2ffce5bd..9452ac294dd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> | 1 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * startup.el (command-line-1): Issue warning for ignored arguments | ||
| 4 | --unibyte, etc (Bug#6886). | ||
| 5 | |||
| 6 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 7 | |||
| 3 | * emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix (Bug#6880). | 8 | * emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix (Bug#6880). |
| 4 | 9 | ||
| 5 | 2010-08-22 Leo <sdl.web@gmail.com> | 10 | 2010-08-22 Leo <sdl.web@gmail.com> |
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 4effdddff6a..8d681b4f673 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -33,10 +33,9 @@ VPATH = $(srcdir) | |||
| 33 | # to use an absolute file name. | 33 | # to use an absolute file name. |
| 34 | EMACS = ${abs_top_builddir}/src/emacs | 34 | EMACS = ${abs_top_builddir}/src/emacs |
| 35 | 35 | ||
| 36 | # Command line flags for Emacs. This must include --multibyte, | 36 | # Command line flags for Emacs. |
| 37 | # otherwise some files will not compile. | ||
| 38 | 37 | ||
| 39 | EMACSOPT = -batch --no-site-file --multibyte | 38 | EMACSOPT = -batch --no-site-file |
| 40 | 39 | ||
| 41 | # Extra flags to pass to the byte compiler | 40 | # Extra flags to pass to the byte compiler |
| 42 | BYTE_COMPILE_EXTRA_FLAGS = | 41 | BYTE_COMPILE_EXTRA_FLAGS = |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 59d6ff42c97..84b8db3e9ca 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -326,8 +326,7 @@ Return t if file exists." | |||
| 326 | (with-current-buffer buffer | 326 | (with-current-buffer buffer |
| 327 | ;; So that we don't get completely screwed if the | 327 | ;; So that we don't get completely screwed if the |
| 328 | ;; file is encoded in some complicated character set, | 328 | ;; file is encoded in some complicated character set, |
| 329 | ;; read it with real decoding, as a multibyte buffer, | 329 | ;; read it with real decoding, as a multibyte buffer. |
| 330 | ;; even if this is a --unibyte Emacs session. | ||
| 331 | (set-buffer-multibyte t) | 330 | (set-buffer-multibyte t) |
| 332 | ;; Don't let deactivate-mark remain set. | 331 | ;; Don't let deactivate-mark remain set. |
| 333 | (let (deactivate-mark) | 332 | (let (deactivate-mark) |
| @@ -346,12 +345,7 @@ Return t if file exists." | |||
| 346 | (eval-buffer buffer nil | 345 | (eval-buffer buffer nil |
| 347 | ;; This is compatible with what `load' does. | 346 | ;; This is compatible with what `load' does. |
| 348 | (if purify-flag file fullname) | 347 | (if purify-flag file fullname) |
| 349 | ;; If this Emacs is running with --unibyte, | 348 | nil t)) |
| 350 | ;; convert multibyte strings to unibyte | ||
| 351 | ;; after reading them. | ||
| 352 | ;; (not (default-value 'enable-multibyte-characters)) | ||
| 353 | nil t | ||
| 354 | )) | ||
| 355 | (let (kill-buffer-hook kill-buffer-query-functions) | 349 | (let (kill-buffer-hook kill-buffer-query-functions) |
| 356 | (kill-buffer buffer))) | 350 | (kill-buffer buffer))) |
| 357 | (do-after-load-evaluation fullname) | 351 | (do-after-load-evaluation fullname) |
diff --git a/lisp/makefile.w32-in b/lisp/makefile.w32-in index 871b690f007..df997b76585 100644 --- a/lisp/makefile.w32-in +++ b/lisp/makefile.w32-in | |||
| @@ -32,10 +32,9 @@ srcdir = $(CURDIR)/.. | |||
| 32 | 32 | ||
| 33 | EMACS = $(THISDIR)/../bin/emacs.exe | 33 | EMACS = $(THISDIR)/../bin/emacs.exe |
| 34 | 34 | ||
| 35 | # Command line flags for Emacs. This must include --multibyte, | 35 | # Command line flags for Emacs. |
| 36 | # otherwise some files will not compile. | ||
| 37 | 36 | ||
| 38 | EMACSOPT = -batch --no-init-file --no-site-file --multibyte | 37 | EMACSOPT = -batch --no-init-file --no-site-file |
| 39 | 38 | ||
| 40 | # Extra flags to pass to the byte compiler | 39 | # Extra flags to pass to the byte compiler |
| 41 | BYTE_COMPILE_EXTRA_FLAGS = | 40 | BYTE_COMPILE_EXTRA_FLAGS = |
diff --git a/lisp/startup.el b/lisp/startup.el index 76e11491c0c..72169799acf 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -785,15 +785,16 @@ opening the first frame (e.g. open a connection to an X server).") | |||
| 785 | argi (match-string 1 argi))) | 785 | argi (match-string 1 argi))) |
| 786 | (when (string-match "\\`--." orig-argi) | 786 | (when (string-match "\\`--." orig-argi) |
| 787 | (let ((completion (try-completion argi longopts))) | 787 | (let ((completion (try-completion argi longopts))) |
| 788 | (if (eq completion t) | 788 | (cond ((eq completion t) |
| 789 | (setq argi (substring argi 1)) | 789 | (setq argi (substring argi 1))) |
| 790 | (if (stringp completion) | 790 | ((stringp completion) |
| 791 | (let ((elt (assoc completion longopts))) | 791 | (let ((elt (assoc completion longopts))) |
| 792 | (or elt | 792 | (unless elt |
| 793 | (error "Option `%s' is ambiguous" argi)) | 793 | (error "Option `%s' is ambiguous" argi)) |
| 794 | (setq argi (substring (car elt) 1))) | 794 | (setq argi (substring (car elt) 1)))) |
| 795 | (setq argval nil | 795 | (t |
| 796 | argi orig-argi))))) | 796 | (setq argval nil |
| 797 | argi orig-argi))))) | ||
| 797 | (cond | 798 | (cond |
| 798 | ;; The --display arg is handled partly in C, partly in Lisp. | 799 | ;; The --display arg is handled partly in C, partly in Lisp. |
| 799 | ;; When it shows up here, we just put it back to be handled | 800 | ;; When it shows up here, we just put it back to be handled |
| @@ -2231,6 +2232,11 @@ A fancy display is used on graphic displays, normal otherwise." | |||
| 2231 | (move-to-column (1- cl1-column))) | 2232 | (move-to-column (1- cl1-column))) |
| 2232 | (setq cl1-column 0)) | 2233 | (setq cl1-column 0)) |
| 2233 | 2234 | ||
| 2235 | ;; These command lines now have no effect. | ||
| 2236 | ((string-match "\\`--?\\(no-\\)?\\(uni\\|multi\\)byte$" argi) | ||
| 2237 | (display-warning 'initialization | ||
| 2238 | (format "Ignoring obsolete arg %s" argi))) | ||
| 2239 | |||
| 2234 | ((equal argi "--") | 2240 | ((equal argi "--") |
| 2235 | (setq just-files t)) | 2241 | (setq just-files t)) |
| 2236 | (t | 2242 | (t |