aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-17 04:28:13 +0000
committerRichard M. Stallman1997-05-17 04:28:13 +0000
commit16d8aee1ccccc02d6ef26589a8bacefbda6487a6 (patch)
treeecfa1eb8283acb817706b353e23cccb0b2456fe4
parent3696d9b9775abd0ceb963679aa896a27e6af0a0a (diff)
downloademacs-16d8aee1ccccc02d6ef26589a8bacefbda6487a6.tar.gz
emacs-16d8aee1ccccc02d6ef26589a8bacefbda6487a6.zip
(do-auto-fill): Check enable-kinsoku and enable-multibyte-characters.
(quoted-insert): Use nonascii-insert-offset. (quoted-insert-character-offset): Variable deleted.
-rw-r--r--lisp/simple.el9
1 files changed, 2 insertions, 7 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 30ec4d558d1..e3489c7cf42 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -156,11 +156,6 @@ With arg N, insert N newlines."
156 (indent-to col 0) 156 (indent-to col 0)
157 (goto-char pos))) 157 (goto-char pos)))
158 158
159(defcustom quoted-insert-character-offset (- (make-char 'latin-iso8859-1) 128)
160 "*Offset added by \\[quoted-insert] to character codes 0200 and above."
161 :tag 'integer
162 :group 'i18n)
163
164(defun quoted-insert (arg) 159(defun quoted-insert (arg)
165 "Read next input character and insert it. 160 "Read next input character and insert it.
166This is useful for inserting control characters. 161This is useful for inserting control characters.
@@ -185,7 +180,7 @@ this function useful in editing binary files."
185 (and enable-multibyte-characters 180 (and enable-multibyte-characters
186 (>= char ?\200) 181 (>= char ?\200)
187 (<= char ?\377) 182 (<= char ?\377)
188 (setq char (+ quoted-insert-character-offset char))) 183 (setq char (+ nonascii-insert-offset char)))
189 (if (> arg 0) 184 (if (> arg 0)
190 (if (eq overwrite-mode 'overwrite-mode-binary) 185 (if (eq overwrite-mode 'overwrite-mode-binary)
191 (delete-char arg))) 186 (delete-char arg)))
@@ -2613,7 +2608,7 @@ Setting this variable automatically makes it local to the current buffer."
2613 (skip-chars-backward " \t") 2608 (skip-chars-backward " \t")
2614 ;; Break the line after/before \c|. 2609 ;; Break the line after/before \c|.
2615 (forward-char 1) 2610 (forward-char 1)
2616 (if do-kinsoku 2611 (if (and enable-kinsoku enable-multibyte-characters)
2617 (kinsoku (save-excursion 2612 (kinsoku (save-excursion
2618 (forward-line 0) (point))))))) 2613 (forward-line 0) (point)))))))
2619 ;; Let fill-point be set to the place where we end up. 2614 ;; Let fill-point be set to the place where we end up.