unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51096: [PATCH] Remove XEmacs compat code from sql.el
@ 2021-10-08 19:09 Stefan Kangas
  2021-10-08 19:22 ` Michael Mauger via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2021-10-08 19:09 UTC (permalink / raw)
  To: 51096; +Cc: Michael Mauger

[-- Attachment #1: Type: text/plain, Size: 953 bytes --]

Severity: wishlist

The attached patch removes the XEmacs compatibility code from sql.el.

The Emacs FAQ currently has this to say:

    4.11 What was XEmacs?
    =====================

    XEmacs was a branch version of Emacs that is no longer actively
    developed.  Originally known as “Lucid Emacs”, XEmacs was forked from a
    prerelease version of Emacs 19.  XEmacs last released a new version on
    January 30, 2009, which lacks many important features that exist in
    Emacs.  Since its development has stopped, we do not expect to see any
    new releases.

       In the past, it was not uncommon for Emacs packages to include code
    for compatibility with XEmacs.  Nowadays, most built-in and third party
    packages have either stopped supporting XEmacs or were developed
    exclusively for Emacs.

IOW, this support is probably not relevant to maintain these days.

Any objections to the attached patch?

[-- Attachment #2: 0001-Remove-XEmacs-compat-code-from-sql.el.patch --]
[-- Type: text/x-diff, Size: 1835 bytes --]

From eee5301d7338aa28f0227c29687f0707c26f9a5a Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefan@marxist.se>
Date: Fri, 8 Oct 2021 21:04:04 +0200
Subject: [PATCH] Remove XEmacs compat code from sql.el

* lisp/progmodes/sql.el (sql-interactive-mode-map, sql-mode)
(sql-interactive-mode): Remove XEmacs compat code.
---
 lisp/progmodes/sql.el | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index d0e0a1154e..f55115e902 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -1352,8 +1352,6 @@ sql-is-sqli-buffer-p
 (defvar sql-interactive-mode-map
   (let ((map (make-sparse-keymap)))
     (set-keymap-parent map comint-mode-map)
-    (if (fboundp 'set-keymap-name)
-	(set-keymap-name map 'sql-interactive-mode-map)); XEmacs
     (define-key map (kbd "C-j") 'sql-accumulate-and-indent)
     (define-key map (kbd "C-c C-w") 'sql-copy-column)
     (define-key map (kbd "O") 'sql-magic-go)
@@ -4160,10 +4158,6 @@ sql-mode
 	    (modify-syntax-entry ?\\\\ \"\\\\\" sql-mode-syntax-table)))"
   :abbrev-table sql-mode-abbrev-table
 
-  (when (and (featurep 'xemacs)
-             sql-mode-menu)
-      (easy-menu-add sql-mode-menu))
-
   ;; (smie-setup sql-smie-grammar #'sql-smie-rules)
   (setq-local comment-start "--")
   ;; Make each buffer in sql-mode remember the "current" SQLi buffer.
@@ -4286,9 +4280,6 @@ sql-interactive-mode
   (setq mode-name
         (concat "SQLi[" (or (sql-get-product-feature sql-product :name)
                             (symbol-name sql-product)) "]"))
-  (when (and (featurep 'xemacs)
-             sql-interactive-mode-menu)
-    (easy-menu-add sql-interactive-mode-menu))
 
   ;; Note that making KEYWORDS-ONLY nil will cause havoc if you try
   ;; SELECT 'x' FROM DUAL with SQL*Plus, because the title of the column
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#51096: [PATCH] Remove XEmacs compat code from sql.el
  2021-10-08 19:09 bug#51096: [PATCH] Remove XEmacs compat code from sql.el Stefan Kangas
@ 2021-10-08 19:22 ` Michael Mauger via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-08 19:41   ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Mauger via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-08 19:22 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Michael Mauger, 51096

On Friday, October 8th, 2021 at 3:09 PM, Stefan Kangas <stefan@marxist.se> wrote:

> Severity: wishlist
>
> The attached patch removes the XEmacs compatibility code from sql.el.
>

> IOW, this support is probably not relevant to maintain these days.
>
> Any objections to the attached patch?

Nope, doesn't appear much to be impacted here. I haven't used XEmacs since the early 90's and have never had a request related to it.

--
MICHAEL@MAUGER.COM // FSF and EFF member // GNU Emacs sql.el maintainer





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#51096: [PATCH] Remove XEmacs compat code from sql.el
  2021-10-08 19:22 ` Michael Mauger via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-08 19:41   ` Stefan Kangas
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2021-10-08 19:41 UTC (permalink / raw)
  To: Michael Mauger; +Cc: Michael Mauger, 51096

close 51096 29.1
thanks

Michael Mauger <mmauger@protonmail.com> writes:

>> Any objections to the attached patch?
>
> Nope, doesn't appear much to be impacted here. I haven't used XEmacs
> since the early 90's and have never had a request related to it.

Thanks, I will push it to master shortly.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-08 19:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 19:09 bug#51096: [PATCH] Remove XEmacs compat code from sql.el Stefan Kangas
2021-10-08 19:22 ` Michael Mauger via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-08 19:41   ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).