Commit Graph

98 Commits

Author SHA1 Message Date
ee91748613 Document doom-cleanup-hook 2018-07-07 13:14:50 +02:00
537cc9e1ed Rewrite doom-real-buffer-p; require first arg
Because of how widely used this function is, I'd rather it be as
explicit as possible to avoid bugs and to make it faster.
2018-06-30 01:57:51 +02:00
70230b0892 Add doom-unreal-buffer-p predicate function 2018-06-30 01:57:51 +02:00
f3aadf6c77 Fix doom-temp-buffer-p & doom-real-buffer-p
A regression caused the former to error out (if the buffer name was less
than 2 characters long) and the latter to return t too eagerly (because
of an incorrect condition chain).
2018-06-17 02:30:02 +02:00
ec6372ef66 Mark all temp buffers as unreal
Hopefully there are no plugins that use temp buffers to display things!
2018-06-16 21:02:54 +02:00
bf44c1abcc Add doom-temp-buffer-p predicate function 2018-06-16 21:02:40 +02:00
3027ed2f7f Add new doom|mark-buffer-as-real hook to term/eshell
This is simpler (and perhaps faster) than doom-real-buffer-functions.
Better to reserve that for more complex logic.
2018-06-04 21:17:49 +02:00
d2ca6f65b3 doom/cleanup-session: don't kill modified buffers 2018-05-30 23:06:13 +02:00
d0f8bf402a doom-visible-windows: support visible window-parameter 2018-05-15 01:31:40 +02:00
326763ab3d doom/cleanup-processes => doom/cleanup-buffer-processes 2018-03-23 16:01:46 -04:00
f064c5d1ae Change doom/kill-all-buffers behavior (C-u = only kill project buffers) 2018-03-23 16:01:35 -04:00
358d7af9ac doom/kill-all-buffers: reduce redundancy 2018-03-22 06:31:16 -04:00
7542f4a660 Fix doom-visible-windows including popup windows 2018-03-01 22:07:14 -05:00
139a0c8045 Fix kill-buffer arguments. 2018-02-10 19:36:06 +03:00
414383e5f4 Remove vestigial references to doom/{next,previous}-buffer 2018-02-04 05:05:40 -05:00
d1953e00c4 Remove doom--cycle-real-buffers; refactor kill-this-buffer advice
cycle-real-buffers was a tidbit of complexity that was never necessary
in the first place. This functionality was already available in the form
of the frame buffer-predicate parameter, which controls where functions
like next-buffer and other-buffer can land you.

The only thing I have to do myself, is check for the condition where
there are no more real buffers left to switch to, and in that case send
you to the fallback-buffer.
2018-02-02 20:47:31 -05:00
ca262f5e4e Rename doom-fallback-buffer (variable) => doom-fallback-buffer-name 2018-02-01 20:06:00 -05:00
7b2bbb973a Improve real-buffer function docstrings 2018-02-01 20:04:54 -05:00
2989296521 Use frame's buffer-predicate instead of doom/{next,previous}-buffer
doom/{next,previous}-buffer was implemented so that these commands could
skip over unreal buffers, and land us on either a real one or the
dashboard. Using the frame's buffer-predicate parameter accomplishes
exactly this, natively.
2018-02-01 19:58:43 -05:00
8b19e35ef6 Consider dired-mode buffers real 2018-01-28 20:37:40 -05:00
b57c2e2264 Disarm doom/cleanup-session's oppressive regime
It killed buffers a little too indiscriminantly.
2018-01-08 19:36:02 -05:00
4bd74d9653 Fix doom-cleanup-hook breaking if hook didn't return an integer 2018-01-07 15:03:45 -05:00
88f8c27a7d Fix doom/cleanup-session & +workspaces|cleanup-unassociated-buffers
Resolve void n variable errors and silent message.
2018-01-04 16:16:44 -05:00
ab0223144c Refactor doom/cleanup-session & corresponding evil command 2018-01-04 16:14:50 -05:00
8e875bfa0e Phase out doom-kill-buffer 2018-01-04 03:01:35 -05:00
ecc8051378 Refactor doom/kill-all-buffers & decouple from core-popup 2018-01-04 03:01:35 -05:00
00cc57a2bd doom--cycle-real-buffers: if n=0, switch to fallback buffer 2018-01-04 03:01:35 -05:00
fa72e8d09b Simplify doom-buried-buffers & doom-real-buffer-list 2018-01-04 03:01:35 -05:00
e9a012af34 doom-visible-windows: fix predicate for 'popup window' 2018-01-04 03:01:35 -05:00
8e7b822062 Remove core-popup coupling
New popup management system coming soon!
2018-01-03 03:44:34 -05:00
e0c8e6daef New doom-unreal-buffer-functions function & doom-real-buffer-p spec 2018-01-03 03:38:35 -05:00
3d5d1b65b3 Move misplaced doom--buffer-narrowed-origin to correct place 2018-01-03 03:32:19 -05:00
2b56fe081c Improve docstring for doom-real-buffer-functions 2018-01-01 16:59:42 -05:00
707b69540d doom/cleanup-buffers => doom/cleanup-session 2017-12-30 00:59:44 -05:00
61df57b86a Refactor core/autoload/buffers.el 2017-12-30 00:58:58 -05:00
f61d7c9e7f doom-force-kill-buffer => doom/kill-this-buffer-in-all-windows 2017-12-30 00:55:44 -05:00
0c06514c6f doom-narrow-buffer renamed to doom/narrow-buffer and moved 2017-12-29 22:29:57 -05:00
5bd361cbc4 Stop 'Nowhere left to go!' spam; lighten up Emacs! 2017-12-28 22:08:19 -05:00
60e8f6297e doom-kill-buffer: extract protect-visible-buffers logic
Protecting buffers that were visible in other windows (burying them
instead) is not the responsibility of doom-kill-buffer. This is a job
for kill-buffer-query-functions, hence doom|protect-visible-buffers.
2017-12-28 22:06:22 -05:00
ca56d08dd9 Fix stale mode-line after switching buffers 2017-12-28 21:42:33 -05:00
9a71a73538 General, minor refactor 2017-12-27 18:19:33 -05:00
71c0c96b60 Remove unused project-root in doom--cycle-real-buffers 2017-12-27 13:36:20 -05:00
bee9259096 ui/doom-dashboard: add +doom-dashboard-pwd-policy option #309
Gives the user control over how the dashboard's default-directory is
set. The default is to set it to the project root of the last open
buffer.
2017-12-27 13:24:18 -05:00
e024144f4f Add doom-cleanup-hook to doom/cleanup-buffers 2017-12-26 19:27:14 -05:00
76a4ae459d Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
cf7b27f4eb popups: :fixed => :static, major changes to popup API
+ New command: doom/popup-kill-all
+ Update references to :fixed (now named :static)
+ Simplified doom-popup-p; moved :static filtering to
  doom-popup-windows.
+ New :autofit popup property, which resizes the popup to fit its
  content, if possible.
+ doom-popup-windows now takes one boolean argument: whether to ignore
  static popups or not.
2017-09-26 20:37:08 +02:00
e1d5e48d46 Fix unchanging dashboard cwd when switched to 2017-09-26 20:37:07 +02:00
51fa99996d Update+improve doom buffer library docstrings 2017-09-24 19:18:26 +02:00
9b0d333a66 Close popups in doom/kill-all-buffers 2017-09-24 18:40:50 +02:00
3fcbdae441 Make doom-project-{p,root} functions simpler
+ doom-project-root and doom-project-p no longer takes arguments
+ Remove doom*project-root advice
2017-09-20 01:33:31 +02:00