1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-16 10:50:07 +00:00
Commit graph

10 commits

Author SHA1 Message Date
akinnane
08da19e3fd emacs: revert cab1ac6e68 (#7765)
Revert cab1ac6e68

The change from the above commit breaks opening a new emacs frame if
there isn't a existing frame open.

When emacs is running in daemon mode, there will always be a frame
associated with the daemon, even if there are no visible frames.

The lisp function `frame-list`, will always return 1 frame.
```
emacsclient --eval '(frame-list)'
(#<frame F1 0xa3c680>)
```

When an real frame is open, two frames are reported by the `frame-list`
function.
```
emacsclient --eval '(frame-list)'
(#<frame F1 0xa3c680> #<frame emacs Prelude - ~/oh-my-zsh/plugins/emacs/emacsclient.sh 0xf50e10>)
```

See:
https://emacs.stackexchange.com/questions/44537/extra-frame-in-visible-frame-list-when-started-in-daemon-mode-is-causing-prob
https://emacs.stackexchange.com/questions/18859/dont-let-the-daemon-frame-make-a-file-visible
2019-04-14 12:31:52 +02:00
Marc Cornellà
cab1ac6e68
emacs: use open frame if there is one present
Fixes #5779
Fixes #5405
2019-04-09 19:01:10 +02:00
soredake
eb244d9ec0 Update emacs plugin. (#5201)
- Updated minimal version from 23 to 24.
- Added new aliases that fix unexpected close with -nw option.
- Removed some old aliases.
- Fixed line that detects open frames.
2016-07-19 00:20:59 +02:00
hjpotter92
909fcef046 Fix issue with dash as the default /bin/sh script executing program. (#5177)
* `function` keyword removed
 * Fixup the `if` statement and operators
2016-06-20 21:15:55 +02:00
Jordan Gwyn
d7c06131a2 emacs plugin tweak to open buffer from stdin (#5126) 2016-06-17 12:12:59 +02:00
Jan Ehrhardt
c451ff4bf3 Add check for display list equals nil
Emacs returns either a sequence of availbale displays or nil. Checking
nil fixes this script to work as expected.
2014-03-24 12:10:18 +01:00
Tristan Carel
3a408f326f Comment 2011-10-10 18:04:13 +02:00
Tristan Carel
49c0a1381a - Fix pass of parameters
- Add new function `ecd'.
2011-04-15 18:13:01 +02:00
Tristan Carel
a183bcbc6d More comments 2011-04-14 07:17:10 +02:00
Tristan Carel
2fba4486bf Add new plugin emacs, to take benefit of daemon capabilities of emacs >=23 2011-04-13 17:34:51 +02:00