GNU bug report logs -
#35148
[PATCH] change wordstar-mode into a minor mode
Previous Next
Reported by: Mark Oteiza <mvoteiza <at> udel.edu>
Date: Thu, 4 Apr 2019 17:54:02 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35148 in the body.
You can then email your comments to 35148 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#35148
; Package
emacs
.
(Thu, 04 Apr 2019 17:54:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mark Oteiza <mvoteiza <at> udel.edu>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 04 Apr 2019 17:54:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
I recently got some testing/confirmation that this does work as
expected, so pinging the list again to ask what I should do here.
I don't have strong feelings over whether this gets nudged out of
obsolete/ or gets moved over to ELPA.
The original thread is here:
https://lists.gnu.org/archive/html/emacs-devel/2017-02/msg00467.html
On 12/02/17 at 12:32pm, Mark Oteiza wrote:
> I was poking through obsolete/ the other day and happened upon
> ws-mode.el and subsequently the thread
>
> https://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00127.html
>
> The following changes `wordstar-mode' into a minor mode, and also
> adds a global minor mode `global-wordstar-mode', which will turn on
> wordstar-mode in all buffers except the minibuffer.
>
> diff --git a/lisp/obsolete/ws-mode.el b/lisp/obsolete/ws-mode.el
> index 62cccf725a..f977bc089e 100644
> --- a/lisp/obsolete/ws-mode.el
> +++ b/lisp/obsolete/ws-mode.el
> @@ -1,4 +1,4 @@
> -;;; ws-mode.el --- WordStar emulation mode for GNU Emacs
> +;;; ws-mode.el --- WordStar emulation mode for GNU Emacs -*- lexical-binding: t -*-
>
> ;; Copyright (C) 1991, 2001-2017 Free Software Foundation, Inc.
>
> @@ -24,9 +24,20 @@
>
> ;;; Commentary:
>
> -;; This emulates WordStar, with a major mode.
> +;; This provides emulation of WordStar with a minor mode.
>
> ;;; Code:
> +
> +(defgroup wordstar nil
> + "WordStar emulation within Emacs."
> + :prefix "wordstar-"
> + :prefix "ws-"
> + :group 'emulations)
> +
> +(defcustom wordstar-mode-lighter " WordStar"
> + "Lighter shown in the modeline for `wordstar' mode."
> + :type 'string)
> +
> (defvar wordstar-C-k-map
> (let ((map (make-keymap)))
> (define-key map " " ())
> @@ -98,8 +109,7 @@ wordstar-C-o-map
> (define-key map "wh" 'split-window-right)
> (define-key map "wo" 'other-window)
> (define-key map "wv" 'split-window-below)
> - map)
> - "")
> + map))
>
> (defvar wordstar-C-q-map
> (let ((map (make-keymap)))
> @@ -174,12 +184,9 @@ wordstar-mode-map
> ;; wordstar-C-j-map not yet implemented
> (defvar wordstar-C-j-map nil)
>
> -
> -(put 'wordstar-mode 'mode-class 'special)
> -
> ;;;###autoload
> -(define-derived-mode wordstar-mode fundamental-mode "WordStar"
> - "Major mode with WordStar-like key bindings.
> +(define-minor-mode wordstar-mode
> + "Minor mode with WordStar-like key bindings.
>
> BUGS:
> - Help menus with WordStar commands (C-j just calls help-for-help)
> @@ -189,8 +196,18 @@ wordstar-mode
> - Search and replace (C-q a) is only available in forward direction
>
> No key bindings beginning with ESC are installed, they will work
> -Emacs-like.")
> -
> +Emacs-like."
> + :group 'wordstar
> + :lighter wordstar-mode-lighter
> + :keymap wordstar-mode-map)
> +
> +(defun turn-on-wordstar-mode ()
> + (when (and (not (minibufferp))
> + (not wordstar-mode))
> + (wordstar-mode 1)))
> +
> +(define-globalized-minor-mode global-wordstar-mode wordstar-mode
> + turn-on-wordstar-mode)
>
> (defun wordstar-center-paragraph ()
> "Center each line in the paragraph at or after point.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#35148
; Package
emacs
.
(Sun, 21 Apr 2019 16:35:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Bumping for attention. I'll push this in a few days or so otherwise.
On 04/04/19 at 01:53pm, Mark Oteiza wrote:
> Hi,
>
> I recently got some testing/confirmation that this does work as
> expected, so pinging the list again to ask what I should do here.
> I don't have strong feelings over whether this gets nudged out of
> obsolete/ or gets moved over to ELPA.
>
> The original thread is here:
> https://lists.gnu.org/archive/html/emacs-devel/2017-02/msg00467.html
>
> On 12/02/17 at 12:32pm, Mark Oteiza wrote:
> > I was poking through obsolete/ the other day and happened upon
> > ws-mode.el and subsequently the thread
> >
> > https://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00127.html
> >
> > The following changes `wordstar-mode' into a minor mode, and also
> > adds a global minor mode `global-wordstar-mode', which will turn on
> > wordstar-mode in all buffers except the minibuffer.
> >
> > diff --git a/lisp/obsolete/ws-mode.el b/lisp/obsolete/ws-mode.el
> > index 62cccf725a..f977bc089e 100644
> > --- a/lisp/obsolete/ws-mode.el
> > +++ b/lisp/obsolete/ws-mode.el
> > @@ -1,4 +1,4 @@
> > -;;; ws-mode.el --- WordStar emulation mode for GNU Emacs
> > +;;; ws-mode.el --- WordStar emulation mode for GNU Emacs -*- lexical-binding: t -*-
> >
> > ;; Copyright (C) 1991, 2001-2017 Free Software Foundation, Inc.
> >
> > @@ -24,9 +24,20 @@
> >
> > ;;; Commentary:
> >
> > -;; This emulates WordStar, with a major mode.
> > +;; This provides emulation of WordStar with a minor mode.
> >
> > ;;; Code:
> > +
> > +(defgroup wordstar nil
> > + "WordStar emulation within Emacs."
> > + :prefix "wordstar-"
> > + :prefix "ws-"
> > + :group 'emulations)
> > +
> > +(defcustom wordstar-mode-lighter " WordStar"
> > + "Lighter shown in the modeline for `wordstar' mode."
> > + :type 'string)
> > +
> > (defvar wordstar-C-k-map
> > (let ((map (make-keymap)))
> > (define-key map " " ())
> > @@ -98,8 +109,7 @@ wordstar-C-o-map
> > (define-key map "wh" 'split-window-right)
> > (define-key map "wo" 'other-window)
> > (define-key map "wv" 'split-window-below)
> > - map)
> > - "")
> > + map))
> >
> > (defvar wordstar-C-q-map
> > (let ((map (make-keymap)))
> > @@ -174,12 +184,9 @@ wordstar-mode-map
> > ;; wordstar-C-j-map not yet implemented
> > (defvar wordstar-C-j-map nil)
> >
> > -
> > -(put 'wordstar-mode 'mode-class 'special)
> > -
> > ;;;###autoload
> > -(define-derived-mode wordstar-mode fundamental-mode "WordStar"
> > - "Major mode with WordStar-like key bindings.
> > +(define-minor-mode wordstar-mode
> > + "Minor mode with WordStar-like key bindings.
> >
> > BUGS:
> > - Help menus with WordStar commands (C-j just calls help-for-help)
> > @@ -189,8 +196,18 @@ wordstar-mode
> > - Search and replace (C-q a) is only available in forward direction
> >
> > No key bindings beginning with ESC are installed, they will work
> > -Emacs-like.")
> > -
> > +Emacs-like."
> > + :group 'wordstar
> > + :lighter wordstar-mode-lighter
> > + :keymap wordstar-mode-map)
> > +
> > +(defun turn-on-wordstar-mode ()
> > + (when (and (not (minibufferp))
> > + (not wordstar-mode))
> > + (wordstar-mode 1)))
> > +
> > +(define-globalized-minor-mode global-wordstar-mode wordstar-mode
> > + turn-on-wordstar-mode)
> >
> > (defun wordstar-center-paragraph ()
> > "Center each line in the paragraph at or after point.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#35148
; Package
emacs
.
(Sun, 23 Jun 2019 17:46:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 35148 <at> debbugs.gnu.org (full text, mbox):
Mark Oteiza <mvoteiza <at> udel.edu> writes:
> Bumping for attention. I'll push this in a few days or so otherwise.
This was apparently done, so I'm now closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 23 Jun 2019 17:47:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
35148 <at> debbugs.gnu.org and Mark Oteiza <mvoteiza <at> udel.edu>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 23 Jun 2019 17:47:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 22 Jul 2019 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 277 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.