A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jcs-emacs/jcs-emacs/commit/0b7e91a56c34c5c3b4c74aa04dae029154899cb2 below:

Use kill-current-buffer command instead · jcs-emacs/jcs-emacs@0b7e91a · GitHub

File tree Expand file treeCollapse file tree 9 files changed

+18

-18

lines changed

Filter options

Expand file treeCollapse file tree 9 files changed

+18

-18

lines changed Original file line number Diff line number Diff line change

@@ -130,7 +130,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

130 130

* Add clear filter key for `package-menu` mode ([`bf36721`](../../commit/bf36721805a48b6319bd5eb1b9064129af293560))

131 131

* Load `eask-api` when in valid Eask related project ([`5644b51`](../../commit/5644b5128cb1f132b9b552cc745377be8528b435))

132 132

* Add new package `editorconfig-generate` ([`afd3fa0`](../../commit/afd3fa07135fd9154b551fffb20822316cf4e3d7))

133 -

* Bind key `C-M-k` to `kill-this-buffer` ([`758c464`](../../commit/758c464dfe76bad0053ce82f4064f382a1ae4ac3))

133 +

* Bind key `C-M-k` to `kill-current-buffer` ([`758c464`](../../commit/758c464dfe76bad0053ce82f4064f382a1ae4ac3))

134 134

* Remove `buffer-menu` feature on display project name ([`74feaa9`](../../commit/74feaa938d4be1667bab1c1f68308f8c6a250208))

135 135

* Use macro to define `file-header` insertion functions ([`e5e2006`](../../commit/e5e200684f25325c70906a53a84f526328bc6fbf))

136 136

* Re-define file header source with utility macro ([`ca4d8e4`](../../commit/ca4d8e49ba80f78bd34ff610a442c8a8bf7bc097))

@@ -1769,7 +1769,7 @@ on the second window in the current frame. Notice this is only a temporary fixed

1769 1769

* Ensure python tab width is 4 instead of default of 8.

1770 1770

* Remove load todo, load log and insert-timeofday command functions.

1771 1771

* Use defense programming in current char string util function.

1772 -

* Added is-killed returned value to jcs-maybe-kill-this-buffer util function.

1772 +

* Added is-killed returned value to jcs-maybe-kill-current-buffer util function.

1773 1773

* Fixed jcs' count window util function.

1774 1774

* Fixed re-builder's maybe kill this buffer function using is-killed variable.

1775 1775

* Implements python return function => jcs-python-func.el.

@@ -1812,7 +1812,7 @@ on the second window in the current frame. Notice this is only a temporary fixed

1812 1812

value.

1813 1813

* Added indent-info package and it's config.

1814 1814

* Fixed insert header only when buffer-file-name variable available.

1815 -

* Fixed bug by adding percise check => jcs-maybe-kill-this-buffer function

1815 +

* Fixed bug by adding percise check => jcs-maybe-kill-current-buffer function

1816 1816

in jcs-edit.el file.

1817 1817

* Implements check how many times the same buffer shown in different windows

1818 1818

=> jcs-buffer-showns function in jcs-window.el file.

Original file line number Diff line number Diff line change

@@ -38,13 +38,13 @@

38 38

(interactive)

39 39

(jcs-switch-to-buffer-other-window (messages-buffer)))

40 40 41 -

(defun jcs-messages-maybe-kill-this-buffer ()

41 +

(defun jcs-messages-maybe-kill-current-buffer ()

42 42

"Erase the *Messages* buffer."

43 43

(interactive)

44 44

;; Message one message to retrieve `*Message*' buffer prepare for next use.

45 45

;; Or else it some operation might prompt some issue that needed `*Message*'

46 46

;; buffer to be exists.

47 -

(when (jcs-maybe-kill-this-buffer)

47 +

(when (jcs-maybe-kill-current-buffer)

48 48

(message ".") (jcs-messages-erase-buffer)))

49 49 50 50

(defun jcs-messages-erase-buffer ()

Original file line number Diff line number Diff line change

@@ -118,7 +118,7 @@

118 118

((kbd "C-b") . treemacs) ; `VS Code'

119 119 120 120

;;; File editing

121 -

((kbd "M-k") . jcs-maybe-kill-this-buffer)

121 +

((kbd "M-k") . jcs-maybe-kill-current-buffer)

122 122

((kbd "M-K") . jcs-reopen-this-buffer)

123 123

((kbd "C-M-k") . kill-current-buffer)

124 124

@@ -402,7 +402,7 @@

402 402

;; ---

403 403 404 404

(jcs-key messages-buffer-mode-map

405 -

`(("\ek" . jcs-messages-maybe-kill-this-buffer)

405 +

`(("\ek" . jcs-messages-maybe-kill-current-buffer)

406 406

("\eK" . jcs-messages-erase-buffer)))

407 407 408 408

(jcs-key minibuffer-local-map

Original file line number Diff line number Diff line change

@@ -339,16 +339,16 @@

339 339

;; For instance, any `*helm-' buffers.

340 340

(jcs-bury-diminished-buffer))

341 341 342 -

(defun jcs-kill-this-buffer ()

342 +

(defun jcs-kill-current-buffer ()

343 343

"Kill this buffer."

344 344

(interactive)

345 345

(jcs-lsp-maybe-shutdown)

346 -

(kill-this-buffer)

346 +

(kill-current-buffer)

347 347

(jcs-project--track-open-projects)

348 348

;; If still in the buffer menu, try switch to the previous buffer.

349 349

(when (jcs-buffer-menu-p) (switch-to-prev-buffer)))

350 350 351 -

(defun jcs-maybe-kill-this-buffer (&optional ecp-same)

351 +

(defun jcs-maybe-kill-current-buffer (&optional ecp-same)

352 352

"Kill buffer if the current buffer is the only shown in one window.

353 353

Otherwise just switch to the previous buffer to keep the buffer.

354 354

@@ -369,10 +369,10 @@ other window."

369 369

(jcs-bury-buffer)

370 370

(when (and must-kill-p (not multiple-p))

371 371

(setq is-killed t)

372 -

(with-current-buffer cur-buf (kill-this-buffer))))

372 +

(with-current-buffer cur-buf (kill-current-buffer))))

373 373

;; (2) Else, we kill it!

374 374

(t

375 -

(jcs-kill-this-buffer)

375 +

(jcs-kill-current-buffer)

376 376

(setq is-killed t)

377 377 378 378

;; NOTE: After kill the buffer, if the buffer appear in multiple windows

Original file line number Diff line number Diff line change

@@ -2,9 +2,9 @@

2 2 3 3

(use-package hexl-mode

4 4

:bind ( :map hexl-mode-map

5 -

("M-k" . jcs-maybe-kill-this-buffer)

5 +

("M-k" . jcs-maybe-kill-current-buffer)

6 6

("M-K" . jcs-reopen-this-buffer)

7 -

("C-M-k" . kill-this-buffer)

7 +

("C-M-k" . kill-current-buffer)

8 8 9 9

("C-k C-p" . package-list-packages)

10 10

("C-S-x" . package-list-packages)))

Original file line number Diff line number Diff line change

@@ -20,7 +20,7 @@

20 20 21 21

(jcs-add-hook 'diff-mode-hook

22 22

(jcs-key-local

23 -

`(((kbd "M-k") . jcs-maybe-kill-this-buffer)

23 +

`(((kbd "M-k") . jcs-maybe-kill-current-buffer)

24 24

((kbd "M-K") . jcs-reopen-this-buffer))))

25 25 26 26

(jcs-add-hook '(gitattributes-mode-hook gitconfig-mode-hook gitignore-mode-hook)

Original file line number Diff line number Diff line change

@@ -19,7 +19,7 @@

19 19

'jcs-insert-swift-template)

20 20 21 21

(jcs-key-local

22 -

`(((kbd "M-k") . jcs-maybe-kill-this-buffer))))

22 +

`(((kbd "M-k") . jcs-maybe-kill-current-buffer))))

23 23 24 24

;;

25 25

;; (@* "Extensions" )

Original file line number Diff line number Diff line change

@@ -2,4 +2,4 @@

2 2 3 3

(use-package browse-kill-ring

4 4

:bind ( :map browse-kill-ring-mode-map

5 -

("<escape>" . kill-this-buffer)))

5 +

("<escape>" . kill-current-buffer)))

Original file line number Diff line number Diff line change

@@ -8,7 +8,7 @@

8 8 9 9

(use-package execrun

10 10

:init

11 -

(setq execrun-kill-buffer-function #'jcs-maybe-kill-this-buffer)

11 +

(setq execrun-kill-buffer-function #'jcs-maybe-kill-current-buffer)

12 12 13 13

(message-clean-mode-add-echo-commands '( execrun-compile)))

14 14

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4