[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42397: [PATCH 11/14] * lisp/obsolete/longlines.el: Use proper outlin
From: |
Jonas Bernoulli |
Subject: |
bug#42397: [PATCH 11/14] * lisp/obsolete/longlines.el: Use proper outline headings. |
Date: |
Thu, 16 Jul 2020 16:54:53 +0200 |
This library already used section headings but it used just two
instead of three semicolons, making them indistinguishable from
plain comments. One heading is new.
---
lisp/obsolete/longlines.el | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/lisp/obsolete/longlines.el b/lisp/obsolete/longlines.el
index 2fba49f402..11e167aa18 100644
--- a/lisp/obsolete/longlines.el
+++ b/lisp/obsolete/longlines.el
@@ -38,6 +38,8 @@
;;; Code:
+;;; Options
+
(defgroup longlines nil
"Automatic wrapping of long lines when loading files."
:group 'fill)
@@ -76,7 +78,7 @@ longlines-show-effect
:group 'longlines
:type 'string)
-;; Internal variables
+;;; Internal variables
(defvar longlines-wrap-beg nil)
(defvar longlines-wrap-end nil)
@@ -90,7 +92,7 @@ longlines-decoded
(make-variable-buffer-local 'longlines-showing)
(make-variable-buffer-local 'longlines-decoded)
-;; Mode
+;;; Mode
(defvar message-indent-citation-function)
@@ -210,7 +212,7 @@ longlines-mode-off
major mode changes."
(longlines-mode 0))
-;; Showing the effect of hard newlines in the buffer
+;;; Showing the effect of hard newlines in the buffer
(defun longlines-show-hard-newlines (&optional arg)
"Make hard newlines visible by adding a face.
@@ -252,7 +254,7 @@ longlines-unshow-hard-newlines
(setq pos (text-property-not-all (1+ pos) (point-max) 'hard nil)))
(restore-buffer-modified-p mod)))
-;; Wrapping the paragraphs.
+;;; Wrapping the paragraphs
(defun longlines-wrap-region (beg end)
"Wrap each successive line, starting with the line before BEG.
@@ -402,7 +404,7 @@ longlines-encode-string
(setq pos (string-match "\n" str (1+ pos))))
str))
-;; Auto wrap
+;;; Auto wrap
(defun longlines-auto-wrap (&optional arg)
"Toggle automatic line wrapping.
@@ -457,7 +459,7 @@ longlines-window-change-function
(setq fill-column (- (window-width) dw))
(longlines-wrap-region (point-min) (point-max)))))
-;; Isearch
+;;; Isearch
(defun longlines-search-function ()
(cond
@@ -477,7 +479,7 @@ longlines-re-search-forward
(let ((search-spaces-regexp " *[ \n]"))
(re-search-forward string bound noerror count)))
-;; Loading and saving
+;;; Loading and saving
(defun longlines-before-revert-hook ()
(add-hook 'after-revert-hook 'longlines-after-revert-hook nil t)
@@ -492,7 +494,7 @@ longlines-after-revert-hook
(list 'longlines "Automatically wrap long lines." nil nil
'longlines-encode-region t nil))
-;; Unloading
+;;; Unloading
(defun longlines-unload-function ()
"Unload the longlines library."
--
2.26.0
- bug#42397: [PATCH 01/14] ; * lisp/epg.el (epg-signature-to-string): Use cl-case., (continued)
- bug#42397: [PATCH 01/14] ; * lisp/epg.el (epg-signature-to-string): Use cl-case., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 02/14] ; * lisp/epg.el (epg-signature-to-string): Tiny refactor., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 03/14] ; * lisp/epg.el (epg-no-data-reason-alist): Fix typo in message., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 04/14] * lisp/epa.el (epa--derived-mode-p): Remove unnecessary alias., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 05/14] Split EasyPG libraries into outline sections, Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 06/14] * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Fix indentation., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 07/14] * lisp/progmodes/compile.el: Remove unnecessary comments., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 08/14] ; * lisp/whitespace.el: Capitalize "Code" section heading., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 09/14] * lisp/mail/smtpmail.el: Use outline headings., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 10/14] * test/src/emacs-module-tests.el: Use proper outline headings., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 11/14] * lisp/obsolete/longlines.el: Use proper outline headings.,
Jonas Bernoulli <=
- bug#42397: [PATCH 12/14] * lisp/net/imap.el: Use proper outline headings, Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 13/14] * lisp/font-lock.el: Split the Commentary into subsections., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 14/14] * lisp/font-lock.el: No longer mark each end of a section explicitly., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 14/14] * lisp/font-lock.el: No longer mark each end of a section explicitly., Eli Zaretskii, 2020/07/16
- bug#42397: [PATCH 06/14] * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Fix indentation., Eli Zaretskii, 2020/07/16
- bug#42397: [PATCH 06/14] * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Fix indentation., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 06/14] * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Fix indentation., Robert Pluim, 2020/07/16
- bug#42397: [PATCH 06/14] * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Fix indentation., Jonas Bernoulli, 2020/07/16
- bug#42397: [PATCH 06/14] * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Fix indentation., Noam Postavsky, 2020/07/16
- bug#42397: [PATCH 06/14] * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Fix indentation., Jonas Bernoulli, 2020/07/16