branch: externals/eev commit afc2a0cfe4fe462e74e5c6fe17282f46bf3dbdec Author: Eduardo Ochs <eduardoo...@gmail.com> Commit: Eduardo Ochs <eduardoo...@gmail.com>
Fixed a few bugs related to eev-wconfig.el. --- ChangeLog | 8 ++++++++ VERSION | 4 ++-- eev-blinks.el | 3 ++- eev-pdflike.el | 4 +++- eev-wconfig.el | 61 +++++++++++++++++++++++++++++++++++++++++++++++----------- eev.el | 2 +- 6 files changed, 66 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7574b604de..0b2278546d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2022-06-05 Eduardo Ochs <eduardoo...@gmail.com> + + * eev-blinks.el (ee-find-eejumps-header): added a pointer to + `(find-elisp-intro)'. + + * eev-wconfig.el (find-wconfig-lua-links): added a section on + Python. + 2022-06-01 Eduardo Ochs <eduardoo...@gmail.com> * eev-load.el (eev-beginner): tell the autoload for `eev-beginner' diff --git a/VERSION b/VERSION index 0e73f0477e..0384bbfcd2 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -Thu Jun 2 03:45:31 GMT 2022 -Thu Jun 2 00:45:31 -03 2022 +Sun Jun 5 23:03:36 GMT 2022 +Sun Jun 5 20:03:36 -03 2022 diff --git a/eev-blinks.el b/eev-blinks.el index 11b0d2535f..df487b8045 100644 --- a/eev-blinks.el +++ b/eev-blinks.el @@ -21,7 +21,7 @@ ;; ;; Author: Eduardo Ochs <eduardoo...@gmail.com> ;; Maintainer: Eduardo Ochs <eduardoo...@gmail.com> -;; Version: 20220507 +;; Version: 20220605 ;; Keywords: e-scripts ;; ;; Latest version: <http://angg.twu.net/eev-current/eev-blinks.el> @@ -1450,6 +1450,7 @@ Hint: install the Debian package \"unicode-data\".") ;; M-1 M-j runs: (find-fline \"~/TODO\") ;; M-2 M-1 M-j shows the file ~/TODO in the right window ;; M-3 M-1 M-j opens ~/TODO in the right window +;; M-7 M-j runs: (find-elisp-intro) ;; Current eejump targets:\n\n") (defun ee-find-eejumps-body () diff --git a/eev-pdflike.el b/eev-pdflike.el index 25fe6f1f80..e12443a967 100644 --- a/eev-pdflike.el +++ b/eev-pdflike.el @@ -189,6 +189,7 @@ ;; «.find-djvutxt-text» (to "find-djvutxt-text") ;; «.find-firefox-page» (to "find-firefox-page") ;; «.find-googlechrome-page» (to "find-googlechrome-page") +;; «.ee-fname-page-to-url» (to "ee-fname-page-to-url") ;; ;; «.aliases» (to "aliases") ;; «.code-brxxxs» (to "code-brxxxs") @@ -1041,8 +1042,9 @@ may want to put here code that cleans up that page information.") ;;; | |_) | | | (_) \ V V /\__ \ __/ | \__ \ ;;; |____/|_| \___/ \_/\_/ |___/\___|_| |___/ ;;; -;; «find-firefox-page» (to ".find-firefox-page") +;; «find-firefox-page» (to ".find-firefox-page") ;; «find-googlechrome-page» (to ".find-googlechrome-page") +;; «ee-fname-page-to-url» (to ".ee-fname-page-to-url") ;; ;; Some browsers can open a PDF file "/tmp/foo.pdf" at page 42 if we ;; add a "#page=42" to its URL - i.e., if we ask them to open the URL diff --git a/eev-wconfig.el b/eev-wconfig.el index 8811f3e0bf..8aa80e129a 100644 --- a/eev-wconfig.el +++ b/eev-wconfig.el @@ -19,7 +19,7 @@ ;; ;; Author: Eduardo Ochs <eduardoo...@gmail.com> ;; Maintainer: Eduardo Ochs <eduardoo...@gmail.com> -;; Version: 20220530 +;; Version: 20220605 ;; Keywords: e-scripts ;; ;; Latest version: <http://angg.twu.net/eev-current/eev-wconfig.el> @@ -148,18 +148,18 @@ ;; «.intro» (to "intro") ;; «.usage» (to "usage") ;; «.find-wconfig-links» (to "find-wconfig-links") -;; «.find-wconfig-browser-links» (to "find-wconfig-browser-links") -;; «.find-wconfig-wget-links» (to "find-wconfig-wget-links") -;; «.find-wconfig-shell-links» (to "find-wconfig-shell-links") -;; «.find-wconfig-lua-links» (to "find-wconfig-lua-links") -;; «.find-wconfig-mpv-links» (to "find-wconfig-mpv-links") +;; «.find-wconfig-browser-links» (to "find-wconfig-browser-links") +;; «.find-wconfig-wget-links» (to "find-wconfig-wget-links") +;; «.find-wconfig-shell-links» (to "find-wconfig-shell-links") +;; «.find-wconfig-lua-links» (to "find-wconfig-lua-links") +;; «.find-wconfig-mpv-links» (to "find-wconfig-mpv-links") ;; -;; «.find-wconfig-magic-links» (to "find-wconfig-magic-links") -;; «.ee-wconfig-run-magic» (to "ee-wconfig-run-magic") +;; «.find-wconfig-magic-links» (to "find-wconfig-magic-links") +;; «.ee-wconfig-run-magic» (to "ee-wconfig-run-magic") ;; -;; «.find-wconfig-exercises-links» (to "find-wconfig-exercises-links") +;; «.find-wconfig-exercises-links» (to "find-wconfig-exercises-links") ;; -;; «.find-wconfig-undo-links» (to "find-wconfig-undo-links") +;; «.find-wconfig-undo-links» (to "find-wconfig-undo-links") @@ -690,7 +690,43 @@ for k,v in pairs(_G) do print(k) end -;; 3. Save some configs in your init file +;; 3. Other languages: Python +;; ========================== +;; If you have Python installed, please test the block below... +;; According to these messages in help-gnu-emacs, +;; https://lists.gnu.org/archive/html/help-gnu-emacs/2022-06/msg00019.html +;; https://lists.gnu.org/archive/html/help-gnu-emacs/2022-06/msg00020.html +;; https://lists.gnu.org/archive/html/help-gnu-emacs/2022-06/msg00022.html +;; on Windows Python needs \"-u\" and \"-i\" to work as a REPL in Eshell. + + (eepitch-shell) + (eepitch-kill) + (eepitch-shell) +python3 -u -i +print(2+3) + +;; If that worked - i.e., if after the print(2+3) you got a \"5\" +;; and another prompt - then try to redefine `eepitch-python' with: + +(defun eepitch-python () (interactive) + (eepitch-comint \"python3\" \"python3 -u -i\")) + +;; ...and test if this works. Note that here we send four lines to +;; the Python REPL: a definition for the function \"square\", a +;; blank line, and a test that calls \"square\". + + (eepitch-python) + (eepitch-kill) + (eepitch-python) +def square (x): + return x*x + +print(square(5)) + + + + +;; 4. Save some configs in your init file ;; ====================================== ;; This is similar to: (find-wconfig-browser-links 2 \"4. Save\") ;; Save the block below - including the comments - to your ~/.emacs: @@ -704,6 +740,8 @@ for k,v in pairs(_G) do print(k) end (eepitch-comint \"lua53.exe\" \"~/eev-wconfig/lua53.exe -i\")) (defun eepitch-lua54 () (interactive) (eepitch-comint \"lua54.exe\" \"~/eev-wconfig/lua54.exe -i\")) +(defun eepitch-python () (interactive) + (eepitch-comint \"python3\" \"python3 -u -i\")) ") ) @@ -1031,6 +1069,7 @@ See the variable `ee-wconfig-magic-code'." (defun eepitch-lua52 () (interactive) (eepitch-comint \"lua52\" \"lua5.2\")) (defun eepitch-lua53 () (interactive) (eepitch-comint \"lua53\" \"lua5.3\")) (defun eepitch-lua54 () (interactive) (eepitch-comint \"lua54\" \"lua5.4\")) +(defun eepitch-python () (interactive) (eepitch-comint \"python3\" \"python3\")) ) ") diff --git a/eev.el b/eev.el index 34fd063497..d1a3cdb152 100644 --- a/eev.el +++ b/eev.el @@ -6,7 +6,7 @@ ;; Package-Requires: ((emacs "24.4")) ;; Keywords: lisp e-scripts ;; URL: http://angg.twu.net/#eev -;; Version: 20220531 +;; Version: 20220605 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by