From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: read-command, read-variable, read-buffer implemented in C Date: Sat, 13 Dec 2014 05:25:52 +0100 Message-ID: <877fxw9nvz.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418444792 6438 80.91.229.3 (13 Dec 2014 04:26:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Dec 2014 04:26:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 13 05:26:24 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XzeHg-0004oS-E8 for ged-emacs-devel@m.gmane.org; Sat, 13 Dec 2014 05:26:24 +0100 Original-Received: from localhost ([::1]:60245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzeHg-00053R-01 for ged-emacs-devel@m.gmane.org; Fri, 12 Dec 2014 23:26:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzeHW-00053M-KT for emacs-devel@gnu.org; Fri, 12 Dec 2014 23:26:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzeHO-0003Sy-Ss for emacs-devel@gnu.org; Fri, 12 Dec 2014 23:26:14 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzeHO-0003Su-Lz for emacs-devel@gnu.org; Fri, 12 Dec 2014 23:26:06 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XzeHM-0004HG-7D for emacs-devel@gnu.org; Sat, 13 Dec 2014 05:26:04 +0100 Original-Received: from 129.red-88-10-128.dynamicip.rima-tde.net ([88.10.128.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Dec 2014 05:26:04 +0100 Original-Received: from ofv by 129.red-88-10-128.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Dec 2014 05:26:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 12 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 129.red-88-10-128.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:2U+lynBnpwbMjlgwrIoGnXPb+Pc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:179975 Archived-At: I guess it is an historical artifact due to performance concerns, but now it doesn't make much sense anymore, right? Some extensions need to jump through hoops because of this. For using Ido (almost) everywhere it would be enough to advise `completing-read', which is what those functions end using, but as advices are not effective for functions defined in C when they are called from other C functions, extensions such as ido-hacks are forced to advise the functions that call read-*, which is quite a hassle. Or I'm wrong wrt adivising C functions and overlooking other considerations?