Mercurial > hg > xemacs-beta
annotate lib-src/emacs.csh @ 5285:99de5fd48e87
Tighten up Common Lisp compatibility, #'butlast, #'nbutlast, #'tailp, #'ldiff
lisp/ChangeLog addition:
2010-10-14 Aidan Kehoe <kehoea@parhasard.net>
* byte-optimize.el (side-effect-free-fns):
* cl-macs.el (remf, getf):
* cl-extra.el (tailp, cl-set-getf, cl-do-remf):
* cl.el (ldiff, endp):
Tighten up Common Lisp compatibility for #'ldiff, #'endp, #'tailp;
add circularity checking for the first two.
#'cl-set-getf and #'cl-do-remf were Lisp implementations of
#'plist-put and #'plist-remprop; change the names to aliases,
changes the macros that use them to using #'plist-put and
#'plist-remprop directly.
src/ChangeLog addition:
2010-10-14 Aidan Kehoe <kehoea@parhasard.net>
* fns.c (Fnbutlast, Fbutlast):
Tighten up Common Lisp compatibility for these two functions; they
need to operate on dotted lists without erroring.
tests/ChangeLog addition:
2010-10-14 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el (x):
Test #'nbutlast, #'butlast with dotted lists.
Check that #'ldiff and #'tailp don't hang on circular lists; check
that #'tailp returns t with circular lists when that is
appropriate. Test them both with dotted lists.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 14 Oct 2010 18:50:38 +0100 |
parents | 376386a54a3c |
children | 06dd936cde16 |
rev | line source |
---|---|
0 | 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]' |