Package: dictionary-el Version: 1.8.7-7 Severity: wishlist As a suggestion, it'd be nice if M-x dictionary-search used the "default-value" argument feature of read-string, instead of putting the word at point as the initial contents of the minibuffer. The latter gets in the way if you want to type your own word, instead of use what happened to be at point. I get some joy from the following.
(defun dictionary-search (word &optional dictionary) "Search the `word' in `dictionary' if given or in all if nil. It presents the word at point as default input and allows editing it." (interactive (list (let ((default (current-word t))) (read-string (if default (format "Search word (%s): " default) "Search word: ") nil nil default)) (if current-prefix-arg (read-string (if dictionary-default-dictionary (format "Dictionary (%s): " dictionary-default-dictionary) "Dictionary: ") nil nil dictionary-default-dictionary) dictionary-default-dictionary))) ;; if called by pressing the button (unless word (setq word (read-string "Search word: "))) ;; just in case non-interactivly called (unless dictionary (setq dictionary dictionary-default-dictionary)) (dictionary-new-search (cons word dictionary))) -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i586) Kernel: Linux 2.6.22-1-486 Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages dictionary-el depends on: ii emacs21 [emacsen] 21.4a+1-5 The GNU Emacs editor ii emacs22-gtk [emacsen] 22.1+1-1 The GNU Emacs editor (with GTK use ii xemacs21-mule [emacsen] 21.4.20-2 highly customizable text editor -- Versions of packages dictionary-el recommends: ii emacs21 21.4a+1-5 The GNU Emacs editor ii emacs22-gtk [emacs22] 22.1+1-1 The GNU Emacs editor (with GTK use ii mule-ucs 0.85~0.20061127-3 universal encoding system for Mule -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]