From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: standalone url-hexify-string? Date: Fri, 25 Apr 2003 16:44:05 +0100 Organization: None Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <7ir87rsp2f.fsf@neoscale.com> <7iof2u1t7p.fsf@neoscale.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051285692 7049 80.91.224.249 (25 Apr 2003 15:48:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 25 Apr 2003 15:48:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 25 17:48:11 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1995Qp-0001pU-00 for ; Fri, 25 Apr 2003 17:48:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1995Ox-00072o-04 for gnu-help-gnu-emacs@m.gmane.org; Fri, 25 Apr 2003 11:46:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.esat.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: xpc21.ast.cam.ac.uk X-Attribution: GM Mail-Copies-To: never User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html) Cancel-Lock: sha1:6yjW42qsOPKKhkV3+l+CGUZv2zo= Original-Xref: shelby.stanford.edu gnu.emacs.help:112332 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8832 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8832 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))))