From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Thibault Kruse" Newsgroups: gmane.emacs.bugs Subject: bug#7229: patch Date: Sun, 24 Oct 2010 21:06:50 +0200 Message-ID: <20101024190650.135160@gmx.net> References: <20101016200828.264940@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1287947698 19256 80.91.229.12 (24 Oct 2010 19:14:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Oct 2010 19:14:58 +0000 (UTC) To: 7229@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 24 21:14:56 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PA61w-0005gK-EY for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Oct 2010 21:14:56 +0200 Original-Received: from localhost ([127.0.0.1]:57007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PA61v-0006dZ-QU for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Oct 2010 15:14:55 -0400 Original-Received: from [140.186.70.92] (port=39876 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PA600-0004ma-N9 for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2010 15:12:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PA5zz-0001bT-EH for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2010 15:12:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PA5zz-0001bP-BJ for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2010 15:12:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PA5qQ-0006nZ-85; Sun, 24 Oct 2010 15:03:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <20101016200828.264940@gmx.net> Resent-From: "Thibault Kruse" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2010 19:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7229-submit@debbugs.gnu.org id=B7229.128794697526125 (code B ref 7229); Sun, 24 Oct 2010 19:03:02 +0000 Original-Received: (at 7229) by debbugs.gnu.org; 24 Oct 2010 19:02:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PA5qJ-0006nK-8X for submit@debbugs.gnu.org; Sun, 24 Oct 2010 15:02:55 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PA5qG-0006nF-LU for 7229@debbugs.gnu.org; Sun, 24 Oct 2010 15:02:53 -0400 Original-Received: (qmail 28590 invoked by uid 0); 24 Oct 2010 19:06:50 -0000 Original-Received: from 92.230.236.20 by www174.gmx.net with HTTP; Sun, 24 Oct 2010 21:06:49 +0200 (CEST) X-Authenticated: #16585828 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1/hv5tk/PDhF+CotB/v+lEDMGiDxvNfI/40bPSV9f ArRG4b7wagmOCCN9X3kBDnQXR6tLj0vEwrYA== X-GMX-UID: 8rH3eKZ9X1V6L1B5kWFy4qR/SDc4NAzL X-FuHaFi: 0.65000000000000002 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 24 Oct 2010 15:03:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41116 Archived-At: HI, i dont know where the ffap sources are in emacs 23.1, therefore I could not write a patch myself, but as a workaround, I created this advice. Maybe it can help. (require 'advice) (defadvice ffap-file-at-point (around bugfix-ffap activate) "returns nil when point is somewhere we do not want to guess filenames" (require 'thingatpt) ;;; prevent in javadoc style comments (narrow-to-region (line-beginning-position) (line-end-position)) (unless (or (thing-at-point-looking-at "[\\*]+") ;; for xml modes, not sure about other modes (and (member major-mode '(sgml-mode nxml-mode)) ;; ignore about and (or (thing-at-point-looking-at "")))) ad-do-it)) -- GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl