Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elscreen-start fails #6

Open
sanderboer opened this issue Nov 1, 2013 · 4 comments
Open

elscreen-start fails #6

sanderboer opened this issue Nov 1, 2013 · 4 comments

Comments

@sanderboer
Copy link

emacs 24.3 on windows.

elscreen-start fails with "wrong type argument consp, nil"

I tried to eval elscreen.el bit by bit, this function fails with this error:

(defun elscreen-mode-line-update ()
(when (elscreen-screen-modified-p 'elscreen-mode-line-update)
(setq elscreen-mode-line-string
(format "[%d]" (elscreen-get-current-screen)))
(force-mode-line-update)))

(let ((point (memq 'mode-line-position mode-line-format))
(elscreen-mode-line-elm '(elscreen-display-screen-number
(" " elscreen-mode-line-string))))
(when (null (member elscreen-mode-line-elm mode-line-format))
(setcdr point (cons elscreen-mode-line-elm (cdr point)))))

@zenzike
Copy link

zenzike commented Nov 10, 2013

I'm also getting this problem on emacs 24.3.1 running on OSX: moving (elscreen-start) to near the beginning of my .emacs script fixed this.

@Eagleeye777
Copy link

Same here

@nispio
Copy link

nispio commented Jul 24, 2015

This error happened to me too when I modified my mode-line-format. Currently, elscreen assumes that mode-line-format contains mode-line-position at some point. I fixed it by waiting to modify my mode-line until after running elscreen-start.

This issue could probably be fixed in elscreen fairly easily. I'm willing to propose a solution if @knu would consider pulling it.

@aki-s
Copy link

aki-s commented Dec 12, 2015

@nispio @knu
Just changing https://github.com/knu/elscreen/blob/master/elscreen.el#L1297
to
(when (and (null (member elscreen-mode-line-elm mode-line-format)) point)
seems to be the best answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants