Symbol's function definition is void: string-suffix-p

110 views
Skip to first unread message

hellomyn...@gmail.com

unread,
Sep 9, 2015, 12:42:11 AM9/9/15
to Emacs Live
Ubuntu Server doesn't seem to like Emacs Live.

% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty

emacs --version
GNU Emacs 24.3.1
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

I get this error when starting up Emacs:
Warning (initialization): An error occurred while loading `/home/phil/.emacs.d/init.el':

emacs --live-safe-mode doesn't bring me any joy. Same error on startup.

emacs --debug-init gives me this:

Debugger entered--Lisp error: (void-function string-suffix-p)                                                                                                                                                                     
  (string-suffix-p "-popup" opt)                                                                                                                                                                                                  
  (if (string-suffix-p "-popup" opt) (substring opt 0 -6) opt)                                                                                                                                                                    
  (concat (if (string-suffix-p "-popup" opt) (substring opt 0 -6) opt) "-arguments")                                                                                                                                              
  (intern (concat (if (string-suffix-p "-popup" opt) (substring opt 0 -6) opt) "-arguments"))                                                                                                                                     
  (if (keywordp (car args)) (intern (concat (if (string-suffix-p "-popup" opt) (substring opt 0 -6) opt) "-arguments")) (eval (car (prog1 args (setq args (cdr args))))))                                                         
  (let* ((grp (if (keywordp (car args)) nil (car (prog1 args (setq args (cdr args)))))) (mode (if (keywordp (car args)) nil (car (prog1 args (setq args (cdr args)))))) (opt (symbol-name name)) (opt (if (keywordp (car args)) (i$
  (lambda (name doc &rest args) "Define a popup command named NAME.\n\nNAME should begin with the package prefix and by convention end\nwith `-popup'.  That name is used for the actual command as well\nas for a variable used i$
  (magit-define-popup magit-diff-popup "Popup console for diff commands." (quote magit-diff) :man-page "git-diff" :switches (quote ((102 "Show surrounding functions" "--function-context") (98 "Ignore whitespace changes" "--ign$
  eval-buffer(#<buffer  *load*-780890> nil "/home/phil/.emacs.d/packs/stable/git-pack/lib/magit/lisp/magit-diff.el" nil t)  ; Reading at buffer position 16329                                                                    
  load-with-code-conversion("/home/phil/.emacs.d/packs/stable/git-pack/lib/magit/lisp/magit-diff.el" "/home/phil/.emacs.d/packs/stable/git-pack/lib/magit/lisp/magit-diff.el" nil t)                                              
  ad-Orig-require(magit-diff nil nil)                                                                                                                                                                                             
  require(magit-diff)                                                                                                                                                                                                             
  eval-buffer(#<buffer  *load*-440642> nil "/home/phil/.emacs.d/packs/stable/git-pack/lib/magit/lisp/magit.el" nil t)  ; Reading at buffer position 2106                                                                          
  load-with-code-conversion("/home/phil/.emacs.d/packs/stable/git-pack/lib/magit/lisp/magit.el" "/home/phil/.emacs.d/packs/stable/git-pack/lib/magit/lisp/magit.el" nil t)                                                        
  ad-Orig-require(magit nil nil)                                                                                                                                                                                                  
  require(magit)                                                                                                                                                                                                                  
  eval-buffer(#<buffer  *load*-817308> nil "/home/phil/.emacs.d/packs/stable/git-pack/config/magit-conf.el" nil t)  ; Reading at buffer position 78                                                                               
  load-with-code-conversion("/home/phil/.emacs.d/packs/stable/git-pack/config/magit-conf.el" "/home/phil/.emacs.d/packs/stable/git-pack/config/magit-conf.el" nil nil)                                                            
  ad-Orig-load("/home/phil/.emacs.d/packs/stable/git-pack/config/magit-conf.el" nil nil t nil)                                                                                                                                    
  load("/home/phil/.emacs.d/packs/stable/git-pack/config/magit-conf.el" nil nil t)                                                                                                                                                
  load-file("/home/phil/.emacs.d/packs/stable/git-pack/config/magit-conf.el")                                                                                                                                                     
  (let* ((config-dir (live-pack-config-dir))) (load-file (concat config-dir f-name)))                                                                                                                                             
  live-load-config-file("magit-conf.el")                                                                                                                                                                                          
  eval-buffer(#<buffer  *load*-530784> nil "/home/phil/.emacs.d/packs/stable/git-pack/init.el" nil t)  ; Reading at buffer position 176                                                                                           
  load-with-code-conversion("/home/phil/.emacs.d/packs/stable/git-pack/init.el" "/home/phil/.emacs.d/packs/stable/git-pack/init.el" nil nil)                                                                                      
  ad-Orig-load("/home/phil/.emacs.d/packs/stable/git-pack/init.el" nil nil t nil)                                                                                                                                                 
  load("/home/phil/.emacs.d/packs/stable/git-pack/init.el" nil nil t)                                                                                                                                                             
  load-file("/home/phil/.emacs.d/packs/stable/git-pack/init.el")                                                                                                                                                                  
  (if (file-exists-p pack-init) (load-file pack-init))                                                                                                                                                                            
  (let* ((pack-dir (file-name-as-directory pack-dir)) (pack-info (concat pack-dir "info.el")) (pack-init (concat pack-dir "init.el"))) (setq live-current-pack-dir pack-dir) (live-clear-pack-info) (if (file-exists-p pack-info) $
  live-load-pack("/home/phil/.emacs.d/packs/stable/git-pack/")                                                                                                                                                                    
  (lambda (pack-dir) (live-load-pack pack-dir))("/home/phil/.emacs.d/packs/stable/git-pack/")                                                                                                                                     
  mapc((lambda (pack-dir) (live-load-pack pack-dir)) ("/home/phil/.emacs.d/packs/stable/foundation-pack/" "/home/phil/.emacs.d/packs/stable/colour-pack/" "/home/phil/.emacs.d/packs/stable/lang-pack/" "/home/phil/.emacs.d/packs$
  (progn (setq live-root-dir (if (boundp (quote live-root-dir)) (file-name-as-directory live-root-dir) (if (file-exists-p (expand-file-name "manifest.el" user-emacs-directory)) user-emacs-directory) (file-name-directory (or lo$
  (if live-supported-emacsp (progn (setq live-root-dir (if (boundp (quote live-root-dir)) (file-name-as-directory live-root-dir) (if (file-exists-p (expand-file-name "manifest.el" user-emacs-directory)) user-emacs-directory) ($
  eval-buffer(#<buffer  *load*> nil "/home/phil/.emacs.d/init.el" nil t)  ; Reading at buffer position 8318                                                                                                                       
  load-with-code-conversion("/home/phil/.emacs.d/init.el" "/home/phil/.emacs.d/init.el" t t)                

Stan Dyck

unread,
Sep 9, 2015, 11:25:19 AM9/9/15
to emacs...@googlegroups.com
I had this problem also. I believe you need version 24.4 or greater of
emacs which is not packaged with ubuntu trusty. This required me to
build emacs from source. I found some good instructions here:

http://ubuntuhandbook.org/index.php/2014/10/emacs-24-4-released-install-in-ubuntu-14-04/

It turned out to be mostly painless.

Good luck.
StanD.
> --

Reply all
Reply to author
Forward
0 new messages