From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#18048: 24.3.92; [patch] eldoc improvements Date: Fri, 18 Jul 2014 23:07:18 -0400 Message-ID: References: <87egxjxkxh.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405739308 27254 80.91.229.3 (19 Jul 2014 03:08:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2014 03:08:28 +0000 (UTC) Cc: 18048@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 19 05:08:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X8L0X-00029G-1o for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Jul 2014 05:08:21 +0200 Original-Received: from localhost ([::1]:52817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8L0W-0000yN-Ig for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jul 2014 23:08:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8L0M-0000x8-0Y for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 23:08:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8L0E-0002XS-DY for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 23:08:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8L0E-0002XN-A6 for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 23:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X8L0D-0000kH-OU for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 23:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jul 2014 03:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18048 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 18048-submit@debbugs.gnu.org id=B18048.14057392472821 (code B ref 18048); Sat, 19 Jul 2014 03:08:01 +0000 Original-Received: (at 18048) by debbugs.gnu.org; 19 Jul 2014 03:07:27 +0000 Original-Received: from localhost ([127.0.0.1]:58785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8Kze-0000jQ-L5 for submit@debbugs.gnu.org; Fri, 18 Jul 2014 23:07:27 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:15634) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8Kzc-0000j9-6a for 18048@debbugs.gnu.org; Fri, 18 Jul 2014 23:07:24 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqDTCE X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="77965934" Original-Received: from 75-119-224-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 18 Jul 2014 23:07:18 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 7022C664B7; Fri, 18 Jul 2014 23:07:18 -0400 (EDT) In-Reply-To: <87egxjxkxh.fsf@gmail.com> (Thierry Volpiatto's message of "Fri, 18 Jul 2014 07:46:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91649 Archived-At: > (defun foo (&rest args) > "Eval each ARG in ARGS like setq" > [...]) > (put 'foo 'eldoc "([VAR VALUE]...)") You can use (defun foo (&rest args) "Eval each ARG in ARGS like setq. (fn [VAR VALUE]...)" [...]) Instead. > 2) Better handling of "..." in eldoc highlighting: > Actually when using `setq', highlighting is correct when setting one > symbol: > (setq foo 1) > When cursor is on foo we have in eldoc: (setq ([SYM VAL]...)) > ^^^^ > And when cursor is on 1 (setq ([SYM VAL]...)) > ^^^^^^^ > When setting more than one symbol e.g > (setq foo 1 bar 2) > After 1 eldoc highlighting stay on second arg: > (setq ([SYM VAL]...)) > ^^^^^^^ > With this patch highlighting come back on first arg (SYM) This part looks OK, feel free to install into trunk. Stefan