ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

rosemacs error : dynamic-completion-table

asked 2023-06-25 04:21:43 -0600

hdd--robot gravatar image

updated 2023-06-25 06:58:52 -0600

After installing ros-noetic on a debian 10. I installed ros-noetic-rosemacs via apt. The installed version is : 0.4.17-1buster.20220221.094135.

When I run emacs (emacs --debug-init) I get the following error:

Debugger entered--Lisp error: (void-function dynamic-completion-table)
  (dynamic-completion-table #'(lambda (str) (rosemacs-bsearch str ros-all-topics)))
  (setq topic-completor (dynamic-completion-table #'(lambda (str) (rosemacs-bsearch str ros-all-topics))))
  load-with-code-conversion("/opt/ros/noetic/share/emacs/site-lisp/rosemacs.el" "/opt/ros/noetic/share/emacs/site-lisp/rosemacs.el" nil t)
  require(rosemacs)
  load-with-code-conversion("/opt/ros/noetic/share/emacs/site-lisp/rosemacs-con..." "/opt/ros/noetic/share/emacs/site-lisp/rosemacs-con..." nil t)
  require(rosemacs-config)
  load-with-code-conversion("/home/hdd/.emacs.d/init.el" "/home/hdd/.emacs.d/init.el" t t)
  load("/home/hdd/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x10b2151e256b0ed8>) #f(compiled-function () #<bytecode -0x1f3c686ddc0cdc35>) t)
  command-line()
  normal-top-level()

Do you have any idea how to make rosemacs work?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-29 04:15:30 -0600

hdd--robot gravatar image

It seems that the problem is that the function "dynamic-completion-table" has changed its name in emacs, now it is called "completion-table-dynamic".

To solve the problem, I changed in the file: "/opt/ros/noetic/share/emacs/site-lisp/rosemacs.el" all occurrences of "dynamic-completion-table" by "completion-table- dynamic". it seems to work for now.

edit flag offensive delete link more

Comments

Glad you found a workaround. Seeing /opt/ros/noetic/share/emacs in your error output, I guess your rosemacsis installed via the installer, of which code is maintained at https://github.com/code-iai/ros_emacs.... Why don't you submit a bugfix?

130s gravatar image 130s  ( 2023-06-29 10:27:56 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2023-06-25 04:21:43 -0600

Seen: 59 times

Last updated: Jun 29 '23