elisp - Emacs Lisp: Convert List to String -


"post-text" itemprop = "text">

I'm dubbing in MXS Lisp and I have the following functions Trying to write:

  (What am I trying to achieve) What am I doing to remove? (Exiting buffer file-name-entity) (last (split-string (buffer-file-name) "/")))   

Only (buffer-file-name) The file name and extension from the full path given by . However, this implementation returns a list of an item ("scratch.el") ... I (last) via (string) but it raises an error ... When I searched for Emacs list, Google did not return anything useful to change the list for the string How do I do this?

I think what you want "(file-name-nondirectory (buffer-file- Name)) "which gives a simple file name, without the information of any directory in the form of a string

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -