comparison lisp/international/mule.el @ 90233:ee12d75eb214

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-85 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 556-561) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 122-124) - Update from CVS: lisp/mm-url.el (mm-url-decode-entities): Fix regexp. - Update from CVS
author Miles Bader <miles@gnu.org>
date Sun, 25 Sep 2005 22:07:01 +0000
parents 76ab0b868ab0 ed770a0a7846
children 7beb78bc1f8e
comparison
equal deleted inserted replaced
90232:eab32348047a 90233:ee12d75eb214
1137 This marks the buffer modified so that the succeeding \\[save-buffer] 1137 This marks the buffer modified so that the succeeding \\[save-buffer]
1138 surely saves the buffer with CODING-SYSTEM. From a program, if you 1138 surely saves the buffer with CODING-SYSTEM. From a program, if you
1139 don't want to mark the buffer modified, specify t for NOMODIFY. 1139 don't want to mark the buffer modified, specify t for NOMODIFY.
1140 If you know exactly what coding system you want to use, 1140 If you know exactly what coding system you want to use,
1141 just set the variable `buffer-file-coding-system' directly." 1141 just set the variable `buffer-file-coding-system' directly."
1142 (interactive "zCoding system for saving file (default, nil): \nP") 1142 (interactive "zCoding system for saving file (default nil): \nP")
1143 (check-coding-system coding-system) 1143 (check-coding-system coding-system)
1144 (if (and coding-system buffer-file-coding-system (null force)) 1144 (if (and coding-system buffer-file-coding-system (null force))
1145 (setq coding-system 1145 (setq coding-system
1146 (merge-coding-systems coding-system buffer-file-coding-system))) 1146 (merge-coding-systems coding-system buffer-file-coding-system)))
1147 (setq buffer-file-coding-system coding-system) 1147 (setq buffer-file-coding-system coding-system)
1161 leaves the end-of-line conversion unspecified, FORCE controls what to 1161 leaves the end-of-line conversion unspecified, FORCE controls what to
1162 do. If FORCE is nil, get the unspecified aspect (or aspects) from the 1162 do. If FORCE is nil, get the unspecified aspect (or aspects) from the
1163 buffer's previous `buffer-file-coding-system' value (if it is 1163 buffer's previous `buffer-file-coding-system' value (if it is
1164 specified there). Otherwise, determine it from the file contents as 1164 specified there). Otherwise, determine it from the file contents as
1165 usual for visiting a file." 1165 usual for visiting a file."
1166 (interactive "zCoding system for visited file (default, nil): \nP") 1166 (interactive "zCoding system for visited file (default nil): \nP")
1167 (check-coding-system coding-system) 1167 (check-coding-system coding-system)
1168 (if (and coding-system buffer-file-coding-system (null force)) 1168 (if (and coding-system buffer-file-coding-system (null force))
1169 (setq coding-system 1169 (setq coding-system
1170 (merge-coding-systems coding-system buffer-file-coding-system))) 1170 (merge-coding-systems coding-system buffer-file-coding-system)))
1171 (let ((coding-system-for-read coding-system)) 1171 (let ((coding-system-for-read coding-system))
1173 1173
1174 (defun set-file-name-coding-system (coding-system) 1174 (defun set-file-name-coding-system (coding-system)
1175 "Set coding system for decoding and encoding file names to CODING-SYSTEM. 1175 "Set coding system for decoding and encoding file names to CODING-SYSTEM.
1176 It actually just set the variable `file-name-coding-system' (which 1176 It actually just set the variable `file-name-coding-system' (which
1177 see) to CODING-SYSTEM." 1177 see) to CODING-SYSTEM."
1178 (interactive "zCoding system for file names (default, nil): ") 1178 (interactive "zCoding system for file names (default nil): ")
1179 (check-coding-system coding-system) 1179 (check-coding-system coding-system)
1180 (if (and coding-system 1180 (if (and coding-system
1181 (not (coding-system-get coding-system :ascii-compatible-p)) 1181 (not (coding-system-get coding-system :ascii-compatible-p))
1182 (not (coding-system-get coding-system :suitable-for-file-name))) 1182 (not (coding-system-get coding-system :suitable-for-file-name)))
1183 (error "%s is not suitable for file names" coding-system)) 1183 (error "%s is not suitable for file names" coding-system))
1198 (interactive 1198 (interactive
1199 (list (let ((default (if (and (not (terminal-coding-system)) 1199 (list (let ((default (if (and (not (terminal-coding-system))
1200 default-terminal-coding-system) 1200 default-terminal-coding-system)
1201 default-terminal-coding-system))) 1201 default-terminal-coding-system)))
1202 (read-coding-system 1202 (read-coding-system
1203 (format "Coding system for terminal display (default, %s): " 1203 (format "Coding system for terminal display (default %s): "
1204 default) 1204 default)
1205 default)))) 1205 default))))
1206 (if (and (not coding-system) 1206 (if (and (not coding-system)
1207 (not (terminal-coding-system))) 1207 (not (terminal-coding-system)))
1208 (setq coding-system default-terminal-coding-system)) 1208 (setq coding-system default-terminal-coding-system))
1227 (interactive 1227 (interactive
1228 (list (let ((default (if (and (not (keyboard-coding-system)) 1228 (list (let ((default (if (and (not (keyboard-coding-system))
1229 default-keyboard-coding-system) 1229 default-keyboard-coding-system)
1230 default-keyboard-coding-system))) 1230 default-keyboard-coding-system)))
1231 (read-coding-system 1231 (read-coding-system
1232 (format "Coding system for keyboard input (default, %s): " 1232 (format "Coding system for keyboard input (default %s): "
1233 default) 1233 default)
1234 default)))) 1234 default))))
1235 (if (and (not coding-system) 1235 (if (and (not coding-system)
1236 (not (keyboard-coding-system))) 1236 (not (keyboard-coding-system)))
1237 (setq coding-system default-keyboard-coding-system)) 1237 (setq coding-system default-keyboard-coding-system))
1301 "Use CODING-SYSTEM for next communication with other window system clients. 1301 "Use CODING-SYSTEM for next communication with other window system clients.
1302 This setting is effective for the next communication only." 1302 This setting is effective for the next communication only."
1303 (interactive 1303 (interactive
1304 (list (read-coding-system 1304 (list (read-coding-system
1305 (if last-next-selection-coding-system 1305 (if last-next-selection-coding-system
1306 (format "Coding system for the next selection (default, %S): " 1306 (format "Coding system for the next selection (default %S): "
1307 last-next-selection-coding-system) 1307 last-next-selection-coding-system)
1308 "Coding system for the next selection: ") 1308 "Coding system for the next selection: ")
1309 last-next-selection-coding-system))) 1309 last-next-selection-coding-system)))
1310 (if coding-system 1310 (if coding-system
1311 (setq last-next-selection-coding-system coding-system) 1311 (setq last-next-selection-coding-system coding-system)