From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: dabbrev-expand for the minibuffer Date: Wed, 27 Feb 2008 23:22:55 +0000 Message-ID: References: <200802232259.m1NMx6rY027848@sallyv1.ics.uci.edu> <87bq62qb35.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204154645 12653 80.91.229.12 (27 Feb 2008 23:24:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2008 23:24:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 00:24:30 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JUVdW-0007Af-Gm for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 00:24:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUVd0-0002Uf-6U for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 18:23:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUVcm-0002PD-Kc for emacs-devel@gnu.org; Wed, 27 Feb 2008 18:23:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUVcl-0002OP-2V for emacs-devel@gnu.org; Wed, 27 Feb 2008 18:23:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUVck-0002OK-Ud for emacs-devel@gnu.org; Wed, 27 Feb 2008 18:23:42 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUVck-00086U-E9 for emacs-devel@gnu.org; Wed, 27 Feb 2008 18:23:42 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JUVcc-0007u0-Tx for emacs-devel@gnu.org; Wed, 27 Feb 2008 23:23:35 +0000 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2008 23:23:34 +0000 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2008 23:23:34 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAG1BMVEUAAAA9Cgm3Hx1WWFWA gn+WmJWsrqv4+vcCAwCRl2MkAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAYoA AAGKATOXMFgAAAAHdElNRQfXAQwDNR+ZJmElAAABIklEQVQoz22SPW+DQAyGWUq65qasd9PNUSX4 AZHK2C1rJy5jpDS4IwRVup9dn7GNafpKIPPgzztXFSujqq1eM2n8h22oMkvxI/i9C97kRfMRUN55 dS3BrsAwBXUtMLAO4lryh8kTjOxKpQNniNxAgZOEe4bZwsDTFhKdqZRLNII4OQNHhEuq/RMkm6Cj TnnEA/fk0BorcYn5qA3oaeAxbaBOLrX+9G48NZ2Fzc2tzDM8Q+tMypEOqYHh8mAWaaK3U/cDMOT5 aMZMABgPXc7zPMs1A8DXO756GFJ/4fMEq47hTsAdn5avoxZ4ywl0c2w4Flu2Ybeyb3S+EqxX2DYA H8veJGEDTnHnrXvRaPyt+2kSfK6rfBZ2tUtfP/mR+pR6sX8BUZ/cDV7tvkoAAAAASUVORK5CYII= User-Agent: Gnus/5.13 Emacs/23.0.60 (20080222) Fedora/8 (gnu/linux) Cancel-Lock: sha1:4wajln9uTRVkOpBNX2PXmAlmt0o= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:90670 Archived-At: On 2008-02-27 22:49 +0000, Juri Linkov wrote: >>> I am not sure what is the proper way to integrate this functionality, >>> it would be great if someone that knows dabbrev could either add >>> something similar to this code, or do it in a better way and provide it >>> by default. >> >> It looks like the best way to integrate this is with hippie-expand, >> probably not dabbrev-expand. Just a thought. > > It would be easier to implement this in hippie-expand because it has all > necessary infrastructure. This could be implemented like an existing > method `try-expand-dabbrev-from-kill' added to `hippie-expand-try-functions-list', > but using `minibuffer-history' instead of `kill-ring'. > > OTOH, dabbrev.el has the TODO item "Check the kill-ring when everything > else fails." Implementing this means practically copying code from > hippie-exp.el to dabbrev.el. I'm not sure if two identical packages > is the goal? The TODO even suggests it is for hippie-exp. BTW, it may be better rebind M-/ to hippie-expand with hippie-expand-try-functions-list set to a proper value so that the change is transparent to end users. -- .: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :. Use the best OS -- http://www.fedoraproject.org/