From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: hijack C function, use it transparently with in-between layer Date: Mon, 06 Jun 2016 10:42:18 -0400 Organization: A noiseless patient Spider Message-ID: References: <868tyjnghn.fsf@student.uu.se> <868tyi4jss.fsf@student.uu.se> <86ziqy30mp.fsf@student.uu.se> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465224630 5522 80.91.229.3 (6 Jun 2016 14:50:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2016 14:50:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 06 16:50:28 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b9vrF-0006U7-TC for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jun 2016 16:50:26 +0200 Original-Received: from localhost ([::1]:42922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9vrE-0001Ro-Q1 for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jun 2016 10:50:24 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="9707"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zRYW5V6XOCQVu4RKrnuel" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:ig5Y2T9MoODccsq1JzMIuv/LFvc= Original-Xref: usenet.stanford.edu gnu.emacs.help:218029 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110337 Archived-At: In article , Stefan Monnier wrote: > >>> Good point, any ideas how to get to that as well? > >> Report the cases you bump into as bugs. > > You mean there should be no C to C calls for > > stuff that are in Elisp as well? > > Just because you report it as a bug doesn't mean the maintainers will > fix it or agree that it should be fixed. There will sometimes be > overriding concerns. I think the main 2 reasons why a C-to-C call > should not be replaced by a call "via Elisp" are: > - the call is made in a context where it's unsafe to run arbitrary Elisp > code (e.g. GC is not allowed, or something like that). > - the performance cost would be too high compared to the benefit of the > added flexibility. > > So whether the code can be changed or not will depend on the > specific cases. Hence report them as bugs and so the maintainers can > look into it. Is that a bug or a feature request? The documentation for advice specifically warns that it doesn't have any effect on calls to built-in functions from the C layer. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***