text properties from buffer-file-name not removed before given to swank

Bug #1006657 reported by Renee Klawitter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Slime
New
Undecided
Unassigned

Bug Description

emacs 23.3.1, slime-2012-05-27, tramp 2.1.20, ubuntu 11.10

When creating a file on a remote server via tramp, the buffer-file-name string has text properties that
are not removed and given to (common) lisp which chokes on them.

I'm not sure (this was my first edebug session) if this is a slime error as it does not happen when opening
an already existing remote file; but better save than sorry, so:

* /home/renee/elisp/slime-2012-05-27/slime.el
--- Buffer slime.el
***************
*** 2696,2702 ****
          ,string
          ,(buffer-name)
          ',position
! ,(if (buffer-file-name) (slime-to-lisp-filename (buffer-file-name)))
          ',slime-compilation-policy)
        #'slime-compilation-finished)))

--- 2696,2702 ----
          ,string
          ,(buffer-name)
          ',position
! ,(if (buffer-file-name) (substring-no-properties (slime-to-lisp-filename (buffer-file-name))))
          ',slime-compilation-policy)
        #'slime-compilation-finished)))

Best regards, r.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.