comparison lisp/textmodes/two-column.el @ 38436:b174db545cfd

Some fixes to follow coding conventions.
author Pavel Janík <Pavel@Janik.cz>
date Mon, 16 Jul 2001 12:23:00 +0000
parents 9f63b158eb6b
children a19197c6442f
comparison
equal deleted inserted replaced
38435:a9102b5472f0 38436:b174db545cfd
2 2
3 ;; Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc. 3 ;; Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
4 4
5 ;; Author: Daniel Pfeiffer <occitan@esperanto.org> 5 ;; Author: Daniel Pfeiffer <occitan@esperanto.org>
6 ;; Adapted-By: ESR, Daniel Pfeiffer 6 ;; Adapted-By: ESR, Daniel Pfeiffer
7
8 ;; This file is part of GNU Emacs.
7 9
8 ;; Esperanto: English: 10 ;; Esperanto: English:
9 11
10 ;; ^Ci dosiero estas ero de GNU Emacs. This file is part of GNU Emacs. 12 ;; ^Ci dosiero estas ero de GNU Emacs. This file is part of GNU Emacs.
11 13
31 ;; Alikaze skribu al la COPYING. If not, write to the 33 ;; Alikaze skribu al la COPYING. If not, write to the
32 34
33 ;; Free Software Foundation, 59 Temple Place - Suite 330 35 ;; Free Software Foundation, 59 Temple Place - Suite 330
34 ;; Boston, MA 02111-1307, USA. 36 ;; Boston, MA 02111-1307, USA.
35 37
38 ;;; Commentary:
36 39
37 ;;; Komentario: Commentary: 40 ;;; Komentario: Commentary:
38 41
39 ;; Tiu programaro ebligas vin redakti This package gives you the ability 42 ;; Tiu programaro ebligas vin redakti This package gives you the ability
40 ;; dukolumnan tekston. to edit text in a two-column format. 43 ;; dukolumnan tekston. to edit text in a two-column format.
282 ;; The other variables may later be useful if the user 285 ;; The other variables may later be useful if the user
283 ;; reestablishes the association. 286 ;; reestablishes the association.
284 (kill-local-variable '2C-mode) 287 (kill-local-variable '2C-mode)
285 (kill-local-variable 'mode-line-format) 288 (kill-local-variable 'mode-line-format)
286 nil))) 289 nil)))
287 (if req (error "You must first set two-column minor mode.")))) 290 (if req (error "You must first set two-column minor mode"))))
288 291
289 292
290 293
291 ;; function for setting up two-column minor mode in a buffer associated 294 ;; function for setting up two-column minor mode in a buffer associated
292 ;; with the buffer pointed to by the marker other. 295 ;; with the buffer pointed to by the marker other.
383 (save-excursion 386 (save-excursion
384 (setq 2C-mode nil) 387 (setq 2C-mode nil)
385 (set-buffer b2) 388 (set-buffer b2)
386 (and (2C-other) 389 (and (2C-other)
387 (not (eq b1 (2C-other))) 390 (not (eq b1 (2C-other)))
388 (error "Buffer already associated with buffer `%s'." 391 (error "Buffer already associated with buffer `%s'"
389 (buffer-name (2C-other)))) 392 (buffer-name (2C-other))))
390 (setq b1 (and (assq '2C-window-width (buffer-local-variables)) 393 (setq b1 (and (assq '2C-window-width (buffer-local-variables))
391 2C-window-width))) 394 2C-window-width)))
392 ; if other buffer has a local width, adjust here too 395 ; if other buffer has a local width, adjust here too
393 (if b1 (setq 2C-window-width (- (frame-width) b1))) 396 (if b1 (setq 2C-window-width (- (frame-width) b1)))