Re: globalff.el --- Global find file

2007-08-28 Thread Alan E. Davis
I would like, of course, to be sure the keybinds are right.  However, having
just tried globalff.el, I am truly grateful to the programmers who did
this.  Very useful.  I cannot find an email address to send a personal thank
you note.

I will probably try locate.el.   Globalff is fantastic, but it is not as
easy as it could be to manipulate the files one has located.  At least for
me, yet.

Thanks for the opportunity to express myself about this fantastic piece of
work.

Alan Davis


-- 
Alan Davis, Kagman High School, Saipan  [EMAIL PROTECTED]

An inviscid theory of flow renders the screw useless, but the need for one
non-existent.
 ---Lord Raleigh (aka John William Strutt), or else his son,
___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2007-08-20 Thread [EMAIL PROTECTED]
On Aug 19, 1:42 am, Leo [EMAIL PROTECTED] wrote:
 On 2006-03-09 10:54 +, [EMAIL PROTECTED] wrote:

  Here's new version which doesn't use electric, so the pattern editing
  is more natural.

 GNU Emacs has locate.el included. What's the advantage of globalff over
 locate.el?


globalff updates the list results dynamically, as you type.

But globalff.el is not maintained anymore, though it's pretty stable,
so it should work.

It was obsoleted by timid.el and anything.el as far as I'm concerned.
I don't use standalone globalff anymore.

___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2007-08-20 Thread [EMAIL PROTECTED]
On Aug 19, 11:17 am, [EMAIL PROTECTED] (Michaël Cadilhac) wrote:
 [EMAIL PROTECTED] writes:
  Here's new version which doesn't use electric, so the pattern editing
  is more natural.

  ;;; globalff.el --- Global find file

 This is a nice piece of code (although wrongly indented ;-))!  It may be
 a good idea to add an option to use the `-r' flag of locate, for regexp
 matching.


The last version is on Emacs wiki and it supports regexp matching:

http://www.emacswiki.org/cgi-bin/emacs/GlobalFF


___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2007-08-20 Thread Michaël Cadilhac
[EMAIL PROTECTED] [EMAIL PROTECTED] writes:

 On Aug 19, 11:17 am, [EMAIL PROTECTED] (Michaël Cadilhac) wrote:
 [EMAIL PROTECTED] writes:
  Here's new version which doesn't use electric, so the pattern editing
  is more natural.

  ;;; globalff.el --- Global find file

 This is a nice piece of code (although wrongly indented ;-))!  It may be
 a good idea to add an option to use the `-r' flag of locate, for regexp
 matching.


 The last version is on Emacs wiki and it supports regexp matching:

 http://www.emacswiki.org/cgi-bin/emacs/GlobalFF

This is great !

Another small remark, it's probably a wrong thing to use C-c as a
keybinding, as this is the user prefix key.

-- 
 |   Michaël `Micha' Cadilhac   |  La culture c'est comme la confiture,  |
 |   http://michael.cadilhac.name   |  c'est meilleur avec du pain.  |
 |   JID/MSN:   |   -- MOI59 |
 `  [EMAIL PROTECTED]  |   -  --'


pgpr7Hudte6LR.pgp
Description: PGP signature
___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


RE: globalff.el --- Global find file

2007-08-18 Thread Drew Adams
 On 2006-03-09 10:54 +, [EMAIL PROTECTED] wrote:
  Here's new version which doesn't use electric, so the pattern editing
  is more natural.

 GNU Emacs has locate.el included. What's the advantage of globalff over
 locate.el?

Tamas will perhaps answer specifically for `globalff.el', but here is some
description and comparison, including `locate.el', `globalff.el', and
various other libraries that provide front ends for the UNIX or GNU/Linux
`locate' command:

http://www.emacswiki.org/cgi-bin/wiki/LocateFilesAnywhere



___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2006-04-11 Thread spamfilteraccount
New release.

See the source code and the changes on Emacs wiki:
http://www.emacswiki.org/cgi-bin/emacs/GlobalFF


/Tamas

___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2006-03-29 Thread Richard Stallman
Well, I'm posting from Google Groups where I have little control over
the formatting of the message

So don't do that, then.
Seriously, can't your machine send mail some other way?


___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2006-03-28 Thread spamfilteraccount
Francesco Potorti` wrote:

 I think that writing to this list with a fake From: line is not good
 practice.  The mail does not even have a signature.  The source does not
 contain the author's name.

 Anyway, whoever you are, note that your mail agent wraps long lines, so
 the elisp source you posted for globalff.el, which I am beginning to use
 with some satisfaction (thanks) contains at least one syntax error.

Well, I'm posting from Google Groups where I have little control over
the formatting of the message. For example, I didn't find a
no-line-wrap option.

Furthermore, I was unable to set my name, so it posts only my address
in the From header. Surely, I'm overlooking something, but I did not
yet have time to fix these issues.

The mail address in the From header works, BTW.

/Tamas

___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2006-03-28 Thread spamfilteraccount
Francesco Potorti` wrote:

 Anyway, whoever you are, note that your mail agent wraps long lines, so
 the elisp source you posted for globalff.el, which I am beginning to use
 with some satisfaction (thanks) contains at least one syntax error.

To avoid such problems in the future from now on I'll upload new
releases to the GlobalFF page of Emacs Wiki:
http://www.emacswiki.org/cgi-bin/wiki/GlobalFF

The newest version uses sit-for instead of idle timer, so that it's
more responsive when changing the input pattern.

/Tamas

___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2006-03-27 Thread spamfilteraccount
New release.

Changes:

- Added globalff-selection-face, so that it can be set independtly from
the standard region face

- Fixed initial selection if regexp filtering is active

- Added option globalff-adaptive-selection to optionally preselect the
  last file chosen for the same input pattern automatically. If no
exact
  input match is found then the most recent input pattern which matches
  the beginning of the current input is used.

  This option makes it possible to use a short input string to
  locate a previously visited file again quickly.


;;; globalff.el --- Global find file

;; Copyright (C) 2006  Free Software Foundation, Inc.

;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to
;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

;;; Commentary:

;; Start with M-x globallff and type in any substring of any path on
;; your system to display the matching files. The displayed list is
;; updated dynamically as you type more characters or delete some.
;;
;; Needs an up-to-date locate database for file name searching.
;;
;; Since the search is based on locate you can use any globbing
;; characters allowed by the locate command.
;;
;; You can move up/down the list with the cursor keys (I know these
;; bindings are not very Emacsian, but I happen to like them) and
;; select a file to open with Enter.
;;
;; You can quit with C-g.
;;
;; See the variable `globalff-map' for further bindings.
;;

;;; Code:

(require 'cl)

;;
;; User configurable variables
;;

(defvar globalff-case-sensitive-search nil
  Whether to use case sensitive pattern matching.)

(defvar globalff-regexp-search nil
  Whether to use regular expression pattern matching.)

(defvar globalff-databases nil
  List of database files separated with colon to be used by the locate
command.
If nil then the system default database is used.)

(defvar globalff-filter-regexps nil
  List of regular expressions to filter out unwanted files from the
output.)

(defvar globalff-minimum-input-length 3
  The minimum number of characters needed to start file searching.)

(defvar globalff-search-delay 0.5
  Idle time after last input event, before starting the search.)

(defvar globalff-adaptive-selection nil
  If enabled the last file chosen for the same input is preselected
automatically instead of the first one in the list. If no exact input
match is found then the most recent input pattern which matches the
beginning of the current input is used.

Doesn't do anything if the user moves the selection manually, before a
file is selected automatically.

This option makes it possible to use a short input string to locate a
previously visited file again quickly.)

(defvar globalff-history-length 50
  Number of previous file selections saved if
`globalff-adaptive-selection' is enabled.)

(defvar globalff-history-file ~/.globalff_history
  Name of the history file where previous file selections saved if
`globalff-adaptive-selection' is enabled.)

;; Face used to highlight the currently seleceted file name
(copy-face 'region 'globalff-selection-face)

(defvar globalff-map
  (let ((map (copy-keymap minibuffer-local-map)))
(define-key map (kbd down) 'globalff-next-line)
(define-key map (kbd up) 'globalff-previous-line)
(define-key map (kbd prior) 'globalff-previous-page)
(define-key map (kbd next) 'globalff-next-page)
(define-key map (kbd C-c) 'globalff-toggle-case-sensitive-search)
;; I wanted to choose C-t as a homage to iswitchb, but
;; transpose-chars can be useful during pattern editing
(define-key map (kbd C-r) 'globalff-toggle-regexp-search)
(define-key map (kbd C-s) 'globalff-toggle-around-globs)
(define-key map (kbd RET) 'globalff-exit-minibuffer)
map)
  Keymap for globalff.)

;;
;; End of user configurable variables
;;

(defvar globalff-idle-timer nil
  Idle timer for monitoring typed characters.)

(defconst globalff-buffer *globalff*
  Buffer used for finding files.)

(defvar globalff-previous-input 
  The previous input substring used for searching.)

(defvar globalff-overlay nil
  Overlay used to highlight the current selection.)

(defvar globalff-history nil
  List of the previous file selections if
`globalff-adaptive-selection' is enabled.)

(defvar globalff-adaptive-selection-target nil
  The search output filter looks for this file name in the output if
`globalff-adaptive-selection' is enabled.)


(defun 

Re: globalff.el --- Global find file

2006-03-27 Thread Francesco Potorti`
New release.

I think that writing to this list with a fake From: line is not good
practice.  The mail does not even have a signature.  The source does not
contain the author's name.

Anyway, whoever you are, note that your mail agent wraps long lines, so
the elisp source you posted for globalff.el, which I am beginning to use
with some satisfaction (thanks) contains at least one syntax error.


___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2006-03-08 Thread Thorsten Bonow
 Johan == Johan Bockgård [EMAIL PROTECTED] writes:

Johan (require 'electric)

Hi, thanks. But this should be included in globalff.

Still can't make it work. Using XEmacs 21.4.19 and an up to date GNU Emacs from
CVS. Just opens a window and prompts in the minibuffer, but nothing happens when
typing a path/filename. Did I do anything stupid?

How does your library relate to gse-locate
(http://www.antisleep.com/elisp/gse-locate.el), the other locate front-end I'am
using for some time now?

Johan -- Johan Bockgård

Thanks for any information.

Toto

-- 
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow

There are no good lawyers. There may be lady wrestlers and Catholic
universities. There may be military intelligence. But a good lawyer is
a contradiction in terms.

Friedman, Kinky (1993), Greenwich Killing Time. New York (Wings
Books), 12
___
Gnu-emacs-sources mailing list
Gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: globalff.el --- Global find file

2006-03-08 Thread Thorsten Bonow
 sa == spamfilteraccount  [EMAIL PROTECTED] writes:

sa There's really nothing special in the Elisp, so it should work. I use
sa Gnu Emacs 21.4 on linux. Does locate work for you on the command line?

Yup, locate works. And I tried GNU Emacs 21.4 and yow, globalff works like a
charm. But still out of luck with a pristine CVS version (emacs -q
--no-site-file -l /home/toto/installed/emacsen/globalff.el).

sa I didn't know about gse-locate, so I can't tell it right now.

sa Looking at the code I'd say gse-locate doesn't update the list of
sa matching files dynamically as you're typing the pattern while mine does.

Yeah, great feature (Now that I've been able to see it :-). 

Will have a look at the problem with CVS Emacs...

Thanks for helping...

Toto

-- 
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow

Eure Helme sind auch schon gestanzt...
___
Gnu-emacs-sources mailing list
Gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources