[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: standalone url-hexify-string?
From: |
Glenn Morris |
Subject: |
Re: standalone url-hexify-string? |
Date: |
Fri, 25 Apr 2003 16:44:05 +0100 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html) |
Kin Cho wrote:
> I tried the function on 21.3, but emacs complainted that
> mule-sysdep-version isn't defined.
I would have thought it fairly obvious you could remove that bit,
since it appears only in a test for Emacs flavour, and you said you
wanted it for GNU Emacs.
>> (defun mule-decode-string (str)
>> (and str
>> (case mule-sysdep-version
>> ((2.4 3.0 xemacs)
>> (decode-coding-string str mule-retrieval-coding-system))
>> (2.3
>> (code-convert-string str *internal* mule-retrieval-coding-system))
>> ;;; ((4.0 4.1)
>> ((4.0 4.1 5.0) ; Emacs 21
>> (if default-enable-multibyte-characters
>> (decode-coding-string str mule-retrieval-coding-system)
>> str))
>> (otherwise
>> str))))