[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/j-mode 41218f6 10/56: Doc-string updates
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/j-mode 41218f6 10/56: Doc-string updates |
Date: |
Sun, 29 Aug 2021 11:20:45 -0400 (EDT) |
branch: elpa/j-mode
commit 41218f698aee5924f9b5e73572ca7cb7236216d8
Author: Zachary Elliott <zach@nyu.edu>
Commit: Zachary Elliott <zach@nyu.edu>
Doc-string updates
---
j-mode.el | 37 ++++++++++++++++++++++++++-----------
1 file changed, 26 insertions(+), 11 deletions(-)
diff --git a/j-mode.el b/j-mode.el
index c14d589..b853e7b 100644
--- a/j-mode.el
+++ b/j-mode.el
@@ -5,7 +5,7 @@
;;
;; Authors: Zachary Elliott <ZacharyElliott1@gmail.com>
;; URL: http://github.com/zellio/j-mode
-;; Version: 0.0.7
+;; Version: 0.0.8
;; Keywords: J, Langauges
;; This file is not part of GNU Emacs.
@@ -38,7 +38,7 @@
(require 'comint)
-(defconst j-mode-version "0.0.7"
+(defconst j-mode-version "0.0.8"
"`j-mode' version")
(defgroup j-mode nil
@@ -57,6 +57,9 @@
:group 'j-)
(defmacro build-faces ( &rest faces )
+ "Allows for easy defining of multiple faces in one command.
+
+ (BUILD-FACES (FACE-NAME FACE-RULES DOCS-STR &optional GROUP) ...)"
`(eval-when-compile
,@(mapcan (lambda ( x )
(let* ((name (car x))
@@ -97,7 +100,7 @@
"Keymap for J major mode")
-(defvar j-mode-menu nil "")
+(defvar j-mode-menu nil "Drop-down menu for j-mode interaction")
(easy-menu-define j-mode-menu j-mode-map "J Mode menu"
'("J"
["Start J Console" j-console t]
@@ -208,7 +211,10 @@
(defun j-font-lock-syntactic-face-function (state)
- (if (nth 3 state) font-lock-string-face ;; String Context
+ "Function for detection of string vs. Comment Note: J comments
+are three chars longs, there is no easy / evident way to handle
+this in emacs and it poses problems"
+ (if (nth 3 state) font-lock-string-face
(let* ((start-pos (nth 8 state)))
(and (<= (+ start-pos 3) (point-max))
(eq (char-after start-pos) ?N)
@@ -242,28 +248,29 @@
(defcustom j-cmd "jconsole"
- ""
+ "Name of the executable used to start a J session."
:type 'string
:group 'j-)
(defcustom j-cmd-args '()
- ""
+ "Arguments to be passed to the j-cmd command on start."
:type 'string
:group 'j-)
-(defcustom j-cmd-conf nil
- ""
+(defcustom j-cmd-init nil
+ "Full path to file who's contents are sent to the j-cmd on start."
:type 'string
:group 'j-)
(defcustom j-cmd-buffer-name "J"
- ""
+ "Name of the buffer which contains the j-cmd session."
:type 'string
:group 'j-)
(defun j-create-interpreter ()
+ "Starts a comint session using the various j-cmd variables"
(setq comint-process-echoes t)
- (apply 'make-comint j-cmd-buffer-name j-cmd j-cmd-conf j-cmd-args)
+ (apply 'make-comint j-cmd-buffer-name j-cmd j-cmd-init j-cmd-args)
(add-hook
'comint-preoutput-filter-functions
(lambda ( output )
@@ -272,18 +279,23 @@
output))))
(defun j-ensure-interpreter ()
+ "Checks for a running j-cmd comint session.
+Will start a new one if a session isn't found."
(or (get-process j-cmd-buffer-name)
(progn
(j-create-interpreter)
(get-process j-cmd-buffer-name))))
-(defmacro defun-wp ( name label args interactive &rest body )
+(defmacro defun-wp ( name label args docstring interactive &rest body )
+ "Simplifies working with `j-ensure-interpreter'"
`(defun ,name ,args
+ ,docstring
,interactive
(let* ((,@label (j-ensure-interpreter)))
,@body)))
(defun-wp j-execute-line ( interpreter ) ()
+ "Sends current line to the j-cmd session and exectues it"
(interactive)
(let* ((line (buffer-substring-no-properties (point-at-bol)
(point-at-eol))))
@@ -293,6 +305,7 @@
(comint-send-input)))
(defun-wp j-execute-region (interpreter) (start end)
+ "Sends current region to the j-cmd session and exectues it"
(interactive "r")
(and (= start end) (error "Region is empty"))
(let* ((region (buffer-substring-no-properties start end))
@@ -304,11 +317,13 @@
(comint-send-input)))
(defun j-execute-buffer ()
+ "Sends current buffer to the j-cmd session and exectues it"
(interactive)
(j-execute-region (point-min) (point-max)))
;;;###autoload
(defun j-console ()
+ "Ensures a running j-cmd session and switches focus to that buffer"
(interactive)
(switch-to-buffer-other-window (process-buffer (j-ensure-interpreter))))
- [nongnu] branch elpa/j-mode created (now e8725ac), ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode ad688ee 01/56: Initial code base, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 01e8c39 02/56: Removing todo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode cedc335 04/56: Updates to face macro, to j-console handling. Added key-bindings, added drop down., ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode ebf94ae 03/56: Added the beginning of j-console integration, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 14327d8 05/56: Adding font-lock for variable assignment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode c6865b5 07/56: Initial commit for help documentation look-up functionality., ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 529cf67 06/56: Swaping progn with eval-when-compile in faces macro, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode d6fd35d 08/56: Updating README with information about the new faces added from j-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 41218f6 10/56: Doc-string updates,
ELPA Syncer <=
- [nongnu] elpa/j-mode 140c2b6 12/56: Updated README and cleaned up docs a bit, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 50b6ad1 13/56: Updating doc strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode f4ede4b 18/56: Fixing unbalanced parenthesis, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 2e1ffe7 17/56: Merge branch 'modulate' of github.com:zellio/j-mode into modulate, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 0bf1acd 35/56: Fix "\\." (Suffix / Outfix) for `j-help-voc-alist', ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 0d2ba51 26/56: Adding warning about executable name clash with a Java package, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 3509c2d 15/56: Added branch search function for more intelligent symbol detection, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode b470f04 19/56: Removing the -> macro, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode 94a4d08 16/56: 1.0.0 Release, ELPA Syncer, 2021/08/29
- [nongnu] elpa/j-mode bd38533 36/56: Add "!." (Fit / Customize) to `j-help-voc-alist', ELPA Syncer, 2021/08/29