Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: failed to start interface within Emacs after built source
PostPosted: Thu Feb 20, 2014 9:56 am 

Joined: Sun Aug 21, 2011 10:22 am
Posts: 12
Hi,
I compiled and built successfully a repository from github. Now I can run singular and esingular at command line in my home directory ~/SingularSba/bin.

BUT I failed to start the interface within a running Emacs as the manual
http://www.singular.uni-kl.de/Manual/3-1-6/sing_23.htm said,

after evaluate the following,
(setq load-path (cons "/home/pan/SingularSba/share/singular/emacs" load-path))
(autoload 'singular "singular" "Start Singular using default values." t)
(autoload 'singular-other "singular"
"Ask for arguments and start Singular." t)

whether use "singular" or "singular-other", emacs prompt a message

singular-interactive-mode: Symbol's function definition is void: make-local-hook

and create an empty "*singular*" buffer.

BTW, my singular version is 4.0.0.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: failed to start interface within Emacs after built source
PostPosted: Thu Feb 20, 2014 6:11 pm 

Joined: Tue Jun 23, 2009 10:33 pm
Posts: 51
Location: Kaiserslautern
It may be the case that our emacs interface (and its description in the Manual) is outdated and will only work with some (older) versions of emacs :(

For instance ESingular using GNU Emacs 22.1.1 under Mac OS X 10.6 worked fine last time i checked...
Also it is known that XEmacs will not do well :(

Which emacs version are you using?

If ESingular works for you - try running it with '--no-call' to see the used command line.

ps: i run into the same problem of "function definition is void: make-local-hook" with GNU Emacs 24.3.1 / Linux.

Thanks for reporting!

Cheers,
Oleksandr


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: failed to start interface within Emacs after built source
PostPosted: Thu Feb 20, 2014 7:30 pm 

Joined: Sun Aug 21, 2011 10:22 am
Posts: 12
unfortunately, mine is GNU Emacs 24.3.1 / Linux.

after
./ESingular --no-call

message is
/usr/bin/emacs24-x --no-init-file --eval '(progn (setq singular-emacs-home-directory "/home/pan/SingularSba/bin/../share/singular/emacs") (load-file "/home/pan/SingularSba/bin/../share/singular/emacs/.emacs-singular") (singular-other "/home/pan/SingularSba/bin/Singular" "/home/pan/SingularSba/bin/" (list ) "singular"))'

I tried to evaluate the above progn part in emacs, font color changed, but problem is the same: "function definition is void: make-local-hook".

BTW, after
./ESingular and select the menu item start-default

Singular can be started unormally (with white background and black font color)

message in *singular* buffer:

// ** Could not get 'InfoFile'.
// ** Either set environment variable 'SINGULAR_INFO_FILE' to 'InfoFile',
// ** or make sure that 'InfoFile' is at "/home/pan/SingularSba/bin/../share/info/singular.hlp"
// ** InfoFile:
SINGULAR / Development
A Computer Algebra System for Polynomial Computations / version 4.0.0
0<
by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann \ Dec 2013
FB Mathematik der Universitaet, D-67653 Kaiserslautern \
>


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: failed to start interface within Emacs after built source
PostPosted: Fri Feb 21, 2014 8:12 am 

Joined: Sat Oct 01, 2005 11:40 am
Posts: 35
Location: IIT Guwahati, Guwahati, Assam, INDIA
Dear Oleksandr,

It seems the `make-local-hook' is obsolete and has been removed from emacs24.

Commenting the following lines do the magic:
Code:
  (make-local-hook 'singular-post-input-filter-functions)
and
Code:
(make-local-hook 'singular-post-output-filter-functions)

I am not sure wheather this has any side-efeects!

HTH

VInay


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: failed to start interface within Emacs after built source
PostPosted: Fri Feb 21, 2014 12:07 pm 

Joined: Sun Aug 21, 2011 10:22 am
Posts: 12
Thank you both

vinay is right, and no side-effect.

in the old docstring
Quote:
(make-local-hook HOOK)

This function is obsolete since 21.1; not necessary any more.

Make the hook HOOK local to the current buffer. The return value is HOOK.

You never need to call this function now that `add-hook' does it for you if its LOCAL argument is non-nil.


and the last parameter LOCAL of "add-hook" is set true in singular.el
Code:
(add-hook 'singular-post-input-filter-functions
       'singular-debug-post-input-filter nil t)



Regards,

Senshan Pan


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Wed Dec 13, 2017 9:04 am
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group