Skip to Content.
Sympa Menu

emacspeak - [Emacspeak] Patch: make emacspeak-tabulated list play nice with list-packages

Subject: Emacspeak discussion list

List archive

[Emacspeak] Patch: make emacspeak-tabulated list play nice with list-packages


Chronological Thread 
  • From: Parham Doustdar <parham90 AT gmail.com>
  • To: Emacspeaks <emacspeak AT emacspeak.net>
  • Subject: [Emacspeak] Patch: make emacspeak-tabulated list play nice with list-packages
  • Date: Sun, 14 Jan 2024 18:21:45 +0100

Hi,
I get an error when doing `C-h p’ and going to the leftmost cell in the table
using the left/right arrow keys. This is because Emacspeak tabulated list
expects all fields to be strings. All the emacspeak-package.el functions take
this into account, but tabulated list doesn’t. So I added a check to treat
the first element as the “value” below:
diff --git a/lisp/emacspeak-tabulated-list.el
b/lisp/emacspeak-tabulated-list.elindex c77406094..30adb0f21 100644
--- a/lisp/emacspeak-tabulated-list.el
+++ b/lisp/emacspeak-tabulated-list.el
@@ -74,6 +74,8 @@
(when (= 0 col) (emacspeak-auditory-icon 'left))
(when (= (1- (length tabulated-list-format)) col)
(emacspeak-auditory-icon 'right))
+ (when (listp value)
+ (setq value (car value)))
(when (zerop (length (string-trim value)))
(dtk-tone 261.6 150 'force)) ;blank
(if (called-interactively-p 'interactive)


Archive powered by MHonArc 2.6.19+.

Top of Page