From b522dcfb981d807b1dc9dbe4e4a6ffa9b4e43122 Mon Sep 17 00:00:00 2001 From: MT Date: Wed, 10 Jul 2019 23:27:06 -0400 Subject: [PATCH] Rename air-share to airshare --- app/{air-share => airshare}/buffer.py | 0 docs/HACKING.md | 4 ++-- eaf.el | 10 +++++----- eaf.py | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) rename app/{air-share => airshare}/buffer.py (100%) diff --git a/app/air-share/buffer.py b/app/airshare/buffer.py similarity index 100% rename from app/air-share/buffer.py rename to app/airshare/buffer.py diff --git a/docs/HACKING.md b/docs/HACKING.md index ff7f37a..31c3521 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -24,10 +24,10 @@ Python is a perfect language to develop Qt program and it can call pretty much i ## Let me run hello word ``` -M-x eaf-open +M-x eaf-open-demo ``` - Then type "eaf-demo" as input, will pop hello world window in emacs like below: + This will pop hello world window in emacs like below: | Demo | | :--------: | diff --git a/eaf.el b/eaf.el index 4f938d8..7e17f15 100644 --- a/eaf.el +++ b/eaf.el @@ -435,7 +435,7 @@ We need calcuate render allocation to make sure no black border around render co 'eaf-create-new-browser-buffer) (defun eaf-create-new-browser-buffer (new-window-buffer-id) - (let ((eaf-buffer (generate-new-buffer (concat "Browser popup window " new-window-buffer-id)))) + (let ((eaf-buffer (generate-new-buffer (concat "Browser Popup Window " new-window-buffer-id)))) (with-current-buffer eaf-buffer (eaf-mode) (read-only-mode) @@ -660,16 +660,16 @@ the file at current cursor position in dired." (interactive) (eaf-file-transfer-qrcode (dired-get-filename))) -(defun eaf-file-transfer-air-share () - "Open EAF Air Share application." +(defun eaf-file-transfer-airshare () + "Open EAF Airshare application." (interactive) (let* ((current-symbol (if (use-region-p) (buffer-substring-no-properties (region-beginning) (region-end)) (thing-at-point 'symbol))) - (input-string (string-trim (read-string (format "EAF-Air-SHare - Info (%s): " current-symbol))))) + (input-string (string-trim (read-string (format "EAF-Airshare - Info (%s): " current-symbol))))) (when (string-empty-p input-string) (setq input-string current-symbol)) - (eaf-open input-string "air-share") + (eaf-open input-string "airshare") )) (defun eaf-file-upload-qrcode (dir) diff --git a/eaf.py b/eaf.py index 99334e7..b4bd9f2 100755 --- a/eaf.py +++ b/eaf.py @@ -118,7 +118,7 @@ class EAF(dbus.service.Object): except ImportError: import traceback traceback.print_exc() - return "Something wrong when import {0}".format(module_path) + return "EAF: Something went wrong when trying to import {0}".format(module_path) def create_buffer(self, buffer_id, url, module_path, arguments): global emacs_width, emacs_height