unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: dabbrev in minibuffer
       [not found]   ` <q5gfzysc96l.fsf@lucent.com>
@ 2002-07-12 11:13     ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2002-07-12 11:13 UTC (permalink / raw)
  Cc: emacs-devel

    5b. press return and now try to enter as replacement string again
       "s" followed by "M-/"
    => emacs loops on HP-UX 10.20 and Solaris 5.8 but not on GNU/Linux

Since it does not fail on GNU/Linux, I can't debug it.
Can you run Emacs under GDB and see where the loop starts and ends?
Follow the advice in etc/DEBUG as regards "when Emacs is looping".
With that info, we can perhaps fix the bug that makes it impossible
to quit from a certain primitive, as well as the bug that makes
dabbrev loop.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* dabbrev in minibuffer
@ 2006-09-06 16:00 Dan Nicolaescu
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Nicolaescu @ 2006-09-06 16:00 UTC (permalink / raw)



When editing in the minibuffer it would be nice if dabbrev-expand
would be able to use the minibuffer history as a source for
expansions. 
dabbrev only looks in buffers for expansions. So one way to solve this
would be to create a buffer that contains the minibuffer history and
put it at the beginning of the list of buffers.

I post the (very simple) code, maybe someone can figure out an elegant
way to integrate such a feature in emacs...

(defun minibuffer-setup-dabbrev-buffers ()
  (let ((buf (get-buffer-create " *dabbrev history* ")))
	(save-excursion 
	  (set-buffer buf)
	  (erase-buffer)
	  (mapc (lambda (arg) 
		  (insert arg "\n")) 
		(if minibuffer-history-variable 
		    (eval minibuffer-history-variable)
		  minibuffer-history)))
	(append (list buf) (dabbrev--select-buffers))))

(defun minibuffer-setup-hook-dabbrev ()
  (setq dabbrev-select-buffers-function 'minibuffer-setup-dabbrev-buffers))

(add-hook 'minibuffer-setup-hook 'minibuffer-setup-hook-dabbrev)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-06 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200207091541.g69FfF416701@zrc2s0jx.nortelnetworks.com>
     [not found] ` <buoofdgcldt.fsf@mcspd15.ucom.lsi.nec.co.jp>
     [not found]   ` <q5gfzysc96l.fsf@lucent.com>
2002-07-12 11:13     ` dabbrev in minibuffer Richard Stallman
2006-09-06 16:00 Dan Nicolaescu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).