From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.help Subject: find-function-source-directory Date: Sun, 18 Feb 2018 16:16:03 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1518970528 25809 195.159.176.226 (18 Feb 2018 16:15:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Feb 2018 16:15:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 18 17:15:24 2018 Return-path: Envelope-to: geh-help-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 1enRcH-0005NO-9X for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Feb 2018 17:15:05 +0100 Original-Received: from localhost ([::1]:42211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enReJ-0007WU-9E for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Feb 2018 11:17:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enRdk-0007WE-5N for help-gnu-emacs@gnu.org; Sun, 18 Feb 2018 11:16:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enRdj-0001ok-EY for help-gnu-emacs@gnu.org; Sun, 18 Feb 2018 11:16:36 -0500 Original-Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:35114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enRdj-0001oY-8y for help-gnu-emacs@gnu.org; Sun, 18 Feb 2018 11:16:35 -0500 Original-Received: by mail-oi0-x22c.google.com with SMTP id y4so5429027oix.2 for ; Sun, 18 Feb 2018 08:16:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=6h1nrnnXZzcuHcV9caE0Vo1J0zsvWVj3dbYbn/awagE=; b=RWrZMd3li5IV2zw/hG7MffiY5eZnLCKeUnRsrKPIVgj1YsqK3/nCiszH+ks9EFZTTB SvBCmSSLdPBrVmmRTAUT+MQ8rq2Dx1Sw4rJee5rwp1jyGGUUZn0BBGRs3rZCp1QPhJJP QqYRoQpPWD3MA6qE4cX/uAmVnROE+IpAvU5qoCwSH78g8DIzuJFItkivnBypbGdhQtmF G9/DFUgUxloqNGSgoOU5MbofTAxGqC3yVE71AjqSw5UTsKVuSHokQILQtt2t/T6D1HiZ 0rasm/D8k7LdMuG1ujc+mLKMYpTx6Y9x3Jx2/brdr0dfvR3ze5jp8CdRao++G0Jb9en0 1ajw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=6h1nrnnXZzcuHcV9caE0Vo1J0zsvWVj3dbYbn/awagE=; b=A3zFba4Veo7RL2feJLBrlX/bI36gHMbgdnIionyd+QElF3s8Dx2uC3zM1n4A7dFfg5 gpAgoy3GSk0ymqAqVgSo0NyGDgPDtpm+ke/T4gw2UWcdKM9iKkSbLuMD+1UK9GQJf9Ls CsWzj/FlrDrLIMbiSVY5jnkf2HJx0hYVI/p4UaNu5FxYqjF9ArltnQsnpJIlOVutthtK F5DJMtS9J6pPrG25hrDicHovfv0f2z80LWtCXaaDg+NrKC6eUJW4exUDkO1ob4ldw5Zp QGuENnVL+WAQnkCaaBR/8z2Ajkg6YQgoC7bM8V7RQhJ8cL1t7FhKLoz7jFhmK5NJOPBW HORQ== X-Gm-Message-State: APf1xPCFiEGupZkPXV0Dgti2L4Ev7v5r7GBJwqczl41t0VkAMksNiKy8 f97FLPtRLxW7QJVQJib7vENy0RRg5ZSWFlIqp6GXVQ== X-Google-Smtp-Source: AH8x225shKZN1Lw2CJVTGDVh5fA8Up84B5wvJPDz9/sxSMZh4FBotIvysutc+BahrHtFwXs4ceMN2lXYclph49P1OfI= X-Received: by 10.202.252.67 with SMTP id a64mr1448992oii.256.1518970594337; Sun, 18 Feb 2018 08:16:34 -0800 (PST) Original-Received: by 10.157.68.215 with HTTP; Sun, 18 Feb 2018 08:16:03 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22c 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:116035 Archived-At: I want 'find-function' to go to the .el files in my build directory "c:/projects/emacs/", not the installed .el.gz files in "c:/msys64/mingw64/share/emacs/27.0.50/". The docstring for 'find-function' suggests it's possible (but doesn't give an example): The library where FUNCTION is defined is searched for in =E2=80=98find-function-source-path=E2=80=99, if non-nil, otherwise in = =E2=80=98load-path=E2=80=99. I tried each of these in my init file, with no effect: (setq find-function-source-path "c:/projects/emacs/") (setq find-function-source-path "c:/projects/emacs/lisp/") (setq find-function-source-path (mapcar (lambda (x) (if (string-match "\\`c:/msys64/mingw64/share/emacs/27.0.50/" x) (replace-match "c:/projects/emacs/" nil nil x) x)) load-path)) Did I miss something?