From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Prickliness of the "invalid byte code" stuff Date: Sun, 16 Jun 2019 19:39:26 -0700 Message-ID: References: <87tvcq9b0w.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="76395"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 17 04:40:41 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hchZZ-000Jme-Kh for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 04:40:41 +0200 Original-Received: from localhost ([::1]:43806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hchZX-0006WX-RQ for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2019 22:40:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33752) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hchZO-0006W3-Pw for emacs-devel@gnu.org; Sun, 16 Jun 2019 22:40:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hchYV-00079m-9M for emacs-devel@gnu.org; Sun, 16 Jun 2019 22:39:36 -0400 Original-Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:33102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hchYV-000794-1V for emacs-devel@gnu.org; Sun, 16 Jun 2019 22:39:35 -0400 Original-Received: by mail-pg1-x52e.google.com with SMTP id k187so4901750pga.0 for ; Sun, 16 Jun 2019 19:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=pXUe1qP2+Ed9B9/01/8B7OvGBRU5aB2XxSayXJfMi/U=; b=VrnRE0BRqOm5h6zjklXCtlDIMZ+yidUpV29w6vmJv0GBvs/poGLrYWKDe3sRYn4bnC FqZPq4BO/Rdd8OiCwZpywOL2GhhOsNnbp5j24+H6Y6jfIXVn3YoHzdmSo/Go1FeUjJdc /4sM35qKNDf2ofnn9vU6AsWyklv3L/548kdiAK34KRQFGICCI6TKNbYwEn/Yj4l2/DVg ukYEoKMsziCeiBOR0GGgNHDdGV6uYY0elsslC8HnrG1FvRrE/8nsYJbnoJW47N5iFlSW ucqYbzAAvcS/lWthZkb9btB7MrjL9RgWsguhlSnkDdS2dG2XVeEP2MQYBBsTUYsMKVSU YOsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pXUe1qP2+Ed9B9/01/8B7OvGBRU5aB2XxSayXJfMi/U=; b=ramFTIE0JrICYvi4ssaTKm7esAz/ht/xKSjOeSCcwiK5T2qarf/WMV8JJp0gi0XhiL OgdvOV5E9r5iKv9hkt9PohSQaOQDXF9tsoCAhLpE0PktgzIPdnVeocmW+kTqTrHVFHeQ nYTMugkoupHGTBaz47KbgbBsqmY6vsBh1YVilsnXsYRRAmd0XegIP4uv3WNAnZbdOdbQ eAS+WBE0Vagx48WrFOegyxUvmO7X3yN55qJqS/tye5b9k5GSkJFKnA51BPdy6HuLVRLR 1q84TyOmAQk6x4vJfE5BJhlsvIG33cgiPMDVu3h5yL11TChlxcsuScal+F1eQsIWEj8f 1tbg== X-Gm-Message-State: APjAAAUa7fxTeMHZtJ+5B4Mwv4evnSco88dQbCQI7i0N+pFvQDSYjSvL cM1ukrlvGNumyTX34LWPtW3uB36qQIk= X-Google-Smtp-Source: APXvYqypToellqpF4SstvVScxsTCgxTzkVXqGGNGK/pG83xLruegbQMUc6+7vByPjtDOHGen6+ygEw== X-Received: by 2002:a17:90a:fa07:: with SMTP id cm7mr22993730pjb.138.1560739172475; Sun, 16 Jun 2019 19:39:32 -0700 (PDT) Original-Received: from raman-glaptop.localdomain ([2601:646:9600:17d0:fa59:71ff:fec8:8b79]) by smtp.gmail.com with ESMTPSA id 2sm9973649pff.174.2019.06.16.19.39.29 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 16 Jun 2019 19:39:29 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id 065C8C20A8C; Sun, 16 Jun 2019 19:39:26 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 16 Jun 2019 18:01:25 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237761 Archived-At: Not quite sure I understood all that --- though I am sure you know what you're saying. >From my experience, if you byte-compile an already loaded file, then calling functions from that file raises the afore-mentioned error --- because of byte-compile-dynamic. If you then do M-x load-library of the recompiled file, then life continues as normal in the running session. My thought was that if we could detect this specific case, then we could as well have emacs load that file, rather than having the user reload it by hand. --