From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: kludge in find-file.el Date: Sat, 02 Jul 2005 08:33:53 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1120309115 22746 80.91.229.2 (2 Jul 2005 12:58:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2005 12:58:35 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 02 14:58:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DohZr-0005cu-5w for ged-emacs-devel@m.gmane.org; Sat, 02 Jul 2005 14:58:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dohax-0007hp-Oo for ged-emacs-devel@m.gmane.org; Sat, 02 Jul 2005 08:59:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DohZE-0006vZ-2A for emacs-devel@gnu.org; Sat, 02 Jul 2005 08:57:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DohX4-0006Fe-T7 for emacs-devel@gnu.org; Sat, 02 Jul 2005 08:55:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DohX3-0005uK-Lz for emacs-devel@gnu.org; Sat, 02 Jul 2005 08:55:42 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DohJB-0004mn-02 for emacs-devel@gnu.org; Sat, 02 Jul 2005 08:41:21 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DohBx-0006PP-Oi; Sat, 02 Jul 2005 08:33:53 -0400 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40103 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40103 I noticed this because it got a warning. It seems rather a kludge. Is there any more general feature that could be used here? (defun ff-which-function-are-we-in () "Return the name of the function whose definition/declaration point is in. Also remember that name in `ff-function-name'." (setq ff-function-name nil) (save-excursion (if (re-search-backward ada-procedure-start-regexp nil t) (setq ff-function-name (buffer-substring (match-beginning 0) (match-end 0))) ; we didn't find a procedure start, perhaps there is a package (if (re-search-backward ada-package-start-regexp nil t) (setq ff-function-name (buffer-substring (match-beginning 0) (match-end 0))) ))))