[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ergoemacs-mode 543bc98 78/87: Silence ergoemacs-functio
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ergoemacs-mode 543bc98 78/87: Silence ergoemacs-functions byte compile warnings |
Date: |
Wed, 14 Apr 2021 18:47:12 -0400 (EDT) |
branch: externals/ergoemacs-mode
commit 543bc9829c6896751e73628a633fa85517a9d95a
Author: Matthew Fidler <514778+mattfidler@users.noreply.github.com>
Commit: Matthew Fidler <514778+mattfidler@users.noreply.github.com>
Silence ergoemacs-functions byte compile warnings
---
ergoemacs-functions.el | 12 +++++-------
ergoemacs-macros.el | 14 ++++++++++++++
2 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index 257148a..30994db 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -1593,9 +1593,7 @@ by `ergoemacs-maximum-number-of-files-to-open'.
(when do-it
(cond
((eq system-type 'windows-nt)
- (dolist (f-path my-file-list)
- (w32-shell-execute
- "open" (replace-regexp-in-string "/" "\\" f-path t t))))
+ (ergoemacs :w32-shell-open-files my-file-list))
((eq system-type 'darwin)
(dolist (f-path my-file-list)
(shell-command (format "open \"%s\"" f-path))))
@@ -1609,7 +1607,7 @@ by `ergoemacs-maximum-number-of-files-to-open'.
(interactive)
(cond
((eq system-type 'windows-nt)
- (w32-shell-execute "explore" (replace-regexp-in-string "/" "\\"
default-directory t t)))
+ (ergoemacs :w32-shell-execute "explore" (replace-regexp-in-string "/" "\\"
default-directory t t)))
((eq system-type 'darwin) (shell-command "open ."))
((eq system-type 'gnu/linux)
(let ((process-connection-type nil))
@@ -2434,7 +2432,7 @@ Guillemet -> quote, degree -> @, s-zed -> ss, upside-down
?! -> ?!."
((eq major-mode 'eshell-mode) "*eshell@")
(t (replace-regexp-in-string "\\([*][^@]*[@]\\).*" "\\1"
(buffer-name) t)))
(if (eq system-type 'windows-nt)
- (w32-long-file-name (abbreviate-file-name
default-directory)) ;; Fix case issues
+ (ergoemacs :w32-long-file-name (abbreviate-file-name
default-directory)) ;; Fix case issues
(abbreviate-file-name default-directory)) "*")))
(unless (string= nbn (buffer-name))
(setq nbn (generate-new-buffer-name nbn))
@@ -2475,7 +2473,7 @@ Sends shell prompt string to process, then turns on
(let* ((shell (or shell-program 'shell))
(buf-prefix (or buffer-prefix (symbol-name shell)))
(name (concat "*" buf-prefix "@" (if (eq system-type 'windows-nt)
- (w32-long-file-name
(abbreviate-file-name default-directory)) ;; Fix case issues
+ (ergoemacs :w32-long-file-name
(abbreviate-file-name default-directory)) ;; Fix case issues
(abbreviate-file-name
default-directory)) "*")))
(set-buffer (get-buffer-create name))
(funcall shell name)))
@@ -2499,7 +2497,7 @@ Sends shell prompt string to process, then turns on
(interactive)
(let* ((eshell-buffer-name
(concat "*eshell@" (if (eq system-type 'windows-nt)
- (w32-long-file-name (abbreviate-file-name
default-directory)) ;; Fix case issues
+ (ergoemacs :w32-long-file-name
(abbreviate-file-name default-directory)) ;; Fix case issues
(abbreviate-file-name default-directory)) "*"))
(eshell-exists-p (get-buffer eshell-buffer-name)))
(if eshell-exists-p
diff --git a/ergoemacs-macros.el b/ergoemacs-macros.el
index b2f9d4a..5c82e7b 100644
--- a/ergoemacs-macros.el
+++ b/ergoemacs-macros.el
@@ -852,6 +852,20 @@ When arg1 can be a property. The following properties are
supported:
(arg3 (nth 2 args))
(arg4 (nth 3 args)))
(cond
+ ((and arg1 (symbolp arg1) (eq arg1 :w32-long-file-name))
+ (if (fboundp 'w32-long-file-name)
+ `(w32-long-file-name ,@(cdr args))
+ `nil))
+ ((and arg1 (symbolp arg1) (eq arg1 :w32-shell-open-files))
+ (if (fboundp 'w32-shell-execute)
+ `(dolist (f-path ,@(cdr args))
+ (w32-shell-execute
+ "open" (replace-regexp-in-string "/" "\\" f-path t t)))
+ `nil))
+ ((and arg1 (symbolp arg1) (eq arg1 :w32-shell-execute))
+ (if (fboundp 'w32-shell-execute)
+ `(w32-shell-execute ,@(cdr args))
+ `nil))
((and arg1 (symbolp arg1) (eq arg1 :reset-prefix))
(if (<= 25 emacs-major-version)
`(prefix-command-preserve-state)
- [elpa] externals/ergoemacs-mode ea9b60f 71/87: Make the bash bindings work, (continued)
- [elpa] externals/ergoemacs-mode ea9b60f 71/87: Make the bash bindings work, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 72b0292 72/87: Make ergoemacs-handle-ctl-c-or-ctl-x==only-C-c-and-C-x work, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode bd805c3 80/87: More suppression of warnings, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 081fcbd 84/87: Fix #503, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode f3f7b10 42/87: Add keyboard layout; See Issue #462, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 67e8c66 60/87: Merge pull request #494 from wlandry/master, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 823b73a 32/87: Added Portuguese QWERTY keyboard layout., Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 9a5b97f 57/87: Removed commented out code, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode a5d4665 50/87: Remove emojify-emojify-mode-line mu4e-update-mail-and-index from modify, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode b61ece8 74/87: Merge remote-tracking branch 'elpa/externals/ergoemacs-mode', Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 543bc98 78/87: Silence ergoemacs-functions byte compile warnings,
Stefan Monnier <=
- [elpa] externals/ergoemacs-mode f9d6e3f 87/87: Bring over some more emacs mainatiner fixes, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode cac7b56 51/87: Fix (string-match-p error), Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode f3f4bf0 75/87: Revert "Merge remote-tracking branch 'elpa/externals/ergoemacs-mode'", Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode dde41b4 81/87: Fix some more warnings and test icy stuff only when icy is there, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode dc9c567 83/87: Add back the highlighting of the end key, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 7df155e 40/87: Don't refresh the package contents. See #452, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode dfb5a43 48/87: Add key to fix Issue #470, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 78e8d55 85/87: Fix regression with #503, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode e6edcbe 15/87: Remove prefix switching to command loop., Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 6ec72c0 86/87: Go back to ergoemacs-display-key-use-face (suggestion from emacs devs), Stefan Monnier, 2021/04/14