From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Satyaki Das" Newsgroups: gmane.emacs.devel Subject: current-word and eldoc.el Date: Sun, 13 Jul 2003 23:20:56 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <13365.1058163656@chicory.stanford.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1058163721 20565 80.91.224.249 (14 Jul 2003 06:22:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2003 06:22:01 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jul 14 08:21:59 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19bwil-0005LZ-00 for ; Mon, 14 Jul 2003 08:21:59 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19bwvt-0001oZ-00 for ; Mon, 14 Jul 2003 08:35:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19bwiQ-0001CQ-Qr for emacs-devel@quimby.gnus.org; Mon, 14 Jul 2003 02:21:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19bwiC-0000tw-W7 for emacs-devel@gnu.org; Mon, 14 Jul 2003 02:21:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19bwi5-0000U9-AK for emacs-devel@gnu.org; Mon, 14 Jul 2003 02:21:18 -0400 Original-Received: from smtp2.stanford.edu ([171.64.14.116]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19bwhx-0008Ur-Di for emacs-devel@gnu.org; Mon, 14 Jul 2003 02:21:09 -0400 Original-Received: (from root@localhost) by smtp2.Stanford.EDU (8.12.9/8.12.9) id h6E6L6YU022776 for emacs-devel@gnu.org; Sun, 13 Jul 2003 23:21:06 -0700 (PDT) Original-Received: from CS.Stanford.EDU (CS.Stanford.EDU [171.64.64.64]) by smtp2.Stanford.EDU (8.12.9/8.12.9) with ESMTP id h6E6L4rH022771 for ; Sun, 13 Jul 2003 23:21:04 -0700 (PDT) Original-Received: from mail by CS.Stanford.EDU with spam-scanned (Exim 4.20) id 19bwhr-0001ff-NS for emacs-devel@gnu.org; Sun, 13 Jul 2003 23:21:04 -0700 Original-Received: from ev-01-st2435.stanford.edu ([128.12.141.17] helo=dwarka.stanford.edu) by CS.Stanford.EDU with esmtp (Exim 4.20) id 19bwhr-0001fc-Jz for emacs-devel@gnu.org; Sun, 13 Jul 2003 23:21:03 -0700 Original-Received: from troodon.stanford.edu (ev-01-st2435.Stanford.EDU [128.12.141.17]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by dwarka.stanford.edu (Postfix) with ESMTP id 588CD9D12 for ; Sun, 13 Jul 2003 23:21:14 -0700 (PDT) Original-Received: from [127.0.0.1] (helo=chicory.stanford.edu) by troodon.stanford.edu with esmtp (Exim 4.12) id 19bwhk-0003Ta-00 for emacs-devel@gnu.org; Sun, 13 Jul 2003 23:20:56 -0700 Original-To: emacs-devel X-Mailer: MH-E 7.4.1+cvs; nmh 1.1; GNU Emacs 21.3.50.6 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEWzh117XD00IxTRvaf2 /PTz+PGWc025n38JAADw8uwLvBLEAAACZElEQVR4nF2TMW/bMBCFTwkgrqLSKMkWskCibmmJ QvDu/ANryEY5KN1uDITm4C3SYGhtaw/6t7mjJFspBUEAP7078vERXrTuOq02lXzuaRwOZfm4 pAF5x6PVeacvmJRluQpgnGeVqhc9CcrlDNCrtNZX/eGJwOoI9FhNXZQfS2ma1imX+07zj7NS OdXh/vrmP6CldJWUWt8TKE9AZc4CQFxptZ/3aDMYhkv177HWANwI4rW+ZMVqBMqCQEQPUHH3 8jAqWmkFGmOIxOrLbIM6A2F4IMTp55klJ+AhvZ+DBEQdAEKq9ssjUBMoCDSr5VyBZgTrhhT9 BJQVpjf/Cozt2W6/OirIQUXdi0q6JLovJ6BbWlWV1CbOzhGiKzr1sI8mJc87DYWPNqm0ES4O wUZ4S9tgcPJAB9U1UbHtyycGu7MuBOX2IXxksegHxe51UNz6PPhsJtD4NkTB+mv+nBsKXQAt tJL+3YE/Y90JdE4nkVZgwa7zu0LUR3DLjtSRRTBF4cWWYhpW1b1dZ2RhIownt7xY9JxGBs1P AoV1COSwrznxHPhgOwGOAprCL4bEj+cBiAI9ch76DwqgfNDLNCieaFkMGouRdLGjCAH3oFoD aBMBTpAC0eHQnUGbd0NCuYXDV8PXii3JNlMS0ccOsUYTQOa+ago1zyM4ApfEKKPgNt/SnAIU CsEG8VNBZL+E6pdM15olEFsGNwSwXoGrlVyn2jkbWzGCGnEL7o+UlUwzF+6UCIA1sPnLQGbD gqdSBJ5fMukIOf6d/ZrAD7qu/GQsmIPtnats7LgF4usMmMxJ2tnQWJzAOx73bD8B49BeAAAA AElFTkSuQmCC X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15590 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15590 A recent change in semantics of the function current-word, specifically the change mentioned in: http://mail.gnu.org/archive/html/emacs-commit/2003-07/msg00108.html breaks eldoc for all functions that have hyphens in the name. The patch to eldoc.el at the end of this email fixes this. An alternative could be to make the definition of current-word backwards compatible with the old definition. That might avoid similar problems else where. Satyaki Index: eldoc.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/emacs-lisp/eldoc.el,v retrieving revision 1.25 diff -u -r1.25 eldoc.el --- eldoc.el 6 May 2003 17:36:16 -0000 1.25 +++ eldoc.el 14 Jul 2003 06:07:15 -0000 @@ -355,7 +355,7 @@ (let ((c (char-after (point)))) (and c (memq (char-syntax c) '(?w ?_)) - (intern-soft (current-word))))) + (intern-soft (current-word nil t))))) ;; Do indirect function resolution if possible. (defun eldoc-symbol-function (fsym)