emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/xah-fly-keys e4db51a90d: if in emacs 28, xah-open-file-fas


From: ELPA Syncer
Subject: [nongnu] elpa/xah-fly-keys e4db51a90d: if in emacs 28, xah-open-file-fast is now just alias to bookmark-jump, because fido-vertical-mode made xah-open-file-fast unnecessary
Date: Fri, 29 Apr 2022 12:58:55 -0400 (EDT)

branch: elpa/xah-fly-keys
commit e4db51a90d13eb886b88bbba6a71846653a76e47
Author: Xah Lee <xah@xahlee.org>
Commit: Xah Lee <xah@xahlee.org>

    if in emacs 28, xah-open-file-fast is now just alias to bookmark-jump, 
because fido-vertical-mode made xah-open-file-fast unnecessary
---
 xah-fly-keys.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/xah-fly-keys.el b/xah-fly-keys.el
index f1ee61ccdd..d18f1c59d0 100644
--- a/xah-fly-keys.el
+++ b/xah-fly-keys.el
@@ -4,7 +4,7 @@
 
 ;; Author: Xah Lee ( http://xahlee.info/ )
 ;; Maintainer: Xah Lee <xah@xahlee.org>
-;; Version: 17.6.20220426002628
+;; Version: 17.7.20220429090059
 ;; Created: 10 Sep 2013
 ;; Package-Requires: ((emacs "24.1"))
 ;; Keywords: convenience, emulations, vim, ergoemacs
@@ -2291,6 +2291,8 @@ Version: 2016-06-19"
   "Prompt to open a file from bookmark `bookmark-bmenu-list'.
 This command is similar to `bookmark-jump'.
 
+Note: this command is obsolete in emacs 28.1. Use `bookmark-jump' instead and 
turn on `fido-vertical-mode'. The purpose of `xah-open-file-fast' was using ido 
interface for flex matching. Now it's no longer needed.
+
 URL `http://xahlee.info/emacs/emacs/emacs_hotkey_open_file_fast.html'
 Version: 2019-02-26 2022-04-07"
   (interactive)
@@ -2299,6 +2301,10 @@ Version: 2019-02-26 2022-04-07"
   (let (($xBookmark (completing-read "Open bookmark:" (mapcar (lambda ($x) 
(car $x)) bookmark-alist))))
     (find-file (bookmark-get-filename $xBookmark))))
 
+(if (version< emacs-version "28.1")
+    nil
+  (defalias 'xah-open-file-fast 'bookmark-jump))
+
 (defvar xah-open-file-at-cursor-pre-hook nil "Hook for 
`xah-open-file-at-cursor'. Functions in the hook will be called in order, each 
given the path as arg. The first return non-nil, its value is given to 
`xah-open-file-at-cursor' as input. This is useful for transforming certain url 
into file path (your website url), so instead of opening in browser, it opens 
in emacs as file.")
 
 (defun xah-open-file-at-cursor ()



reply via email to

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