[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 27/35: Use pr-interface when available
From: |
Matthew Fidler |
Subject: |
[elpa] 27/35: Use pr-interface when available |
Date: |
Fri, 11 Jul 2014 22:33:30 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 167ad9663796137ef8ec92b28b270f5752e2ba2e
Author: Matthew L. Fidler <address@hidden>
Date: Thu Jul 10 09:11:25 2014 -0500
Use pr-interface when available
---
ergoemacs-functions.el | 10 ++++++----
ergoemacs-themes.el | 4 +++-
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index df1612d..e430661 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -264,11 +264,13 @@ C-u C=u deletes old byte compilde `ergoemacs-mode' files."
(newline-and-indent))
(defun ergoemacs-print-buffer-confirm ()
- "Print current buffer, but ask for confirmation first."
+ "Print current buffer, but ask for confirmation first.
+If `pr-interface' is available, use that function instead."
(interactive)
- (when
- (y-or-n-p "Print current buffer? ")
- (print-buffer)))
+ (if (fboundp 'pr-interface)
+ (call-interactively 'pr-interface)
+ (when (y-or-n-p "Print current buffer? ")
+ (print-buffer))))
(defvar ergoemacs-mode)
(declare-function ergoemacs-emulations "ergoemacs-mode.el")
diff --git a/ergoemacs-themes.el b/ergoemacs-themes.el
index 3214fbf..23e5adc 100644
--- a/ergoemacs-themes.el
+++ b/ergoemacs-themes.el
@@ -1033,7 +1033,9 @@
(global-set-key [remap describe-key]
'ergoemacs-describe-key)
(global-set-key [remap describe-mode]
- 'ergoemacs-describe-major-mode)))
+ 'ergoemacs-describe-major-mode)
+ (global-set-key [remap ergoemacs-print-buffer-confirm]
+ 'pr-interface)))
(ergoemacs-theme-component ergoemacs-banish-shift ()
"Banish Shift Combinations with <apps> SPC"
- [elpa] 16/35: Add open last closed to recentf menu, (continued)
- [elpa] 16/35: Add open last closed to recentf menu, Matthew Fidler, 2014/07/11
- [elpa] 19/35: More accessible printer setup (Issue #236 and #235), Matthew Fidler, 2014/07/11
- [elpa] 17/35: Add Scroll up/down command for other window, Matthew Fidler, 2014/07/11
- [elpa] 09/35: Change startup messages, Matthew Fidler, 2014/07/11
- [elpa] 21/35: Add load path to batch byte compile, Matthew Fidler, 2014/07/11
- [elpa] 22/35: Fix byte compile warning, Matthew Fidler, 2014/07/11
- [elpa] 23/35: Start modal shift-select (Issue #215), Matthew Fidler, 2014/07/11
- [elpa] 24/35: Fix keys on web-page, Matthew Fidler, 2014/07/11
- [elpa] 18/35: Fix Issue #270, Matthew Fidler, 2014/07/11
- [elpa] 15/35: Misc Code Cleanup, Matthew Fidler, 2014/07/11
- [elpa] 27/35: Use pr-interface when available,
Matthew Fidler <=
- [elpa] 25/35: Fix Issue #271, Matthew Fidler, 2014/07/11
- [elpa] 26/35: Should display the correct key now., Matthew Fidler, 2014/07/11
- [elpa] 28/35: Another attempt to fix the webpage, Matthew Fidler, 2014/07/11
- [elpa] 30/35: Delete Frame/Close Emacs for Alt+f4, Matthew Fidler, 2014/07/11
- [elpa] 29/35: Fix webpage (tested works), Matthew Fidler, 2014/07/11
- [elpa] 32/35: browse-kill-ring-mode no longer needs work-around, Matthew Fidler, 2014/07/11
- [elpa] 31/35: ergoemacs-keyboard-quit calls 【q】 when applicable, Matthew Fidler, 2014/07/11
- [elpa] 35/35: v5.14.7.2 - Removed ergoemacs-pushnew, and use add-to-list for variables that are defined with defvar (Allows work-around of calling adjoin at runtime for emacs 24.1; Thaks to Stefan Monnier for pointing this out). - Expanded ã€ESC】 to exit modes that use ã€q】 for quitting the current operation. This includes many packages like magit and browse-kill-ring. - Expanded ã€Alt+f4】 to close the current frame when it is the only frame present. - Added Recent files menu that includes Open Last Closed ã€Ctl+⇧Shift+T】. - Changed ergoemacs-mode printing to use printing package when available. The file-menu has been replaced - The default theme is now selected automatically (Issue #269) - Show goto-line as ã€Ctl+L】, although the test doesn't work (Issue #265) - Added an option to move lines up and down with ã€Alt+up】, ã€Alt+down】 like Gedit (See #266) - Changed the emacs startup messages to reflect emacs keys (#267) - Other miscellaneous cleanups and fixes, Matthew Fidler, 2014/07/11
- [elpa] 34/35: The translations will fail :(, Matthew Fidler, 2014/07/11
- [elpa] 33/35: Defined variables use add-to-list otherwise pushnew, Matthew Fidler, 2014/07/11