[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rec-mode 424eb72 25/98: rec-mode: fixes in goto-type an
From: |
Stefan Monnier |
Subject: |
[elpa] externals/rec-mode 424eb72 25/98: rec-mode: fixes in goto-type and show-type. |
Date: |
Thu, 12 Nov 2020 13:18:33 -0500 (EST) |
branch: externals/rec-mode
commit 424eb7205f5839b75aa3ca5fea5d9ea3eba7a15e
Author: Jose E. Marchesi <jemarch@gnu.org>
Commit: Antoine Kalmbach <ane@iki.fi>
rec-mode: fixes in goto-type and show-type.
---
etc/rec-mode.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/etc/rec-mode.el b/etc/rec-mode.el
index 78d5fb8..251ae84 100644
--- a/etc/rec-mode.el
+++ b/etc/rec-mode.el
@@ -633,7 +633,7 @@ existing buffer."
;; used. The rest are ignored.
(mapcar
(lambda (elem)
- (rec-record-assoc rec-keyword-rec (cadr elem)))
+ (car (rec-record-assoc rec-keyword-rec (cadr elem))))
rec-buffer-descriptors))
(defun rec-type-p (type)
@@ -960,13 +960,14 @@ the result buffer."
;;;; Navigation
-(defun rec-show-type (type)
- "Show the records of the given type"
+(defun rec-show-type (type &optional show-descriptor)
+ "Show the records of the given type. If TYPE is nil then the records
+of the default type are shown."
(widen)
(unless (rec-goto-type type)
(message "No records of the requested type were found."))
;; Show the first data record of this type, if it exists.
- (if (and (not type)
+ (if (and (not show-descriptor)
(save-excursion
(let ((record-type (rec-record-type)))
(and (rec-goto-next-rec)
@@ -1516,7 +1517,7 @@ This jump sets jump-back."
(setq rec-jump-back (point-marker))
(if rec-editing
(rec-goto-type type)
- (rec-show-type type)))))
+ (rec-show-type type t)))))
(defun rec-cmd-count ()
"Display a message in the minibuffer showing the number of
- [elpa] externals/rec-mode 1f0916b 02/98: Trailing blanks removed., (continued)
- [elpa] externals/rec-mode 1f0916b 02/98: Trailing blanks removed., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 785b4b8 04/98: misc changes to rec-mode.el, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 969c03a 01/98: experimental/rec-mode.el renamed to etc/rec-mode.el, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 0731ca5 11/98: ob-rec.el imported in the repo., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode a1e21e1 14/98: Added %typedef to the list of keywords., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 06ec5c5 17/98: ob-rec: support for :sort and minor fixes., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 2f8aa87 16/98: ob-rec: support for :sort and minor fixes., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode fbd02a9 24/98: rec-mode: field names are no longer lists of parts., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 0b52532 18/98: ob-rec: support for :sort and minor fixes., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 18e9e4a 23/98: rec-mode: editing of individual fields now works., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 424eb72 25/98: rec-mode: fixes in goto-type and show-type.,
Stefan Monnier <=
- [elpa] externals/rec-mode f063506 26/98: rec-mode: misc small fixes., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 0f09c3f 33/98: rec-mode: support editing boolean fields as special enum values., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 3e47acf 05/98: rec-mode improvements., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode aa86480 08/98: rec-mode: several fixes., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 6292f55 09/98: syntax-check fixes., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 4413688 38/98: rec-mode: new functions returning properties of the current record set., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 1982af5 42/98: rec-mode: allow the user to cancel the edit date operation by quitting the calendar window., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode eba1923 36/98: rec-mode: presentation of continuation lines in navigation modes, and other improvements., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 87abd92 49/98: rec-mode: new command rec-cmd-statistics., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 7b1a375 53/98: rec-mode: provide a sensible log-current-defun for the add-log function., Stefan Monnier, 2020/11/12