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 - cannot open singular on a running emacs
Author Message
  Post subject:  Re: cannot open singular on a running emacs  Reply with quote
Thanks. I copied that lisp code to ~/.emacs, changing singular-emacs-home-directory into /Applications/Singular.app/Contents/share/singular/emacs/
But still it doesn't work.
I also copied /Applications/Singular.app/Contents/share/singular/emacs/.emcs-singular to the home directory, changed singular-emacs-home-directory into the above directory whereever it was mentioned and replaced it with .emacs as it is suggested in .emacs-singular. But they I get the error: "Warning (initialization): An error occurred while loading `/Users/Me/.emacs':

Symbol's value as variable is void: /Applications/Singular.app/Contents/share/singular/emacs"

here is the file .emacs:

;; Macaulay 2 start
(load "~/.emacs-Macaulay2" t)
;; Macaulay 2 end

(setq M2-exe "/Applications/Macaulay2-1.6/bin/M2")

(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(frame-resize-pixelwise t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)

(setq load-path (cons "</Applications/Singular.app/Contents/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)

(load-file "~/.emacs-general")
Post Posted: Sat Feb 06, 2016 11:01 am
  Post subject:  Re: cannot open singular on a running emacs  Reply with quote
You can put the following code in your .emacs
Code:
(setq load-path (cons "<singular-emacs-home-directory>" load-path))
(autoload 'singular "singular"
  "Start Singular using default values." t)
(autoload 'singular-other "singular"
  "Ask for arguments and start Singular." t)


You can find more details here: http://www.singular.uni-kl.de/Manual/latest/sing_23.htm

-- VInay
Post Posted: Fri Feb 05, 2016 4:25 am
  Post subject:  cannot open singular on a running emacs  Reply with quote
I am a newbies in Singular. I just downloaded Singular4-0-2_64.dmg, mounted the image, right-ckick, show the package contents, then moved the contents folder to the Applications directory. double-clicking Contents/MacOS/Singular (or Esingular) I have Singular running in a terminal (or via emacs in a terminal). But when I try M-x singular in a running emacs, it says "cannot open load file : no such file or directory, singular". Have I installed Singular properly? I appreciate your help.

Also I must mention that I am a user of emacs for Macaulay2. For that I have changed .emacs and .emacs-Macaulay2 in order to teach emacs where to look for M2. Is there anything similar to be done for Singular? Shall I have a file .emacs-singular somewhere?

Thanks for your help.
Post Posted: Thu Feb 04, 2016 5:51 pm


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