branch: externals/rec-mode
commit 80b2815b7b0712227bb625373c4cca2e1fb1f20b
Author: Jose E. Marchesi <[email protected]>
Commit: Antoine Kalmbach <[email protected]>
rec-mode: fix selection commands when there are more than one record sets
on the recfile.
---
etc/rec-mode.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/etc/rec-mode.el b/etc/rec-mode.el
index 65d1e61..f86c2b0 100644
--- a/etc/rec-mode.el
+++ b/etc/rec-mode.el
@@ -1625,7 +1625,8 @@ The result of the selection is stored in
`rec-current-selection'."
A prefix argument means to use a case-insensitive search."
(interactive "sFast string query: ")
(when (not (equal str ""))
- (setq rec-current-selection (rec-query :fast-string str))
+ (setq rec-current-selection (rec-query :fast-string str
+ :type (rec-record-type)))
(rec-navigate-selection)))
(defun rec-cmd-select-sex (sex)
@@ -1634,7 +1635,8 @@ A prefix argument means to use a case-insensitive search."
A prefix argument means to use a case-insensitive search."
(interactive "sSelection expression: ")
(when (not (equal sex ""))
- (setq rec-current-selection (rec-query :sex sex))
+ (setq rec-current-selection (rec-query :sex sex
+ :type (rec-record-type)))
(rec-navigate-selection)))
;;;; Commands