GNU bug report logs - #8163
23.2; Feature request: dabbrev look at filenames or buffer names

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: "Ed Avis" <eda@HIDDEN>; dated Thu, 3 Mar 2011 16:05:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Mar 2011 16:04:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 03 11:04:40 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PvB15-0005EF-BD
	for submit <at> debbugs.gnu.org; Thu, 03 Mar 2011 11:04:40 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eda@HIDDEN>) id 1Pv9Na-0002cp-Sr
	for submit <at> debbugs.gnu.org; Thu, 03 Mar 2011 09:19:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eda@HIDDEN>) id 1Pv9NR-00085j-9J
	for submit <at> debbugs.gnu.org; Thu, 03 Mar 2011 09:19:42 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:42545)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eda@HIDDEN>) id 1Pv9NR-00085c-6B
	for submit <at> debbugs.gnu.org; Thu, 03 Mar 2011 09:19:37 -0500
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@HIDDEN; Thu, 03 Mar 2011 09:19:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eda@HIDDEN>) id 1Pv9NG-00083u-8E
	for bug-gnu-emacs@HIDDEN; Thu, 03 Mar 2011 09:19:31 -0500
Received: from mail182.messagelabs.com ([85.158.139.83]:19653)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <eda@HIDDEN>) id 1Pv9NF-00083Q-Qc
	for bug-gnu-emacs@HIDDEN; Thu, 03 Mar 2011 09:19:26 -0500
X-VirusChecked: Checked
X-Env-Sender: eda@HIDDEN
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]
Received: (qmail 18499 invoked from network); 3 Mar 2011 14:19:22 -0000
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
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: 23.2; Feature request: dabbrev look at filenames or buffer names
Date: Thu, 3 Mar 2011 14:19:22 -0000
Message-ID: <07CC43C25304A546B995A31E70BF56B50444C0@HIDDEN>
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==
From: "Ed Avis" <eda@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
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-Received-From: 199.232.76.165
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 03 Mar 2011 11:04:37 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

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 <eda@HIDDEN>


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email=20
______________________________________________________________________




Acknowledgement sent to "Ed Avis" <eda@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8163; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.