unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* align.el bugfix patch
@ 2002-04-30  3:09 Karl Chen
  0 siblings, 0 replies; only message in thread
From: Karl Chen @ 2002-04-30  3:09 UTC (permalink / raw)


A bug in align.el's `align-region' causes it to die on large regions. The
call to `message' is missing an argument, plus it doesn't correctly
determine if a variable has a symbol name or not.

Diff fix to version 21.1 below.

--
Karl


*** .backup/align.el.~1~ Mon Oct 22 21:19:57 2001
--- align.el Mon Apr 29 19:53:50 2002
***************
*** 1413,1422 ****
     ;; are, if it's a very large region being
     ;; aligned
     (if report
!        (let ((name (symbol-name (car rule))))
!          (if name
        (message
         "Aligning `%s' (rule %d of %d) %d%%..."
         rule-index rule-count
         (/ (* (- (point) real-beg) 100)
            (- end-mark real-beg)))
--- 1413,1423 ----
     ;; are, if it's a very large region being
     ;; aligned
     (if report
!        (let ((symbol (car rule)))
!          (if (and symbol (symbolp symbol))
        (message
         "Aligning `%s' (rule %d of %d) %d%%..."
+                                    (symbol-name symbol)
         rule-index rule-count
         (/ (* (- (point) real-beg) 100)
            (- end-mark real-beg)))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-30  3:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-30  3:09 align.el bugfix patch Karl Chen

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