Mercurial > emacs
annotate etc/emacs.csh @ 30487:6165da9c89c6
(Qsafe_charsets): This variable deleted.
(Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
variables.
(coding_safe_chars): New function.
(CODING_SAFE_CHAR_P): New macro.
(CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
checking safe_charsets member of the coding system. Caller
changed.
(detect_coding_iso2022): New local variable safe_chars.
(DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
safe_charsets member of the coding system.
(decode_coding_iso2022): New local variable safe_chars.
(ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
(ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
(ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
(ENCODE_UNSAFE_CHARACTER): New macro.
(encode_coding_iso2022): New local variable safe_chars. Check
unsafe chars.
(setup_coding_system): Delete the code to initialize
coding->safe_charses
(intersection, find_safe_codings): New functions.
(Ffind_coding_systems_region_internal): New function.
(syms_of_coding): Defsubr it. Initialize Qsafe_chars,
Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
variable and initialize it.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 27 Jul 2000 06:01:19 +0000 |
parents | e96ffe544684 |
children | 695cf19ef79e |
rev | line source |
---|---|
25853 | 1 # This defines a csh command named `edit' which resumes an |
2 # existing Emacs or starts a new one if none exists. | |
3 # One way or another, any arguments are passed to Emacs to specify files | |
4 # (provided you have loaded `resume.el'). | |
5 # - Michael DeCorte | |
6 | |
7 # These are the possible values of $whichjob | |
8 # 1 = new ordinary emacs (the -nw is so that it doesn't try to do X) | |
9 # 2 = resume emacs | |
10 # 3 = new emacs under X (-i is so that you get a reasonable icon) | |
11 # 4 = resume emacs under X | |
12 # 5 = new emacs under suntools | |
13 # 6 = resume emacs under suntools | |
14 # 7 = new emacs under X and suntools - doesn't make any sense, so use X | |
15 # 8 = resume emacs under X and suntools - doesn't make any sense, so use X | |
16 set EMACS_PATTERN="^\[[0-9]\] . Stopped ............ $EMACS" | |
17 | |
18 alias edit 'set emacs_command=("emacs -nw \!*" "fg %emacs" "emacs -i \!* &"\ | |
19 "emacsclient \!* &" "emacstool \!* &" "emacsclient \!* &" "emacs -i \!* &"\ | |
20 "emacsclient \!* &") ; \ | |
21 jobs >! $HOME/.jobs; grep "$EMACS_PATTERN" < $HOME/.jobs >& /dev/null; \ | |
22 @ isjob = ! $status; \ | |
23 @ whichjob = 1 + $isjob + $?DISPLAY * 2 + $?WINDOW_PARENT * 4; \ | |
24 test -S ~/.emacs_server && emacsclient \!* \ | |
25 || echo `pwd` \!* >! ~/.emacs_args && eval $emacs_command[$whichjob]' |