I have a string variable, specifically the
emacs-version variable that can be quite long and I am only using
message with the first 4 of those characters.
Is there a way to format the variable in a
message statement so that I am only printing the first x number of characters?
Right now I am using
substring but it seems like there should be an easier / cleaner way. Please let me know if there is a more efficient way to do this:
(message "You are running version %s old." (substring emacs-version 0 4)))