Re: GNU Emacs picolisp-mode

2018-11-12 Thread Henrik Sarvell
Hi Alex,

I don't know, too many changes too long ago, I have to do a diff against
the one in the standard release and see if I can detect something weird
first.

On Sun, Oct 7, 2018 at 12:42 PM Alexander Burger 
wrote:

> Hi all,
>
> On Sat, Oct 06, 2018 at 12:36:27AM +0700, Henrik Sarvell wrote:
> > I attached my slightly modified version.
>
> Is it something we should put into the standard release?
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: GNU Emacs picolisp-mode

2018-10-09 Thread Tedd M. V.
Henrik Sarvell  writes:

> I attached my slightly modified version.

Cool, thank you! ;-)

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GAT d- s+:+ a? C UL P+ L+++ E+ W+++ N+ o-- K+ w 
O-- M- V- PS++ PE Y+ PGP++ t+ 5 X+ R tv- b+++ DI-- D+ 
G++ e* h! r- z* 
--END GEEK CODE BLOCK--

GPG: 37219EA0D04C8D3C
Keybase: tmv
Ring: tmv
Cryptocat: tmv
Bitmessage: BM-2cSx4RVaXbRvWmPtRsdoW25f8wipSMVRAG
Signal: Upon request | Bajo solicitación


signature.asc
Description: PGP signature


Re: GNU Emacs picolisp-mode

2018-10-05 Thread Henrik Sarvell
I attached my slightly modified version.

On Wed, Sep 12, 2018 at 3:57 AM Tedd M. V.  wrote:

> Hello people, I'm sorry if I'm really confused but I'm just starting to
> learn picolisp, reading the tutorial the 'emacs'-style, but at the very
> beggining I saw this:
>
>
> "If you prefer to use Emacs, please use the picolisp-mode bundled in the
> "el/" directory (that is "@lib/el" for a local installation, or some
> system dependent directory for a global installation)."
>
>
> I imply that somewhere in the installation a .el file for emacs (to be
> places on your folder .emacs.d and added to your .emacs) is present and
> that it's not the same 'emacs'-style mode. Am I correct? So, if I am, I
> installed picolisp in Ubuntu, where can I find that file? I used whereis
> in the terminal but nowhere in a "/lib/" folder is something .el. Could
> someone please help use this emacs mode please? I'm more used to emacs.
>
> If it does not come in the binary installation, where in the source code
> do I get it?
>
> Thanks for your time,
> Tedd M. V.
>
> --
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12
> GAT d- s+:+ a? C UL P+ L+++ E+ W+++ N+ o-- K+ w
> O-- M- V- PS++ PE Y+ PGP++ t+ 5 X+ R tv- b+++ DI-- D+
> G++ e* h! r- z*
> --END GEEK CODE BLOCK--
>
> GPG: 37219EA0D04C8D3C
> Keybase: tmv
> Ring: tmv
> Cryptocat: tmv
> Bitmessage: BM-2cSx4RVaXbRvWmPtRsdoW25f8wipSMVRAG
> Signal: Upon request | Bajo solicitación
>
>
>
;; picolisp-mode: Major mode to edit picoLisp.
;; Version: 1.1

;;; Copyright (c) 2009, Guillermo R. Palavecino

;; This file is NOT part of GNU emacs.

 Credits:
;; It's based on GNU emacs' lisp-mode and scheme-mode.
;; Some bits were taken from paredit.el
;;
 Contact:
;; For comments, bug reports, questions, etc, you can contact me via IRC
;; to the user named grpala (or armadillo) on irc.freenode.net in the
;; #picolisp channel or via email to the author's nickname at gmail.com
;;
 License:
;; This work is released under the GPL 2 or (at your option) any later
;; version.

(require 'lisp-mode)

(defcustom picolisp-parsep t
  "This is to toggle picolisp-mode's multi-line s-exps closing parens separation capability."
  :type 'boolean
  :group 'picolisp )

;; I know... this shouldn't be here, but you see, people may want to keep
;; their body-indent value unaltered and have a different one for picolisp
;; sources, so...
(defcustom picolisp-body-indent 3
  "Number of columns to indent the second line of a `(de ...)' form."
  :group 'picolisp
  :type 'integer )

(defvar picolisp-mode-syntax-table
  (let ((st (make-syntax-table))
(i 0) )

;; Default is atom-constituent.
(while (< i 256)
  (modify-syntax-entry i "_   " st)
  (setq i (1+ i)) )

;; Word components.
(setq i ?0)
(while (<= i ?9)
  (modify-syntax-entry i "w   " st)
  (setq i (1+ i)) )
(setq i ?A)
(while (<= i ?Z)
  (modify-syntax-entry i "w   " st)
  (setq i (1+ i)) )
(setq i ?a)
(while (<= i ?z)
  (modify-syntax-entry i "w   " st)
  (setq i (1+ i)) )

;; Whitespace
(modify-syntax-entry ?\t "" st)
(modify-syntax-entry ?\n ">   " st)
(modify-syntax-entry ?\f "" st)
(modify-syntax-entry ?\r "" st)
(modify-syntax-entry ?\s "" st)

;; These characters are delimiters but otherwise undefined.
;; Brackets and braces balance for editing convenience.
(modify-syntax-entry ?\[ "(]  " st)
(modify-syntax-entry ?\] ")[  " st)
(modify-syntax-entry ?{  "(}  " st)
(modify-syntax-entry ?}  "){  " st)

;; Other atom delimiters
(modify-syntax-entry ?\( "()  " st)
(modify-syntax-entry ?\) ")(  " st)
;; It's used for single-line comments.
(modify-syntax-entry ?#  "<   " st)
(modify-syntax-entry ?\" "\"   " st)
(modify-syntax-entry ?'  "'   " st)
(modify-syntax-entry ?`  "'   " st)
(modify-syntax-entry ?~  "'   " st)

;; Special characters
(modify-syntax-entry ?,  "'   " st)
(modify-syntax-entry ?\\ "\\   " st)
st ) )

(defvar picolisp-mode-abbrev-table nil)
(define-abbrev-table 'picolisp-mode-abbrev-table ())

(defun picolisp-mode-variables ()
  (set-syntax-table picolisp-mode-syntax-table)
  ;;(setq local-abbrev-table picolisp-mode-abbrev-table)
  (make-local-variable 'paragraph-start)
  (setq paragraph-start (concat "$\\|" page-delimiter))
  ;;(setq comint-input-ring-file-name "~/.pil_history")

  (make-local-variable 'paragraph-separate)
  (setq paragraph-separate paragraph-start)

  (make-local-variable 'paragraph-ignore-fill-prefix)
  (setq paragraph-ignore-fill-prefix t)

  (make-local-variable 'fill-paragraph-function)
  (setq fill-paragraph-function 'lisp-fill-paragraph)
  ;; Adaptive fill mode gets in the way of auto-fill,
  ;; and should make no difference for explicit fill
  ;; because lisp-fill-paragraph should do the job.
  (make-local-variable 'adaptive-fill-mode)
  (setq adaptive-fill-mode nil)

  (make-local-variable 

Re: GNU Emacs picolisp-mode

2018-09-12 Thread Tedd M. V.
Thorsten Jolitz  writes:

> tmv...@cryptolab.net (Tedd M. V.) writes:
>
>> Hello people, I'm sorry if I'm really confused but I'm just starting to
>> learn picolisp, reading the tutorial the 'emacs'-style, but at the very
>> beggining I saw this:
>>
>>
>> "If you prefer to use Emacs, please use the picolisp-mode bundled in the
>> "el/" directory (that is "@lib/el" for a local installation, or some
>> system dependent directory for a global installation)."
>>
>>
>> I imply that somewhere in the installation a .el file for emacs (to be
>> places on your folder .emacs.d and added to your .emacs) is present and
>> that it's not the same 'emacs'-style mode. Am I correct? So, if I am, I
>> installed picolisp in Ubuntu, where can I find that file? I used whereis
>> in the terminal but nowhere in a "/lib/" folder is something .el. Could
>> someone please help use this emacs mode please? I'm more used to emacs.
>>
>> If it does not come in the binary installation, where in the source code
>> do I get it?
>>
>> Thanks for your time,
>> Tedd M. V.
>
> Hallo Tedd,
> Picolisp has a different philosophy than Emacs, i.e. the pure Unix
> philosophy 'one tool for one task' (more or less), while Emacs is more
> 'one tool for all tasks'.
>
> So PicoLisp comes with a line editor for writing single command lines
> like in a shell. When you want to do text editing, you call an editor
> like vim via (edit ...), when finished with editing, you go back to you
> command line (line editor).
>
> This line editor uses vim keybindings, but you can set it to emacs style
> bindings by doing once:
>
> :pil -em +
>
> or
>
> : pil +
> :(em)
>
> The picolisp emacs mode is something else, normally its for Emacs users
> who like to stay all the time in their favorite editor Emacs, that has
> different editing modes for different programming languages.
> You should have the .el files necessary in you picolisp distribution, if
> not, look on my github accout tj64 for them.

That was exactly my doubbt, 'maybe, somehow I'm confusing the emacs style line
editor moder'. And also user Simon Saville show me that the files are
there by default, duh!

> cheers,
> Thorsten

Thanks a lot! Very helpful :)
Tedd M. V.

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GAT d- s+:+ a? C UL P+ L+++ E+ W+++ N+ o-- K+ w 
O-- M- V- PS++ PE Y+ PGP++ t+ 5 X+ R tv- b+++ DI-- D+ 
G++ e* h! r- z* 
--END GEEK CODE BLOCK--

GPG: 37219EA0D04C8D3C
Keybase: tmv
Ring: tmv
Cryptocat: tmv
Bitmessage: BM-2cSx4RVaXbRvWmPtRsdoW25f8wipSMVRAG
Signal: Upon request | Bajo solicitación


signature.asc
Description: PGP signature


Re: GNU Emacs picolisp-mode

2018-09-12 Thread Simon Saville
Hi Ted,
I use a debian installed picolisp, along with emacs, and it's all
setup to work by the packages.
To find which files are included with your package try 'dpkg -L picolisp'.
For debian the important files are:-
/etc/emacs/site-start.d/50picolisp.el
/usr/share/emacs/site-lisp/picolisp/*
So 'picolisp-mode' is available to use, as is the inferior-picolisp
I realise that there are probably differences in packaging between
debian & ubuntu, but they both use the same dpkg system.
This might help you find out what's going on. Maybe, drop a note to
the package maintainer?
Simon
On Tue, 11 Sep 2018 at 21:58, Tedd M. V.  wrote:
>
> Hello people, I'm sorry if I'm really confused but I'm just starting to
> learn picolisp, reading the tutorial the 'emacs'-style, but at the very
> beggining I saw this:
>
>
> "If you prefer to use Emacs, please use the picolisp-mode bundled in the
> "el/" directory (that is "@lib/el" for a local installation, or some
> system dependent directory for a global installation)."
>
>
> I imply that somewhere in the installation a .el file for emacs (to be
> places on your folder .emacs.d and added to your .emacs) is present and
> that it's not the same 'emacs'-style mode. Am I correct? So, if I am, I
> installed picolisp in Ubuntu, where can I find that file? I used whereis
> in the terminal but nowhere in a "/lib/" folder is something .el. Could
> someone please help use this emacs mode please? I'm more used to emacs.
>
> If it does not come in the binary installation, where in the source code
> do I get it?
>
> Thanks for your time,
> Tedd M. V.
>
> --
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12
> GAT d- s+:+ a? C UL P+ L+++ E+ W+++ N+ o-- K+ w
> O-- M- V- PS++ PE Y+ PGP++ t+ 5 X+ R tv- b+++ DI-- D+
> G++ e* h! r- z*
> --END GEEK CODE BLOCK--
>
> GPG: 37219EA0D04C8D3C
> Keybase: tmv
> Ring: tmv
> Cryptocat: tmv
> Bitmessage: BM-2cSx4RVaXbRvWmPtRsdoW25f8wipSMVRAG
> Signal: Upon request | Bajo solicitación
>
>

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe