Skip to content

Exposing mahogany's REPL #159

@jcguu95

Description

@jcguu95

Mahogany is a common lisp application, so one should control it by hopping into its repl. The following achieved that for stumpwm easily, and it should work with mahogany with very slight changes.

My question is whether this should be in mahogany, or should we just teach the users in the documentation?

I think it is better to keep mahogany to its absolute essentials, which makes the maintenance much easier in the long run. The cool functionalities can be equally realized with contribs or config examples.

(defcommand slynk (port) ((:string "Port number: "))
  (sb-thread:make-thread
   (lambda ()
     (slynk:create-server :port (parse-integer port) :dont-close t))
   :name (format nil "manual slynk port ~s" port))
  (message "Port ~s opened." port))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions