Read-only forum archive

failed to start interface within Emacs after built source

failed to start interface within Emacs after built source

magichowl · Thu Feb 20, 2014 9:56 am

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.

Re: failed to start interface within Emacs after built source

malex · Thu Feb 20, 2014 6:11 pm

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

Re: failed to start interface within Emacs after built source

magichowl · Thu Feb 20, 2014 7:30 pm

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 \
>

Re: failed to start interface within Emacs after built source

vinay · Fri Feb 21, 2014 8:12 am

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

Re: failed to start interface within Emacs after built source

magichowl · Fri Feb 21, 2014 12:07 pm

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