From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: [Accepted] contrib/lisp/org-elisp-symbol: Set type if symbol is defuned but not fbound Date: Thu, 6 Oct 2011 10:14:26 +0200 (CEST) Message-ID: <20111006081426.877B1588AF9@u016822.science.uva.nl> References: <8739fkpp7v.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBj67-00076s-DJ for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 04:14:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBj63-0003Zx-Me for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 04:14:31 -0400 Received: from u016822.science.uva.nl ([146.50.39.34]:54298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBj63-0003ZQ-8I for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 04:14:27 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Patch 962 (http://patchwork.newartisans.com/patch/962/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C8739fkpp7v.wl%25dmaus%40ictsoc.de%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O] contrib/lisp/org-elisp-symbol: Set type if symbol is defuned but > not fbound > Date: Sun, 25 Sep 2011 21:21:40 -0000 > From: David Maus > X-Patchwork-Id: 962 > Message-Id: <8739fkpp7v.wl%dmaus@ictsoc.de> > To: emacs-orgmode@gnu.org > Cc: bzg@altern.org > > Another small patch for org-elisp-symbol: Set the symbol type to > "Function or command" if it is defuned but not fbound when > `org-elisp-symbol-store-link' is called. > > Best, > -- David > > --- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de > >From 09f5f322d418afe34503d8758ad123cd6c8045a0 Mon Sep 17 00:00:00 2001 > From: David Maus > Date: Sun, 25 Sep 2011 18:16:54 +0200 > Subject: [PATCH] Set symbol type if defun but symbol not fbound > > * org-elisp-symbol.el (org-elisp-symbol-store-link): Set symbol type > if defun but symbol not fbound. > > If the symbol is not fbound but defuned, set type to "function or > command". > --- > contrib/lisp/org-elisp-symbol.el | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/contrib/lisp/org-elisp-symbol.el b/contrib/lisp/org-elisp-symbol.el > index 6eb8114..340272b 100644 > --- a/contrib/lisp/org-elisp-symbol.el > +++ b/contrib/lisp/org-elisp-symbol.el > @@ -106,6 +106,7 @@ > ((user-variable-p sym-name) "User variable") > ((string= def "defvar") "Variable") > ((string= def "defmacro") "Macro") > + ((string= def "defun") "Function or command") > (t "Symbol"))) > (args (if (match-string 3) > (mapconcat (lambda (a) (unless (string-match "^&" a) a)) >