diff options
| author | Karoly Lorentey | 2006-05-20 10:32:11 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-05-20 10:32:11 +0000 |
| commit | aabd1a8b138a7f5907c3bb0bbd40932fa7b8e9fe (patch) | |
| tree | 7db1ed5481ec4ec6b43271d0ea57c032c22f60fc /src/coding.c | |
| parent | 9f97e26d01003a17b861505d535c89ad73799b7e (diff) | |
| parent | 689840b9224725a0beae741aaaa325d7edb2244c (diff) | |
| download | emacs-aabd1a8b138a7f5907c3bb0bbd40932fa7b8e9fe.tar.gz emacs-aabd1a8b138a7f5907c3bb0bbd40932fa7b8e9fe.zip | |
Merged from emacs@sv.gnu.org
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-285
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-286
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-287
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-288
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-102
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-558
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index a83aadfd468..659b52b93fb 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -365,6 +365,7 @@ Lisp_Object Qno_conversion, Qundecided; | |||
| 365 | Lisp_Object Qcoding_system_history; | 365 | Lisp_Object Qcoding_system_history; |
| 366 | Lisp_Object Qsafe_chars; | 366 | Lisp_Object Qsafe_chars; |
| 367 | Lisp_Object Qvalid_codes; | 367 | Lisp_Object Qvalid_codes; |
| 368 | Lisp_Object Qascii_incompatible; | ||
| 368 | 369 | ||
| 369 | extern Lisp_Object Qinsert_file_contents, Qwrite_region; | 370 | extern Lisp_Object Qinsert_file_contents, Qwrite_region; |
| 370 | Lisp_Object Qcall_process, Qcall_process_region; | 371 | Lisp_Object Qcall_process, Qcall_process_region; |
| @@ -3621,7 +3622,10 @@ setup_coding_system (coding_system, coding) | |||
| 3621 | = CODING_REQUIRE_DECODING_MASK | CODING_REQUIRE_ENCODING_MASK; | 3622 | = CODING_REQUIRE_DECODING_MASK | CODING_REQUIRE_ENCODING_MASK; |
| 3622 | } | 3623 | } |
| 3623 | else | 3624 | else |
| 3624 | coding->eol_type = CODING_EOL_LF; | 3625 | { |
| 3626 | coding->common_flags = 0; | ||
| 3627 | coding->eol_type = CODING_EOL_LF; | ||
| 3628 | } | ||
| 3625 | 3629 | ||
| 3626 | coding_type = XVECTOR (coding_spec)->contents[0]; | 3630 | coding_type = XVECTOR (coding_spec)->contents[0]; |
| 3627 | /* Try short cut. */ | 3631 | /* Try short cut. */ |
| @@ -3681,6 +3685,12 @@ setup_coding_system (coding_system, coding) | |||
| 3681 | if (!NILP (val)) | 3685 | if (!NILP (val)) |
| 3682 | coding->composing = COMPOSITION_NO; | 3686 | coding->composing = COMPOSITION_NO; |
| 3683 | 3687 | ||
| 3688 | /* If the coding system is ascii-incompatible, record it in | ||
| 3689 | common_flags. */ | ||
| 3690 | val = Fplist_get (plist, Qascii_incompatible); | ||
| 3691 | if (! NILP (val)) | ||
| 3692 | coding->common_flags |= CODING_ASCII_INCOMPATIBLE_MASK; | ||
| 3693 | |||
| 3684 | switch (XFASTINT (coding_type)) | 3694 | switch (XFASTINT (coding_type)) |
| 3685 | { | 3695 | { |
| 3686 | case 0: | 3696 | case 0: |
| @@ -7820,6 +7830,9 @@ syms_of_coding () | |||
| 7820 | Qvalid_codes = intern ("valid-codes"); | 7830 | Qvalid_codes = intern ("valid-codes"); |
| 7821 | staticpro (&Qvalid_codes); | 7831 | staticpro (&Qvalid_codes); |
| 7822 | 7832 | ||
| 7833 | Qascii_incompatible = intern ("ascii-incompatible"); | ||
| 7834 | staticpro (&Qascii_incompatible); | ||
| 7835 | |||
| 7823 | Qemacs_mule = intern ("emacs-mule"); | 7836 | Qemacs_mule = intern ("emacs-mule"); |
| 7824 | staticpro (&Qemacs_mule); | 7837 | staticpro (&Qemacs_mule); |
| 7825 | 7838 | ||