all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Stromeko@nexgo.de, 12598@debbugs.gnu.org
Subject: bug#12598: 24.2; utf-8 codepoints in doc-strings and compression of .el and .elc files
Date: Tue, 05 Feb 2013 22:40:18 +0900	[thread overview]
Message-ID: <87pq0e516l.fsf@gnu.org> (raw)
In-Reply-To: <jwv7gmpl72g.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 03 Feb 2013 11:04:47 -0500)

In article <jwv7gmpl72g.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:

> > Should eval-buffer handle byte-compiled code in a buffer?

> That'd be nice, tho it might be kind of annoying to implement (having to
> look at buffer-file-coding-system to figure out the byte-size of each
> char when skipping #@NN).

If we don't change eval-buffer, we should fix Fload itself.
It has this code now:

  if (!memcmp (SDATA (found) + SBYTES (found) - 4, ".elc", 4)
      || (fd >= 0 && (version = safe_to_load_version (fd)) > 0))
    /* Load .elc files directly, but not when they are
       remote and have no handler!  */
[...]
  else
    {
      /* We are loading a source file (*.el).  */
      if (!NILP (Vload_source_file_function))
	{
	  Lisp_Object val;

	  if (fd >= 0)
	    emacs_close (fd);
	  val = call4 (Vload_source_file_function, found, hist_file_name,
		       NILP (noerror) ? Qnil : Qt,
		       (NILP (nomessage) || force_load_messages) ? Qnil : Qt);
	  return unbind_to (count, val);
	}
    }

Apparently, Fload doesn't intend to handle a compressed
byte-compiled file.  And, it is possible to bind
load-source-file-function to some other function than
load-with-code-conversion, modifing
load-with-code-conversion is not enough.

---
Kenichi Handa
handa@gnu.org





  reply	other threads:[~2013-02-05 13:40 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-07 17:44 bug#12598: 24.2; utf-8 codepoints in doc-strings and compression of .el and .elc files Achim Gratz
2012-10-07 19:40 ` Stefan Monnier
2012-10-07 20:05   ` Achim Gratz
2012-10-07 21:15     ` Andreas Schwab
2012-10-08  5:24       ` Achim Gratz
2012-10-08  5:36         ` Achim Gratz
2013-01-31 18:15           ` Stefan Monnier
2013-01-31 18:37             ` Achim Gratz
2013-02-01  9:23             ` Kenichi Handa
2013-02-01 14:06               ` Stefan Monnier
2013-02-03 11:44                 ` Kenichi Handa
2013-02-03 16:04                   ` Stefan Monnier
2013-02-05 13:40                     ` Kenichi Handa [this message]
2013-02-05 17:43                       ` Stefan Monnier
2013-02-06  0:46                         ` Kenichi Handa
2013-02-03 16:06                   ` Stefan Monnier
2013-02-06 15:02     ` Stefan Monnier
2013-02-09  5:05       ` Kenichi Handa
2013-02-09  9:16         ` Eli Zaretskii
2013-02-09 14:51           ` Kenichi Handa
2014-04-23  3:11             ` Stefan Monnier
2022-04-23 16:18               ` Lars Ingebrigtsen
2022-04-25  9:19                 ` Michael Albinus
2022-04-25  9:45                   ` Lars Ingebrigtsen
2022-06-02  9:51                     ` Lars Ingebrigtsen
2013-02-08 17:43 ` Stefan Monnier

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=87pq0e516l.fsf@gnu.org \
    --to=handa@gnu.org \
    --cc=12598@debbugs.gnu.org \
    --cc=Stromeko@nexgo.de \
    --cc=monnier@iro.umontreal.ca \
    /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.