Code Monkey home page Code Monkey logo

Comments (6)

eschulte avatar eschulte commented on August 20, 2024

the starter kit currently uses the user-login-name variable provided by Emacs. If this isn't set correctly on windows then perhaps this is a more general problem than this starter kit and an upstream solution should be tried. Can you confirm if this variable has the correct value on your system?

from emacs24-starter-kit.

corelon avatar corelon commented on August 20, 2024

Hi, I just checked that the user-login-variable returns correctly. I tried
it both with the USER variable set to %USERNAME% and without the variable
and both times the user-login-variable returns the username correctly. The
problem is that if the USER variable is not set (which is not by default on
windows) Emacs throws an error about stringp being nil which probably
happens because the value of USER is nil. The error shown is "let*: Wrong
type argument: stringp, nil"

Regards,

Nikos

On Tue, Jan 17, 2012 at 5:45 PM, Eric Schulte <
[email protected]

wrote:

the starter kit currently uses the user-login-name variable provided by
Emacs. If this isn't set correctly on windows then perhaps this is a more
general problem than this starter kit and an upstream solution should be
tried. Can you confirm if this variable has the correct value on your
system?


Reply to this email directly or view it on GitHub:

#20 (comment)

from emacs24-starter-kit.

eschulte avatar eschulte commented on August 20, 2024

Could you start Emacs with the --debug-init flag enabled, and then send
me the debug trace. I'm not sure where anything in the starter kit
would attempt to use the USER variable.

Thanks,

Nikos Tzanos
[email protected]
writes:

Hi, I just checked that the user-login-variable returns correctly. I tried
it both with the USER variable set to %USERNAME% and without the variable
and both times the user-login-variable returns the username correctly. The
problem is that if the USER variable is not set (which is not by default on
windows) Emacs throws an error about stringp being nil which probably
happens because the value of USER is nil. The error shown is "let*: Wrong
type argument: stringp, nil"

Regards,

Nikos

On Tue, Jan 17, 2012 at 5:45 PM, Eric Schulte <
[email protected]

wrote:

the starter kit currently uses the user-login-name variable provided by
Emacs. If this isn't set correctly on windows then perhaps this is a more
general problem than this starter kit and an upstream solution should be
tried. Can you confirm if this variable has the correct value on your
system?


Reply to this email directly or view it on GitHub:

#20 (comment)


Reply to this email directly or view it on GitHub:
#20 (comment)

Eric Schulte
http://cs.unm.edu/~eschulte/

from emacs24-starter-kit.

corelon avatar corelon commented on August 20, 2024

Hi again,

--debug-init did not work so I tried (setq debug-on-error t) and I got the
following output:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
expand-file-name(nil
"c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/")
(let* ((user (getenv "USER")) (org (expand-file-name (concat user ".org")
starter-kit-dir)) (el (expand-file-name (concat user ".el")
starter-kit-dir)) (dir (expand-file-name user starter-kit-dir))) (cond
((file-exists-p org) org) ((file-exists-p el) el) (t dir)))
(cons (quote file) (let* ((user (getenv "USER")) (org (expand-file-name
(concat user ".org") starter-kit-dir)) (el (expand-file-name (concat user
".el") starter-kit-dir)) (dir (expand-file-name user starter-kit-dir)))
(cond ((file-exists-p org) org) ((file-exists-p el) el) (t dir))))
(list 73 (cons (quote file) (let* ((user (getenv "USER")) (org
(expand-file-name (concat user ".org") starter-kit-dir)) (el
(expand-file-name (concat user ".el") starter-kit-dir)) (dir
(expand-file-name user starter-kit-dir))) (cond ((file-exists-p org) org)
((file-exists-p el) el) (t dir)))))
(list (list 105 (cons (quote file) (concat starter-kit-dir "init.el")))
(list 73 (cons (quote file) (let* ((user (getenv "USER")) (org
(expand-file-name (concat user ".org") starter-kit-dir)) (el
(expand-file-name (concat user ".el") starter-kit-dir)) (dir
(expand-file-name user starter-kit-dir))) (cond ((file-exists-p org) org)
((file-exists-p el) el) (t dir))))) (list 115 (cons (quote file) (concat
starter-kit-dir "starter-kit.org"))) (list 114 (cons (quote file) (concat
starter-kit-dir "starter-kit-registers.org"))))
( ((105 (file \, (concat starter-kit-dir "init.el"))) (73 (file \, (let\* ((user (getenv "USER")) (org (expand-file-name ... starter-kit-dir)) (el (expand-file-name ... starter-kit-dir)) (dir (expand-file-name user starter-kit-dir))) (cond ((file-exists-p org) org) ((file-exists-p el) el) (t dir))))) (115 (file \, (concat starter-kit-dir "starter-kit.org"))) (114 (file \, (concat starter-kit-dir "starter-kit-registers.org"))))) (let ((--cl-dolist-temp-- ( ((105 (file , (concat starter-kit-dir
"init.el"))) (73 (file , (let* ... ...))) (115 (file , (concat
starter-kit-dir "starter-kit.org"))) (114 (file , (concat starter-kit-dir "
starter-kit-registers.org")))))) r) (while --cl-dolist-temp-- (setq r (car
--cl-dolist-temp--)) (set-register (car r) (cadr r)) (setq
--cl-dolist-temp-- (cdr --cl-dolist-temp--))))
(catch (quote --cl-block-nil--) (let ((--cl-dolist-temp-- ( ((105 (file \, ...)) (73 (file \, ...)) (115 (file \, ...)) (114 (file \, ...))))) r) (while --cl-dolist-temp-- (setq r (car --cl-dolist-temp--)) (set-register (car r) (cadr r)) (setq --cl-dolist-temp-- (cdr --cl-dolist-temp--))))) (cl-block-wrapper (catch (quote --cl-block-nil--) (let ((--cl-dolist-temp-- ( ((105 ...) (73 ...) (115 ...) (114 ...)))) r)
(while --cl-dolist-temp-- (setq r (car --cl-dolist-temp--)) (set-register
(car r) (cadr r)) (setq --cl-dolist-temp-- (cdr --cl-dolist-temp--))))))
(block nil (let ((--cl-dolist-temp-- ( ((105 (file \, ...)) (73 (file \, ...)) (115 (file \, ...)) (114 (file \, ...))))) r) (while --cl-dolist-temp-- (setq r (car --cl-dolist-temp--)) (set-register (car r) (cadr r)) (setq --cl-dolist-temp-- (cdr --cl-dolist-temp--))))) (dolist (r ( ((105 (file , (concat starter-kit-dir "init.el"))) (73
(file , (let* (... ... ... ...) (cond ... ... ...)))) (115 (file ,
(concat starter-kit-dir "starter-kit.org"))) (114 (file , (concat
starter-kit-dir "starter-kit-registers.org")))))) (set-register (car r)
(cadr r)))
eval-buffer(#<buffer load<3>> nil
"c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit-registers.el"
nil t) ; Reading at buffer position 726

load-with-code-conversion("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit-registers.el"
"c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit-registers.el"
nil nil)

load("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit-registers.el"
nil nil t)

load-file("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit-registers.el")

org-babel-load-file("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/
starter-kit-registers.org")
(let ((file (expand-file-name (if (string-match "starter-kit-.+.org"
file) file (format "starter-kit-%s.org" file)) starter-kit-dir)))
(org-babel-load-file (if header-or-tag (let* ((base (file-name-nondirectory
file)) (dir (file-name-directory file)) (partial-file (expand-file-name
(concat "." ... ".part." header-or-tag ".org") dir))) (unless
(file-exists-p partial-file) (with-temp-file partial-file (insert
(with-temp-buffer ... ...)))) partial-file) file)))
starter-kit-load("starter-kit-registers.org")
eval-buffer(#<buffer load<2>> nil
"c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit.el" nil
t) ; Reading at buffer position 3314

load-with-code-conversion("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit.el"
"c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit.el" nil
nil)

load("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit.el"
nil nil t)

load-file("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/starter-kit.el")

org-babel-load-file("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/
starter-kit.org")
eval-buffer(#<buffer load> nil
"c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/init.el" nil t) ;
Reading at buffer position 519

load-with-code-conversion("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/init.el"
"c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/init.el" nil t)
load("c:/Users/nikos.tzanos.IB/AppData/Roaming/.emacs.d/e24/init.el" nil
t)
command-line-1(("-l"
"C:\Users\nikos.tzanos.IB\AppData\Roaming.emacs.d\e24\init.el"))
command-line()
normal-top-level()

I hope I helped,

Nikos

On Wed, Jan 18, 2012 at 9:18 PM, Eric Schulte <
[email protected]

wrote:

Could you start Emacs with the --debug-init flag enabled, and then send
me the debug trace. I'm not sure where anything in the starter kit
would attempt to use the USER variable.

Thanks,

Nikos Tzanos
[email protected]
writes:

Hi, I just checked that the user-login-variable returns correctly. I
tried
it both with the USER variable set to %USERNAME% and without the variable
and both times the user-login-variable returns the username correctly.
The
problem is that if the USER variable is not set (which is not by default
on
windows) Emacs throws an error about stringp being nil which probably
happens because the value of USER is nil. The error shown is "let*: Wrong
type argument: stringp, nil"

Regards,

Nikos

On Tue, Jan 17, 2012 at 5:45 PM, Eric Schulte <
[email protected]

wrote:

the starter kit currently uses the user-login-name variable provided
by
Emacs. If this isn't set correctly on windows then perhaps this is a
more
general problem than this starter kit and an upstream solution should be
tried. Can you confirm if this variable has the correct value on your
system?


Reply to this email directly or view it on GitHub:

#20 (comment)


Reply to this email directly or view it on GitHub:

#20 (comment)

Eric Schulte
http://cs.unm.edu/~eschulte/


Reply to this email directly or view it on GitHub:

#20 (comment)

from emacs24-starter-kit.

eschulte avatar eschulte commented on August 20, 2024

AH,

The USER environment variable is used in the starter-kit-registers.org file. I just pushed up a change which should fix this problem, please let me know if it persists.

Thanks,

from emacs24-starter-kit.

corelon avatar corelon commented on August 20, 2024

Problem fixed.

Thanks.

On Thu, Jan 19, 2012 at 7:09 PM, Eric Schulte <
[email protected]

wrote:

AH,

The USER environment variable is used in the starter-kit-registers.orgfile. I just pushed up a change which should fix this problem, please let
me know if it persists.

Thanks,


Reply to this email directly or view it on GitHub:

#20 (comment)

from emacs24-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.