Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - failed to start interface within Emacs after built source
Author Message
  Post subject:  Re: failed to start interface within Emacs after built source  Reply with quote
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
Post Posted: Fri Feb 21, 2014 12:07 pm
  Post subject:  Re: failed to start interface within Emacs after built source  Reply with quote
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
Post Posted: Fri Feb 21, 2014 8:12 am
  Post subject:  Re: failed to start interface within Emacs after built source  Reply with quote
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 \
>
Post Posted: Thu Feb 20, 2014 7:30 pm
  Post subject:  Re: failed to start interface within Emacs after built source  Reply with quote
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
Post Posted: Thu Feb 20, 2014 6:11 pm
  Post subject:  failed to start interface within Emacs after built source  Reply with quote
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.
Post Posted: Thu Feb 20, 2014 9:56 am


It is currently Fri May 13, 2022 10:58 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group