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

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

[elpa] externals/rec-mode 80b2815 75/98: rec-mode: fix selection command


From: Stefan Monnier
Subject: [elpa] externals/rec-mode 80b2815 75/98: rec-mode: fix selection commands when there are more than one record sets on the recfile.
Date: Thu, 12 Nov 2020 13:18:44 -0500 (EST)

branch: externals/rec-mode
commit 80b2815b7b0712227bb625373c4cca2e1fb1f20b
Author: Jose E. Marchesi <jemarch@gnu.org>
Commit: Antoine Kalmbach <ane@iki.fi>

    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



reply via email to

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