Re: ;;; anything.el --- open anything
Vagn Johansen [EMAIL PROTECTED] writes: Hi Vagn, Should I add this source to anything-config.el? Yes. Call it anything-source-mac-spotlight instead. Few people know about mdfind. I only discovered it by accident. Ok. Also I think you should remove the Delete File action in anything-actions-file. At least I use it sometimes, but sorting in a dired action is a good idea, anyway. It is more generic to go to a dired buffer: (Dired . (lambda (filename) (dired (file-name-directory filename)) (dired-goto-file filename))) Deleting a file in Dired also checks if a corresponding buffer is open and offers to kill it. I could implement this behavior for Delete File, too. Bye and thanks for the contribution, Tassilo -- When Chuck Norris talks, everybody listens. And dies. ___ gnu-emacs-sources mailing list gnu-emacs-sources@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
Re: ;;; anything.el --- open anything
Tassilo Horn [EMAIL PROTECTED] writes: Hi Vagn, Should I add this source to anything-config.el? Yes. Call it anything-source-mac-spotlight instead. Few people know about mdfind. I only discovered it by accident. Ok. Also I think you should remove the Delete File action in anything-actions-file. At least I use it sometimes, but sorting in a dired action is a good idea, anyway. It is more generic to go to a dired buffer: (Dired . (lambda (filename) (dired (file-name-directory filename)) (dired-goto-file filename))) Deleting a file in Dired also checks if a corresponding buffer is open and offers to kill it. I could implement this behavior for Delete File, too. Bye and thanks for the contribution, Tassilo DONE! Bye, Tassilo -- Little known medical fact: Chuck Norris invented the Caesarean section when he roundhouse-kicked his way out of his monther's womb. ___ gnu-emacs-sources mailing list gnu-emacs-sources@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
Re: ;;; anything.el --- open anything
On Jul 22, 10:57 pm, Benjamin Andresen [EMAIL PROTECTED] wrote: ,[ diff -u anything.el.1 anything.el ] | --- anything.el.1 2007-07-22 19:45:30.0 +0200 | +++ anything.el 2007-07-22 22:37:42.0 +0200 | @@ -906,11 +906,11 @@ |(setq file (propertize file 'face 'file-name-shadow))) | |;; replace path of HOME directory in paths with the string | - ;; home | + ;; ~ |(let ((home (replace-regexp-in-string / ; stupid Windows... | (getenv HOME | (if (string-match home file) | -(cons (replace-match home nil nil file) file) | +(cons (replace-match ~ nil nil file) file) |file))) | files))) | The function anything-transform-files in anything.el is only an example. If you have fixes or enhancements then they should go into anything-config.el. Transformations for different types of items are also part of the configuration for anything, so they belong to anything-config.el. ___ gnu-emacs-sources mailing list gnu-emacs-sources@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
Re: ;;; anything.el --- open anything
Here's a source for Imenu for jumping to functions in the current buffer. It was just a sudden idea, not sure how useful it is, but here it is if anyone's interested: (setq anything-source-imenu '((name . Imenu) (init-func . (lambda () (setq anything-imenu-current-buffer (current-buffer (candidates . (lambda () (condition-case nil (with-current-buffer anything-imenu- current-buffer (mapcar (lambda (x) (cons (car x) x)) ;; leave only top level completions ;; for simplicity (could be more ;; sophisticated) (remove-if-not (lambda (x) (markerp (cdr x))) (imenu--make- index-alist (error nil (action . imenu))) ___ gnu-emacs-sources mailing list gnu-emacs-sources@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
Re: [OT] Re: realplay.el interface with Real Player v. 1879
i'm not familiar enough with the start of the open source movement, but the way i've always understood it is that those who started it did not have the goal of bringing the message of free software to the larger public, but rather the message of open source (which, as you probably know better than anyone, is not the same thing). Some of them did have that different goal; others thought of it as a marketing campaign for free software. It turned out to be the former. ___ gnu-emacs-sources mailing list gnu-emacs-sources@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
Re: ;;; anything.el --- open anything
On Jul 23, 3:08 pm, Tassilo Horn [EMAIL PROTECTED] wrote: Hi Tamas, this may be useful for use in programming modes, but the candidate creation function doesn't work here with a current CVS emacs. The alist returned by `imenu--make-index-alist' has a different structure than your code assumes, so that the `remove-if-not' always returns nil. It worked with stable Emacs 22. Maybe it should be defined with version conditional (= emacs-major-version 22) if it's version dependent and someone will make a version for CVS Emacs (Emacs 23?) too if there is a need. ___ gnu-emacs-sources mailing list gnu-emacs-sources@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources