unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10097: 24.0.91; Lisp mode should use common-lisp-indent-function by default
@ 2011-11-21 17:10 Helmut Eller
  2019-10-03 16:31 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Helmut Eller @ 2011-11-21 17:10 UTC (permalink / raw)
  To: 10097

Lisp mode is supposedly a "Major mode for editing Lisp code for Lisps
other than GNU Emacs Lisp".  Yet the variable lisp-indent-function
remains set to the rather Elisp oriented #'lisp-indent-function.  As
Common Lisp is the most important non-Elisp Lisp
#'common-lisp-indent-function would be a friendlier default as it gets
at least if/flet/labels right more often:

=== modified file 'lisp/emacs-lisp/lisp-mode.el'
--- lisp/emacs-lisp/lisp-mode.el	2011-09-18 20:43:20 +0000
+++ lisp/emacs-lisp/lisp-mode.el	2011-11-21 17:06:50 +0000
@@ -474,6 +474,8 @@
 Entry to this mode calls the value of `lisp-mode-hook'
 if that value is non-nil."
   (lisp-mode-variables nil t)
+  (make-local-variable 'lisp-indent-function)
+  (setq lisp-indent-function 'common-lisp-indent-function)
   (set (make-local-variable 'find-tag-default-function) 'lisp-find-tag-default)
   (make-local-variable 'comment-start-skip)
   (setq comment-start-skip



In GNU Emacs 24.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2011-11-06 on ix
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--enable-asserts' '--enable-checking' '--with-gif=no' '--with-gnutls=no' 'CFLAGS=-g3 -O0''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: nil






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

end of thread, other threads:[~2020-01-22 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-21 17:10 bug#10097: 24.0.91; Lisp mode should use common-lisp-indent-function by default Helmut Eller
2019-10-03 16:31 ` Lars Ingebrigtsen
     [not found]   ` <87ftgf2e0p.fsf@marxist.se>
2020-01-22 13:18     ` Lars Ingebrigtsen

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).