From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ed Avis" Newsgroups: gmane.emacs.bugs Subject: bug#8163: 23.2; Feature request: dabbrev look at filenames or buffer names Date: Thu, 3 Mar 2011 14:19:22 -0000 Message-ID: <07CC43C25304A546B995A31E70BF56B50444C0@wcl-exc.wcl.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299173865 4093 80.91.229.12 (3 Mar 2011 17:37:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 17:37:45 +0000 (UTC) To: 8163@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 03 18:37:40 2011 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 1PvCSB-0000H0-R6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 18:37:39 +0100 Original-Received: from localhost ([127.0.0.1]:57164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvCPk-0005Li-Q1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 12:34:12 -0500 Original-Received: from [140.186.70.92] (port=57386 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvB3I-0003B5-In for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:07:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvB3B-00006i-3B for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:06:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvB3B-00006Z-0z for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:06:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PvB1S-0005Et-5h; Thu, 03 Mar 2011 11:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Ed Avis" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2011 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8163 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.129916828020106 (code B ref -1); Thu, 03 Mar 2011 16:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Mar 2011 16:04:40 +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 1PvB15-0005EF-BD for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:04:40 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pv9Na-0002cp-Sr for submit@debbugs.gnu.org; Thu, 03 Mar 2011 09:19:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv9NR-00085j-9J for submit@debbugs.gnu.org; Thu, 03 Mar 2011 09:19:42 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:42545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv9NR-00085c-6B for submit@debbugs.gnu.org; Thu, 03 Mar 2011 09:19:37 -0500 Original-Received: from [140.186.70.92] (port=46031 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv9NL-0001JP-JF for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 09:19:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv9NG-00083u-8E for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 09:19:31 -0500 Original-Received: from mail182.messagelabs.com ([85.158.139.83]:19653) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pv9NF-00083Q-Qc for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 09:19:26 -0500 X-VirusChecked: Checked X-Env-Sender: eda@waniasset.com X-Msg-Ref: server-5.tower-182.messagelabs.com!1299161962!6395229!1 X-StarScan-Version: 6.2.9; banners=waniasset.com,-,- X-Originating-IP: [80.169.169.166] Original-Received: (qmail 18499 invoked from network); 3 Mar 2011 14:19:22 -0000 Original-Received: from unknown (HELO wcl-exc.wcl.local) (80.169.169.166) by server-5.tower-182.messagelabs.com with SMTP; 3 Mar 2011 14:19:22 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 23.2; Feature request: dabbrev look at filenames or buffer names Thread-Index: AcvZrf3Hitjm/LxcQuqRNflFxaBmSA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Thu, 03 Mar 2011 11:04:37 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 03 Mar 2011 11:05:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Thu, 03 Mar 2011 12:34:07 -0500 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:44584 Archived-At: Start emacs and start editing a file called abcdef: C-x C-f abcdef RET In that buffer type abcde and then press M-/ to run dabbrev-expand. Desired result: dabbrev looks at the buffer name (or the name of the file it is visiting) and uses that to complete the string to 'abcdef'. It could use the names of all open buffers as part of its pool. Current result: No dynamic expansion for 'abcde' found This would be useful in many programming languages where the filename usually matches the name of a class or function. It is common to create the file first and start typing the code. In GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.21.4) of 2010-07-08 on x86-10.phx2.fedoraproject.org configured using `configure '--build=3Dx86_64-redhat-linux-gnu' '--host=3Dx86_64-redhat-linux-gnu' '--program-prefix=3D' '--disable-dependency-tracking' '--prefix=3D/usr' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' '--sbindir=3D/usr/sbin' '--sysconfdir=3D/etc' '--datadir=3D/usr/share' '--includedir=3D/usr/includ= e' '--libdir=3D/usr/lib64'=20'--libexecdir=3D/usr/libexec' '--localstatedir=3D= /var' '--sharedstatedir=3D/var/lib' '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=3Dgtk' 'build_alias=3Dx86_64-redhat-linux-gnu' 'host_alias=3Dx86_64-redhat-linux-gnu' 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -m64 -mtune=3Dgeneric -fno-optimize-sibling-calls'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: en_GB.UTF-8 value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: s p TAB S a TAB D o TAB K TAB TAB . TAB TAB RET C-@ ESC > ESC w C-x 2 C-x o C-x b RET C-x C-f u s p _ S a m p l e r D o w n l o a d S t r a t e g y W e i g h t DEL DEL DEL DEL DEL DEL S c a ; DEL l DEL DEL DEL DEL W e i g h t A d j u s t m e n t . s q l RET C-y ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A C-e DEL DEL DEL DEL S t ESC / r a t e g y W e r i g DEL DEL DEL i g h t A d j u s t m e n t DEL ESC / ESC ! e m a c s SPC - - - C-g ESC x a b o u t SPC e m SPC RET C-x C-f ~ / a a DEL b c d e f RET a b c d e ESC ? ESC / C-a C-k C-x k RET y e s RET ESC x r e p o r t SPC e SPC C-g C-h k ESC / ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O A ESC x r e p o r t SPC e m SPC b u SPC RET Recent messages: dabbrev-expand: No dynamic expansion for `usp_SamplerDownloadSt' found Scanning for dabbrevs...100% dabbrev-expand: No dynamic expansion for `usp_SamplerDownloadStrategyWeightAdjustmen' found Quit Auto-saving... (New file) Scanning for dabbrevs...100% dabbrev-expand: No dynamic expansion for `abcde' found Quit Type C-x 4 C-o RET to restore the other window. Load-path shadows: None found. Features: (shadow sort mail-extr message idna sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-fns edmacro css-mode rect dired kmacro log-view sql dabbrev smerge-mode log-edit pcvs-util add-log help-mode view multi-isearch cus-edit cus-start cus-load wid-edit perl-mode diff-mode easy-mmode vc vc-dispatcher vc-svn nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok ffap server compile ansi-color ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a executable shell ess-arc-d ess-vst-d ess-xls-d ess-lsp-l ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp5-d ess-sp3-d ess-r-d ess-r-args assoc ess-s-l ess-inf ess-utils comint ring ess-mode noweb-mode ess ess-custom regexp-opt easymenu ess-compat ess-site tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) --=20 Ed Avis ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________