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

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



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) 


|Full archive May 1995 - present by Year|Search the archive|


If you have questions about this archive or had problems using it, please contact us.

Contact Info Page