emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ffap and ignoring case in completions


From: Ryan Yeske
Subject: ffap and ignoring case in completions
Date: Thu, 09 Feb 2006 23:35:03 -0800

;; ignore case in file name completion...
(setq read-file-name-completion-ignore-case t)
;; ...but not other completion
(setq completion-ignore-case nil)

find-file-at-point does not look at the value of
read-file-name-completion-ignore-case, but rather at the value of
completion-ignore-case.  This is inconsistent with the behaviour of
the vanilla find-file function and the documentation of the two
variables.

I believe the patch below solves the problem.

*** ffap.el     09 Feb 2006 23:27:06 -0800      
--- ffap.el     Thu Feb  9 23:27:06 2006
***************
*** 1255,1261 ****
                    (abbreviate-file-name (expand-file-name guess))
                    ))
          (setq dir (file-name-directory guess))))
!     (let ((minibuffer-completing-file-name t))
        (setq guess
            (completing-read
             prompt
--- 1255,1262 ----
                    (abbreviate-file-name (expand-file-name guess))
                    ))
          (setq dir (file-name-directory guess))))
!     (let ((minibuffer-completing-file-name t)
!         (completion-ignore-case read-file-name-completion-ignore-case))
        (setq guess
            (completing-read
             prompt



In GNU Emacs 22.0.50.6 (i386-unknown-openbsd3.6)
 of 2006-02-04 on cut.bc.hsia.telus.net
configured using `configure '--without-x''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Diff

Minor modes in effect:
  vc-parent-buffer: contrib/emacs/lisp/ffap.el
  temperature-mode: t
  rcirc-track-minor-mode: t
  display-time-mode: t
  iswitchb-mode: t
  auto-image-file-mode: t
  show-paren-mode: t
  auto-compression-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t

Recent input:
ESC U ESC U ESC C ESC U ESC C ESC U ESC C ESC U ESC 
C ESC U ESC C ESC U ESC C ESC U ESC C ESC U ESC U ESC 
C ESC U ESC C ESC C ESC C ESC C C-x h ESC w ESC x e 
m a c - DEL s - f i l TAB ESC DEL r e p o r t TAB ESC 
DEL b u g TAB ESC DEL ESC DEL r e p o r t - e m a c 
s - b u g RET

Recent messages:
Quit [2 times]
Type M-x switch-to-buffer-other-window RET to restore the other window.  
call-interactively: End of buffer
call-interactively: Beginning of buffer [2 times]
Mark set [2 times]
Saved text until "
            (completing-read
             prompt
"
Loading emacsbug...done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]