I have a bit more information on this problem.  When I use debug-on-error, I get the following backtrace:

Debugger entered--Lisp error: (wrong-type-argument sequencep ess-r-customize-alist)
ess-setq-vars-local(ess-r-customize-alist)
ess-dump-object-into-edit-buffer("LQ")
  funcall-interactively(ess-dump-object-into-edit-buffer "LQ")
  command-execute(ess-dump-object-into-edit-buffer)


which I don't think helps too much.  However when I inspect the variable ess-source-directory during my R seesion, I see this:


ess-source-directory is a variable defined in ‘ess-custom.el’.

Its value is (lambda nil (concat ess-directory "Src/"))
Original value was "/tmp/"

It seems odd that the value has changed to (lambda nil ...
instead of (lambda () ...

Doesn't the lambda() function need the () in order to be recognized as a function? Has anyone on the list been able to get this expression to work or is it a real bug in ESS?

Thanks for any time you can spend helping me with this.

Bill


On 2/10/25 4:46 PM, William McCoy via ESS-help wrote:
I have had the following lines in my emacs init.el file for years:

(setq ess-source-directory
      (lambda ()
         (concat ess-directory "src/")))

This had been taken from ESS documentation from long ago and still appears in the current documentation.  But now it causes a problem.  ESS loads without problem in emacs.  However, when I attempt to dump and edit an existing function (using C-c C-e C-d) while in a running R process buffer, I get the following message in the mini-buffer and the dump doesn't occur:

Wrong type argument: sequencep, ess-r-customize-alist

This is frustrating and I've had to resort to dumping files in a fixed-name sub-directory under my home directory.

ESS version:  20250110.1437 (25.1.0)
Emacs version:  29.4
R version:  4.4.2 (2024-10-31)
Fedora 41 Workstation

Thanks for considering this issue,
Bill McCoy

Note:  I have resent this post because my long-time subscription to this mailing list was under a different email address that my institution has changed.  I have since re-subscribed to the mailing list with my new email address.

______________________________________________
ESS-help@r-project.org mailing list
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fess-help&data=05%7C02%7Cwdmccoy%40cns.umass.edu%7C906b625542044b49d3b408dd4a21635c%7C7bd08b0b33954dc194bbd0b2e56a497f%7C0%7C0%7C638748229463608534%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=zvXXeoebeIa9iYtk0aH4BxRgc%2B3faq9WO3tf6Si7mqI%3D&reserved=0

______________________________________________
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Reply via email to