all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: decode-coding-string and consing
Date: Mon, 10 Feb 2003 17:47:53 +0100	[thread overview]
Message-ID: <m3hebc13ra.fsf@defun.localdomain> (raw)

,----[ C-h f decode-coding-string RET ]
| decode-coding-string is a built-in function.
| (decode-coding-string STRING CODING-SYSTEM &optional NOCOPY)
| 
| Decode STRING which is encoded in CODING-SYSTEM, and return the result.
| Optional arg NOCOPY non-nil means it is OK to return STRING itself
| if the decoding operation is trivial.
`----

Under what conditions is the decoding operation "trivial"?

I was hoping that something like:

  (decode-coding-string "abc" 'us-ascii t) or
  (decode-coding-string "abc" 'latin-1 t)

wouldn't cons a new string; but unfortunaley it does.

             reply	other threads:[~2003-02-10 16:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-10 16:47 Jesper Harder [this message]
2003-02-10 20:01 ` decode-coding-string and consing Eli Zaretskii
     [not found] ` <mailman.1748.1044907500.21513.help-gnu-emacs@gnu.org>
2003-02-10 21:53   ` Jesper Harder
2003-02-11  6:32     ` Eli Zaretskii
     [not found] <mailman.1774.1044945196.21513.help-gnu-emacs@gnu.org>
2003-02-11 17:26 ` Jesper Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3hebc13ra.fsf@defun.localdomain \
    --to=harder@myrealbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.