From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs master + org Wrong type argument: number-or-marker-p Date: Mon, 01 Aug 2022 21:25:22 +0300 Message-ID: <83o7x3254d.fsf@gnu.org> References: <83bkt42ifq.fsf@gnu.org> <87a68ovw0b.fsf@posteo.net> <835yjc2c6f.fsf@gnu.org> <8335eg2ao9.fsf@gnu.org> <875yjbexde.fsf@posteo.net> <83zggn2a0c.fsf@gnu.org> <03AF0800-5252-429C-86BC-85DF9DF449F9@acm.org> <83tu6v27yh.fsf@gnu.org> <6F871C02-AC26-4B89-B64B-E9F4ACACDBE7@acm.org> <83sfmf26b6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30797"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattiase@acm.org, philipk@posteo.net, silent2600@gmail.com, emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 01 20:27:23 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIa8Q-0007qp-UJ for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Aug 2022 20:27:23 +0200 Original-Received: from localhost ([::1]:52016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIa8P-0005kR-Uk for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Aug 2022 14:27:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIa6f-0004lM-Cy for emacs-devel@gnu.org; Mon, 01 Aug 2022 14:25:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIa6f-0001qs-0t; Mon, 01 Aug 2022 14:25:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=tKxOeKOZSRBkxUA/9FXfKr/cUcaWq8uviJz4+hjK0+M=; b=docS2Pc84WlgpoCNjkz5 URlmhnD1P+tMC+4ER6WwPCEpXZbsoHZiXDRrQkXj+QUVW0qmYhYQhc7VSfcxI55Pe+8agMHBFSozR 2Wn6wgXdCYHAqhQ9KtiRPVnIVbPwtziTuzuOYCAkK+0TLGZqaHMcPw5IaVK5ekBXkFA9advaOSk9N p7DEgdmLr3LSAy4uOjVtdbw4mVC3Q+qZ2TKhahYwQ9tbdjFfxTSz97+c43mTlxyOPYnYRZ/baXAWH MNfTsfafnWlLBM+lp6/fZ1b8NvT2TVaDYIJiOPHk7UakOCsP8biyLALC+TvYs/U0dwI5zTJheo9sy Fh0cmH5k2ngqbQ==; Original-Received: from [87.69.77.57] (port=1778 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIa6e-0001Iv-D4; Mon, 01 Aug 2022 14:25:32 -0400 In-Reply-To: (message from Gregory Heytings on Mon, 01 Aug 2022 18:06:50 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292960 Archived-At: > Date: Mon, 01 Aug 2022 18:06:50 +0000 > From: Gregory Heytings > cc: Mattias EngdegÄrd , philipk@posteo.net, > silent2600@gmail.com, emacs-devel@gnu.org > > > If we don't, my suggestion is to make a 3-arg C function whose guts is > > the current code of Fnarrow_to_region, and then have Fnarrow_to_region > > call that with the last argument nil. Then the changes in the byte > > compiler, byte-interpreter, and native-compiler can be reverted. > > I'll do that. But that wouldn't solve the "unbalanced specbinds" Mattias > mentions. Is it not allowed to specbind in a function and to unbind in > its caller? I don't see why it wouldn't, but I may be missing something. It's a bit...unorthodox. Can't we instead specbind in the caller and unbind after the call returns? If this isn't required from Lisp, I see no problem with that. Do you?