Mercurial > hg > xemacs-beta
diff src/symbols.c @ 5292:e4305eb6fb8c
Merge some permissions corrections to trunk.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Mon, 18 Oct 2010 23:21:23 +0900 |
parents | d804e621add0 |
children | 8608eadee6ba 308d34e9f07d |
line wrap: on
line diff
--- a/src/symbols.c Mon Oct 18 23:03:27 2010 +0900 +++ b/src/symbols.c Mon Oct 18 23:21:23 2010 +0900 @@ -198,15 +198,23 @@ } Lisp_Object -intern_converting_underscores_to_dashes (const CIbyte *str) +intern_massaging_name (const CIbyte *str) { Bytecount len = strlen (str); CIbyte *tmp = alloca_extbytes (len + 1); Bytecount i; strcpy (tmp, str); for (i = 0; i < len; i++) - if (tmp[i] == '_') - tmp[i] = '-'; + { + if (tmp[i] == '_') + { + tmp[i] = '-'; + } + else if (tmp[i] == 'X') + { + tmp[i] = '*'; + } + } return intern_istring ((Ibyte *) tmp); } @@ -3530,6 +3538,7 @@ OBJECT_HAS_METHOD (symbol, putprop); OBJECT_HAS_METHOD (symbol, remprop); OBJECT_HAS_NAMED_METHOD (symbol, plist, Fsymbol_plist); + OBJECT_HAS_NAMED_METHOD (symbol, setplist, Fsetplist); } void