From unknown Thu Aug 14 18:40:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24245 <24245@debbugs.gnu.org> To: bug#24245 <24245@debbugs.gnu.org> Subject: Status: 25.0.93; AUCTeX TeX-function-p Reply-To: bug#24245 <24245@debbugs.gnu.org> Date: Fri, 15 Aug 2025 01:40:22 +0000 retitle 24245 25.0.93; AUCTeX TeX-function-p reassign 24245 auctex submitter 24245 <4854nw+cqdha1cwehn9k@guerrillamail.com> severity 24245 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 16 16:27:36 2016 Received: (at submit) by debbugs.gnu.org; 16 Aug 2016 20:27:36 +0000 Received: from localhost ([127.0.0.1]:59515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZkxT-0008Ka-PU for submit@debbugs.gnu.org; Tue, 16 Aug 2016 16:27:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <4854nw+cqdha1cwehn9k@guerrillamail.com>) id 1bZkmq-000852-Gf for submit@debbugs.gnu.org; Tue, 16 Aug 2016 16:16:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <4854nw+cqdha1cwehn9k@guerrillamail.com>) id 1bZkmk-0003N2-Hp for submit@debbugs.gnu.org; Tue, 16 Aug 2016 16:16:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_50, FROM_STARTS_WITH_NUMS, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <4854nw+cqdha1cwehn9k@guerrillamail.com>) id 1bZkmj-0003Mo-Bj for submit@debbugs.gnu.org; Tue, 16 Aug 2016 16:16:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <4854nw+cqdha1cwehn9k@guerrillamail.com>) id 1bZkmh-0001R2-2Z for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2016 16:16:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <4854nw+cqdha1cwehn9k@guerrillamail.com>) id 1bZkmc-0003Me-30 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2016 16:16:26 -0400 Received: from mail.guerrillamail.com ([192.99.19.220]:53101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <4854nw+cqdha1cwehn9k@guerrillamail.com>) id 1bZkma-0003MU-Qb for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2016 16:16:21 -0400 Received: by 192.99.19.220 with HTTP; Tue, 16 Aug 2016 20:16:12 +0000 MIME-Version: 1.0 Message-ID: <9221c0e1952bb9dbf7ea8a8e8751f2e85568@guerrillamail.com> Date: Tue, 16 Aug 2016 20:16:12 +0000 To: "bug-gnu-emacs@gnu.org" From: <4854nw+cqdha1cwehn9k@guerrillamail.com> Subject: 25.0.93; AUCTeX TeX-function-p X-Originating-IP: [94.162.91.103] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Domain-Signer: PHP mailDomainSigner 0.2-20110415 DKIM-Signature: v=1; a=rsa-sha256; s=highgrade; d=guerrillamail.com; l=1265; t=1471378573; c=relaxed/relaxed; h=to:from:subject; bh=UDkWvTGoxcJ6TZ1vfajv19blJQs6ZUj9pLSRihv/4D0=; b=K3/khBuvy8c2B0DjY3qhGH0dRBEC2TgGx2MV3ORj+NloC7rVYC/X54hmayoi2QRicWPwi55CQepu 1FMZ/Bd2oFEzGS7/0IFuCyncIxGsGSqYyEYp4j4zS96GK7WiVukjMMV1VMNDaNgfOqYquHDUJmhq HGJAhNTy98MMFHWgnMQnxU+jBHxT+9z7BdJJxVR7+3e7jh2vHKKgNWRJZnYZqUgplVsIBMbge6oJ deMEFuu4dG50bqNdxJyYUEncR81EhvvxIbp0JQzlmA0swAEBdF370YDsQHCtLJMs2FJUiXOHjUnw PjR51Mfrn3QcsAbbcQ3lY3+/dsb+hQbrt0CYrA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 16 Aug 2016 16:27:35 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) What is the actual purpose of the Lisp function `TeX-function-p' found=0Ain= AUCTeX =E2=80=98tex.el=E2=80=99?=0A=0A(defun TeX-function-p (arg)=0A "Ret= urn non-nil if ARG is callable as a function."=0A (or (and (fboundp 'byte-= code-function-p)=0A (byte-code-function-p arg))=0A (and (listp a= rg)=0A (eq (car arg) 'lambda))=0A (and (symbolp arg)=0A=09 (fb= oundp arg))))=0A=0AHow this code is better of `functionp'?=0AIf there is no= actual design improvement of `TeX-function-p' over=0A`functionp', the latt= er is supposed to be faster as it is built-in.=0A=0AA similar function, `me= ssage-functionp', in `message.el' has been=0Aremoved. See Debian Bug report= log #223493.=0A=0A- a.=0A=0AIn GNU Emacs 25.0.93.1 (x86_64-w64-mingw32)=0A= of 2016-04-23 built on KAEL=0AWindowing system distributor 'Microsoft Corp= .', version 10.0.14393=0AConfigured using:=0A 'configure --prefix=3D/tmp/em= acs --without-imagemagick 'CFLAGS=3D-O2=0A -fomit-frame-pointer -g0''=0A=0A= Configured features:=0AXPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY ACL GNU= TLS LIBXML2 ZLIB=0ATOOLKIT_SCROLL_BARS=0A=0A=0A=0A=0A=0A----=0ASent using G= uerrillaMail.com=0ABlock or report abuse: https://www.guerrillamail.com/abu= se/?a=3DQ1RzSAoOVvkQhQ%2B3414YfAGJQtiX=0A From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 16 16:29:11 2016 Received: (at control) by debbugs.gnu.org; 16 Aug 2016 20:29:11 +0000 Received: from localhost ([127.0.0.1]:59520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZkz1-0008NX-6m for submit@debbugs.gnu.org; Tue, 16 Aug 2016 16:29:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZkyz-0008NK-KS for control@debbugs.gnu.org; Tue, 16 Aug 2016 16:29:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZkyt-0005cd-Js for control@debbugs.gnu.org; Tue, 16 Aug 2016 16:29:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZkyt-0005cZ-Go for control@debbugs.gnu.org; Tue, 16 Aug 2016 16:29:03 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bZkyt-0007eu-4r for control@debbugs.gnu.org; Tue, 16 Aug 2016 16:29:03 -0400 Subject: control message for bug 24245 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 16 Aug 2016 16:29:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) reassign 24245 auctex severity 24245 wishlist From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 19 12:42:35 2016 Received: (at 24245) by debbugs.gnu.org; 19 Aug 2016 16:42:35 +0000 Received: from localhost ([127.0.0.1]:34436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bamsN-0004kn-JR for submit@debbugs.gnu.org; Fri, 19 Aug 2016 12:42:35 -0400 Received: from mail.workgrouplinux.net ([207.195.177.82]:53880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bamsL-0004kd-DF for 24245@debbugs.gnu.org; Fri, 19 Aug 2016 12:42:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=cochranmail.com; h=from:to :cc:subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=dkim1; bh=kRUFCTG1BYr f4Wn5KutEnofyDT0=; b=ug7MjuJru+kysS/4tEpZcbGDDns9CuIM1eZM7HOvYjg rmCS3pmDO8tWnS8KGl//5/tUDF8Yh6Ttr3aJdekRLaB1YwsKiQd/xRnOOs5lXwNm P2R7B8Y1uB4h+34/Ve1iTvClRrJY+Vo+k9tptZOkt/ayy2RUfTR8PgDj4H+IUZfo 80mDRAnVNCpvptsGfkcAv6s98aegwfg+zS6/RLhagVO2IFsGUHtK0AAI5bmkwj2h RiCAskcuDCU6tEEH86LbdCwf/y1muR/AiorXW8LcTb7wApme34wML2Qt9yXKFnm8 AvbkPqtrdKTz0PVdeRGQtNY1Yl3IL22VVXjSQ8QWsXw== Received: (qmail 4005 invoked by uid 0); 19 Aug 2016 16:42:31 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=private; d=cochranmail.com; b=NktNWkse1YwvxstqDVd+PcCk4wLasjlt8uLh25HEcP3GXSv6x3X4+ZmqowKou8ZVASMSTEHlCR3op7ydEYA4Eg==; Received: from 131-191-86-130.as.clicknet.org (HELO SoraLaptop) (robert@cochranmail.com@131.191.86.130) by mail.cochrantribe.org with ESMTPA; 19 Aug 2016 16:42:31 -0000 From: Robert Cochran To: <4854nw+cqdha1cwehn9k@guerrillamail.com> Subject: Re: bug#24245: 25.0.93; AUCTeX TeX-function-p References: <9221c0e1952bb9dbf7ea8a8e8751f2e85568@guerrillamail.com> Date: Fri, 19 Aug 2016 09:42:24 -0700 In-Reply-To: <9221c0e1952bb9dbf7ea8a8e8751f2e85568@guerrillamail.com> (4854nw+cqdha1cwehn9k@guerrillamail.com's message of "Tue, 16 Aug 2016 20:16:12 +0000") Message-ID: <87fuq0vhfz.fsf@cochranmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24245 Cc: 24245@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) <4854nw+cqdha1cwehn9k@guerrillamail.com> writes: > What is the actual purpose of the Lisp function `TeX-function-p' found > in AUCTeX =E2=80=98tex.el=E2=80=99? > > (defun TeX-function-p (arg) > "Return non-nil if ARG is callable as a function." > (or (and (fboundp 'byte-code-function-p) > (byte-code-function-p arg)) > (and (listp arg) > (eq (car arg) 'lambda)) > (and (symbolp arg) > (fboundp arg)))) > > How this code is better of `functionp'? > If there is no actual design improvement of `TeX-function-p' over > `functionp', the latter is supposed to be faster as it is built-in. It's not 'better'. A blame of the AUCTeX repository shows that `TeX-function-p` was written (and last touched) in 1994. The only history that's in the Emacs repository commit-wise about `functionp` dates back to 2010, and the files within it show relevant history from 2005 (which aren't in the repo as their own commits). Doubtless it's hard to pin down without the complete history, but it's likely `TeX-function-p` was written before `functionp`. > A similar function, `message-functionp', in `message.el' has been > removed. See Debian Bug report log #223493. I'd imagine this case is slightly different, as Gnus is an Emacs builtin (since 1997 if the logs are accurate), so there's a tighter intergration with the progression of Emacs than AUCTeX. I'm sure that it's a similar situation here: the invention of `message-functionp` predates that of `functionp`. I'd also like to point out that the original reporter reported it because he was apparently having autoload issues, so `message-functionp` wasn't defined, which is probably how it got noticed in the first place. It's probably a good idea to fix it in the AUCTeX repository by removing `TeX-function-p` and do a M-% for `functionp` and ensuring nothing gets borked when you do so. I believe the phrase is "patches welcome". :) (Disclaimer: This is independent and likely incomplete research, along with what are my best guesses so far as the history bits. Anyone that sees I've gotten something wrong or missed an important point, please report in.) HTH --=20 ~Robert Cochran GPG Fingerprint - E778 2DD4 FEA6 6A68 6F26 AD2D E5C3 EB36 4886 8871 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 10:51:55 2016 Received: (at 24245-done) by debbugs.gnu.org; 21 Aug 2016 14:51:55 +0000 Received: from localhost ([127.0.0.1]:35931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbU6M-0007Da-OT for submit@debbugs.gnu.org; Sun, 21 Aug 2016 10:51:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbU6K-0007DN-MY for 24245-done@debbugs.gnu.org; Sun, 21 Aug 2016 10:51:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbU6B-0002dh-KD for 24245-done@debbugs.gnu.org; Sun, 21 Aug 2016 10:51:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbU6B-0002dM-H4 for 24245-done@debbugs.gnu.org; Sun, 21 Aug 2016 10:51:43 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:35994) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bbU69-0006Uy-SI for 24245-done@debbugs.gnu.org; Sun, 21 Aug 2016 10:51:42 -0400 Received: by mail-wm0-f54.google.com with SMTP id q128so90003359wma.1 for <24245-done@debbugs.gnu.org>; Sun, 21 Aug 2016 07:51:41 -0700 (PDT) X-Gm-Message-State: AEkooutoGSkwohdJrbWnSEid2yTUSbzm+wrIbvtC41NNLcO5O1POsazlbBhGq1i7NckXV/MUv9xuslufEEmvPg== X-Received: by 10.194.63.39 with SMTP id d7mr13438183wjs.13.1471791100686; Sun, 21 Aug 2016 07:51:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.23.170 with HTTP; Sun, 21 Aug 2016 07:51:00 -0700 (PDT) In-Reply-To: <87fuq0vhfz.fsf@cochranmail.com> References: <9221c0e1952bb9dbf7ea8a8e8751f2e85568@guerrillamail.com> <87fuq0vhfz.fsf@cochranmail.com> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Sun, 21 Aug 2016 16:51:00 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#24245: 25.0.93; AUCTeX TeX-function-p To: Robert Cochran Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 24245-done Cc: 24245-done@debbugs.gnu.org, 4854nw+cqdha1cwehn9k@guerrillamail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) Hi 2016-08-19 18:42 GMT+02:00 Robert Cochran : > <4854nw+cqdha1cwehn9k@guerrillamail.com> writes: > >> What is the actual purpose of the Lisp function `TeX-function-p' found >> in AUCTeX =E2=80=98tex.el=E2=80=99? >> >> (defun TeX-function-p (arg) >> "Return non-nil if ARG is callable as a function." >> (or (and (fboundp 'byte-code-function-p) >> (byte-code-function-p arg)) >> (and (listp arg) >> (eq (car arg) 'lambda)) >> (and (symbolp arg) >> (fboundp arg)))) >> >> How this code is better of `functionp'? >> If there is no actual design improvement of `TeX-function-p' over >> `functionp', the latter is supposed to be faster as it is built-in. > > It's not 'better'. A blame of the AUCTeX repository shows that > `TeX-function-p` was written (and last touched) in 1994. The only > history that's in the Emacs repository commit-wise about `functionp` > dates back to 2010, and the files within it show relevant history from > 2005 (which aren't in the repo as their own commits). Doubtless it's > hard to pin down without the complete history, but it's likely > `TeX-function-p` was written before `functionp`. `functionp' seems to have been introduced in Emacs with commit: * a9a44ed (1997-04-12) (functionp): New function. so well before GNU Emacs 21.1, that is the oldest version of Emacs we aim to support. I agree `functionp' should be able to safely replace `TeX-function-p', I tested with Emacs 22, 23, and 24. AUCTeX turned 25 a few months ago, being so old you may find other such crufts: sometimes they're needed to keep compatibility with old Emacsens, other times (like this one) they can be replaced with well established Emacs functions. Thanks for the report. Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 01 22:40:32 2016 Received: (at 24245) by debbugs.gnu.org; 2 Sep 2016 02:40:33 +0000 Received: from localhost ([127.0.0.1]:46778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfePA-0000EQ-LP for submit@debbugs.gnu.org; Thu, 01 Sep 2016 22:40:32 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:36405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfeP9-0000EB-1b for 24245@debbugs.gnu.org; Thu, 01 Sep 2016 22:40:31 -0400 Received: by mail-it0-f54.google.com with SMTP id i184so14747691itf.1 for <24245@debbugs.gnu.org>; Thu, 01 Sep 2016 19:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=U7Xtff3pgVRrMLw3fSxd58ZtoqDRq7AGMSPoekJJVQI=; b=L5+tie1Ux+bWVfVRrz0VFlV0qHfA0CZ+4fiVdh20Nu27AdKFLc51kLEIEWWgVKqmVd WozyD9oPPS9tIJVGEAgBKeI1u9HYM7ZaMaw5ztXsUsBZLzQEO4S0hZH2QAun09/Mw9OY KVSgtFE6/Cnt+dGSgC3SPpiKyOMAZSpZ0YEtGZuacmOAOBpig0DgdvS/EjMsrgdps6aW O34Ege++ERhDvmFLK63ow0mGx0ZgoNzQIigUoPQsOz+sFGY/83yCGaDdvShtJ5ANKlob Ol4XTBau8MdafqhBf5iG5+Aj2+bYL+tnjH5URWtDSkSvWXpm1MTlFJqwHI2f+KO6m4HN pSWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=U7Xtff3pgVRrMLw3fSxd58ZtoqDRq7AGMSPoekJJVQI=; b=WT6zokZXJCdQVeT6ihwnbOJJMWYt/Lnf5fnaX/73P+zjTORrTk89NWsXJHv2d2Zv0e lD0ubSa9j4D0NW4GNQtp4U8e/RS6HbYzESaLB57gv7P2OSXHb1WV8lv0sOSACrvDjaXF HXTqQ6QMVY4Fe/239rinlqwDtD8GKvKDKOwVLCogk+m5g8dM8pIbGeJppF/8zwuvQohz M7LIwmh6d9Dd6fI4Hm1HWfv9TsChU9kuGyLvyBSBwkBO7yT06hS5bcMCWFoJWcZ1YSvW ke4xHq8Ag/JzFwQWNJSbMqc/XRvCdBcOIRCsLhT6bVR+FaorDl08rAh0L5zZPCrOeJ4Y jcew== X-Gm-Message-State: AE9vXwMzB/ay/nGwzXpzUkWpQhdSZ1De1I0tuwmghJgsS8SXFexvchkeyUWhkZdZUDsdgA== X-Received: by 10.36.149.193 with SMTP id m184mr1642049itd.94.1472784025539; Thu, 01 Sep 2016 19:40:25 -0700 (PDT) Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id z125sm4338467itc.0.2016.09.01.19.40.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Sep 2016 19:40:25 -0700 (PDT) From: npostavs@users.sourceforge.net To: mose@gnu.org Subject: Re: bug#24245: closed (Re: bug#24245: 25.0.93; AUCTeX TeX-function-p) References: <9221c0e1952bb9dbf7ea8a8e8751f2e85568@guerrillamail.com> Date: Thu, 01 Sep 2016 22:40:44 -0400 In-Reply-To: (GNU bug Tracking System's message of "Sun, 21 Aug 2016 14:52:02 +0000") Message-ID: <87inufowgj.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24245 Cc: 24245@debbugs.gnu.org, robert-emacs@cochranmail.com, 4854nw+cqdha1cwehn9k@guerrillamail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) From: Mos=C3=A8 Giordano >Hi > >2016-08-19 18:42 GMT+02:00 Robert Cochran : >> <4854nw+cqdha1cwehn9k@guerrillamail.com> writes: >> >>> What is the actual purpose of the Lisp function `TeX-function-p' found >>> in AUCTeX =E2=80=98tex.el=E2=80=99? >>> >>> (defun TeX-function-p (arg) >>> "Return non-nil if ARG is callable as a function." >>> (or (and (fboundp 'byte-code-function-p) >>> (byte-code-function-p arg)) >>> (and (listp arg) >>> (eq (car arg) 'lambda)) >>> (and (symbolp arg) >>> (fboundp arg)))) >>> >>> How this code is better of `functionp'? >>> If there is no actual design improvement of `TeX-function-p' over >>> `functionp', the latter is supposed to be faster as it is built-in. It's possibly worse, since `TeX-function-p' will misidentify closures as non-functions. >> >> It's not 'better'. A blame of the AUCTeX repository shows that >> `TeX-function-p` was written (and last touched) in 1994. The only >> history that's in the Emacs repository commit-wise about `functionp` >> dates back to 2010, and the files within it show relevant history from >> 2005 (which aren't in the repo as their own commits). Doubtless it's >> hard to pin down without the complete history, but it's likely >> `TeX-function-p` was written before `functionp`. > >`functionp' seems to have been introduced in Emacs with commit: > > * a9a44ed (1997-04-12) (functionp): New function. > >so well before GNU Emacs 21.1, that is the oldest version of Emacs we >aim to support. I agree `functionp' should be able to safely replace >`TeX-function-p', I tested with Emacs 22, 23, and 24. It might cause problems in Emacs 22, I find this in NEWS.23: * Incompatible Lisp Changes in Emacs 23.1 [...] ** `functionp' returns nil for special forms. I.e., it only returns t for objects that can be passed to `funcall'. >From which I gather that before then, `functionp' would return t for special forms. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 02 18:52:06 2016 Received: (at 24245) by debbugs.gnu.org; 2 Sep 2016 22:52:06 +0000 Received: from localhost ([127.0.0.1]:48071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfxJd-0001rv-R8 for submit@debbugs.gnu.org; Fri, 02 Sep 2016 18:52:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfxJb-0001rN-QQ for 24245@debbugs.gnu.org; Fri, 02 Sep 2016 18:52:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfxJS-00042q-Ph for 24245@debbugs.gnu.org; Fri, 02 Sep 2016 18:51:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfxJS-00042a-NB for 24245@debbugs.gnu.org; Fri, 02 Sep 2016 18:51:54 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:34991) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bfxJS-0006wX-5t for 24245@debbugs.gnu.org; Fri, 02 Sep 2016 18:51:54 -0400 Received: by mail-wm0-f43.google.com with SMTP id w2so48835641wmd.0 for <24245@debbugs.gnu.org>; Fri, 02 Sep 2016 15:51:54 -0700 (PDT) X-Gm-Message-State: AE9vXwNpebJT6tOOxyr4+5Tb7lYb2DwDGlChqDFi88AGHK2fZUpO7UWm4ZM9LIc0p2UowVZrMTp9OIsmOl7vHw== X-Received: by 10.28.159.205 with SMTP id i196mr5362342wme.35.1472856712982; Fri, 02 Sep 2016 15:51:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.23.170 with HTTP; Fri, 2 Sep 2016 15:51:12 -0700 (PDT) In-Reply-To: <87inufowgj.fsf@users.sourceforge.net> References: <9221c0e1952bb9dbf7ea8a8e8751f2e85568@guerrillamail.com> <87inufowgj.fsf@users.sourceforge.net> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Sat, 3 Sep 2016 00:51:12 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#24245: closed (Re: bug#24245: 25.0.93; AUCTeX TeX-function-p) To: npostavs@users.sourceforge.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 24245 Cc: 24245@debbugs.gnu.org, Robert Cochran , 4854nw+cqdha1cwehn9k@guerrillamail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.5 (------) Hi, 2016-09-02 4:40 GMT+02:00 : > It might cause problems in Emacs 22, I find this in NEWS.23: > > * Incompatible Lisp Changes in Emacs 23.1 > [...] > ** `functionp' returns nil for special forms. > I.e., it only returns t for objects that can be passed to `funcall'. > > From which I gather that before then, `functionp' would return t for > special forms. Thanks for sharing this, however the expanders in `TeX-expand-list-builtin' are all lambdas or function names, so there shouldn't be problems. In addition special forms can be easily wrapped in a lambda. Bye, Mos=C3=A8 From unknown Thu Aug 14 18:40:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 01 Oct 2016 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator