Mercurial > hg > xemacs-beta
comparison lisp/coding.el @ 4599:0347879667ed
Document the force-coding-system-equivalency macro in coding.el.
lisp/ChangeLog addition:
2009-02-04 Aidan Kehoe <kehoea@parhasard.net>
* coding.el (force-coding-system-equivalency):
Document this macro and the motivation for it.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 04 Feb 2009 12:41:14 +0000 |
parents | 8891b0477058 |
children | e0a8715fdb1f |
comparison
equal
deleted
inserted
replaced
4598:8891b0477058 | 4599:0347879667ed |
---|---|
244 | 244 |
245 | 245 |
246 ;;; Make certain variables equivalent to coding-system aliases: | 246 ;;; Make certain variables equivalent to coding-system aliases: |
247 (macrolet | 247 (macrolet |
248 ((force-coding-system-equivalency (&rest details-list) | 248 ((force-coding-system-equivalency (&rest details-list) |
249 "Certain coding-system aliases should correspond to certain variables. | |
250 | |
251 This macro implements that correspondence. This gives us compatiblity with | |
252 other Mule implementations (which don't use the coding system aliases), and | |
253 a certain amount of freedom of implementation for XEmacs; using a variable's | |
254 value in C for every file operation or write to a terminal in C is probably | |
255 an improvement on the hash-table lookup(s) necessary for a coding system | |
256 alias, though we haven't profiled this yet to see if it makes a difference." | |
249 (loop for (alias variable-symbol) | 257 (loop for (alias variable-symbol) |
250 in details-list | 258 in details-list |
251 with result = (list 'progn) | 259 with result = (list 'progn) |
252 do | 260 do |
253 (push | 261 (push |