From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#24697: 25.1; find-lisp-object-file-name may return wrong locations Date: Sun, 18 Jun 2017 22:51:43 +0300 Message-ID: <5f2268ec-ae50-a75a-cc28-5e407b524974@yandex.ru> References: <87mvi68tg4.fsf@gmail.com> <87r2yiz1w8.fsf@lylat> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1497815535 18755 195.159.176.226 (18 Jun 2017 19:52:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Jun 2017 19:52:15 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Thunderbird/54.0 To: Alex , 24697@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 18 21:52:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMgEz-0004T9-3u for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 21:52:09 +0200 Original-Received: from localhost ([::1]:39402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMgF2-0001xA-Cf for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 15:52:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMgEw-0001ws-Au for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 15:52:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMgEt-0000rB-9V for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 15:52:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52748) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMgEt-0000q3-5O for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 15:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dMgEs-0007P3-DQ for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 15:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jun 2017 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24697 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24697-submit@debbugs.gnu.org id=B24697.149781551428441 (code B ref 24697); Sun, 18 Jun 2017 19:52:02 +0000 Original-Received: (at 24697) by debbugs.gnu.org; 18 Jun 2017 19:51:54 +0000 Original-Received: from localhost ([127.0.0.1]:55425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMgEj-0007Of-Vj for submit@debbugs.gnu.org; Sun, 18 Jun 2017 15:51:54 -0400 Original-Received: from mail-wr0-f175.google.com ([209.85.128.175]:34744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMgEi-0007OR-4f for 24697@debbugs.gnu.org; Sun, 18 Jun 2017 15:51:52 -0400 Original-Received: by mail-wr0-f175.google.com with SMTP id 77so61474155wrb.1 for <24697@debbugs.gnu.org>; Sun, 18 Jun 2017 12:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KLvm3j12kDMzqvCSe8MoUgGiFc369Tdlpfbkxk5M2GE=; b=sU1Tqa3Jl01fAsmCAWHQOwOmAwdOPJK1WbPQMiKfJPtvdeGe8/0edm0bAzcaMOzFhp 74mnTp3zzkzYwAICrM5s2fWUzAWXZKlV6yvxnMfK5lA+IRCS+5pGnLTKczw4ZGHtrRqv qHiMxx008+YY/1A+EoJ1iFChdeS71ypnOv1YGSTo2TCkKpiiowgwa1msCLUO5sNXpvfR lAQz7/hmJ6CG5nVfXLsEee3IQsrJBJQ7MbbtvjFyEXv0jCrzMnviDYssSazz7gO6FK1x 7Z/piRE2jb8qgL3ZXcSLRzZvbYVqsIEvB+4V2sH5C+GqOhphtq90OktkBm1SEAd4/q9k SUqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KLvm3j12kDMzqvCSe8MoUgGiFc369Tdlpfbkxk5M2GE=; b=Zb/4gRN6KIjkEK6nsV3fkJVTONQteKzTD/5R0X5iGnGVeiXbUy6ZSwKz7QEb4tk7ih N7KxHL9gYQfLRl8JOv8UM4qBzAHX2iz1z7aXC92Kf2xTpnw5JQffWY6sQNDib2HwaPHR xHV/RVI0xPWHDYdnBqvnkb41ZXF7YifC1UZ3D0Tu+5pQb/ftNHJIwRTw7ub1ss/ShaU6 qI+xAmdfu2C1fzFbOfcH5n05Ui0FoESSKt4s3jYpfRQn76FR0cRCn93BiPAeO98EulhT +B4uYJz0IOlbMJVmeURd5S+3dlFThmjUrdsF/DBgknEQoLvPA9/79yktO6c7Rx9gNCMo HRGQ== X-Gm-Message-State: AKS2vOyhSZN6zN00sy7l43Vd/i1mszNNSgGqupfZcroQQ2FlJLL66W7V NQoZXc9a8sFMXT6yoZ8= X-Received: by 10.223.176.61 with SMTP id f58mr13167713wra.74.1497815506179; Sun, 18 Jun 2017 12:51:46 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id 2sm11053389wrx.26.2017.06.18.12.51.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Jun 2017 12:51:44 -0700 (PDT) In-Reply-To: <87r2yiz1w8.fsf@lylat> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133736 Archived-At: On 6/18/17 1:26 AM, Alex wrote: > The first and last of these are fixed by the following diff. > > ... > > > The second is a bit odder. For some reason, find-lisp-object-file-name > searches for an internal function definition using TYPE instead of > OBJECT. I would have expected it to use OBJECT like the rest of the > tests do. I see no reason for the current behaviour. Thanks. Do you think you can write test cases for these problems? There are some existing ones in test/lisp/help-fns-tests.el. > Either the documentation should be changed to clearly indicate the > current behaviour, or the function should be changed so that OBJECTs for > which (subrp (symbol-function OBJECT)) returns t should return > 'C-source'. With a test case, you might also find it easier to make a choice regarding this problem.