emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* fill-paragraph running slowly in org mode
@ 2014-07-12 18:18 Sean Markan
  2014-07-16 13:34 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Markan @ 2014-07-12 18:18 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi all,

I just upgraded to a new version of Linux/emacs/org-mode, and am finding
that fill-paragraph (M-q) runs very slowly in org-mode on large files.
With about 50k lines in the buffer, fill-paragraph takes around 3 seconds
even if the paragraph is only a couple lines.  (The behavior is correct,
the problem is just the slowness.)  The time seems to scale linearly with
the number of lines in the buffer as if the whole file is being processed
during each fill-paragraph.

I have tried (setq  fill-paragraph-function nil) in an effort to use emacs'
default fill function instead of org mode's, but that did not fix the
problem.  When switching to text-mode the problem goes away.  I have also
tried running emacs with no customizations, and the problem is still
present in that case.

Things used to work fine in the versions of emacs and org-mode that I was
previously using, but those were a few years old and I am not sure exactly
which versions they were.  I am not using linum (I've seen that mentioned
as a cause of slowness).  Output from org-submit-bug-report is below.

Any help would be appreciated!

- Sean





Emacs  : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.10.7)
 of 2014-03-07 on toyol, modified by Debian
Package: Org-mode version 8.2.7b (8.2.7b-dist @
/home/markan/software/org-8.2.7b/lisp/)

current state:
==============
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-agenda-todo-ignore-scheduled t
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe
                      org-babel-header-arg-expand)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-format-latex-options '(:foreground default :background default :scale
1.8 :html-foreground "Black" :html-background
                            "Transparent" :html-scale 1.0 :matchers
("begin" "$1" "$" "$$" "\\(" "\\["))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '((lambda nil
                  (org-add-hook (quote change-major-mode-hook) (quote
org-show-block-all) (quote append) (quote local)))
                 (lambda nil
                  (org-add-hook (quote change-major-mode-hook) (quote
org-babel-show-result-all) (quote append) (quote local)))
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-link-frame-setup '((vm . vm-visit-folder-other-frame) (gnus .
gnus-other-frame) (file . find-file))
 org-from-is-user-regexp "\\<Sean Markan\\>"
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-startup-folded 'all
 org-agenda-files [REDACTED])
 org-file-apps '((auto-mode . emacs) ("\\.x?html?\\'" . default)
("\\.pdf\\'" . default))
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-confirm-shell-link-function 'yes-or-no-p
 )

[-- Attachment #2: Type: text/html, Size: 4038 bytes --]

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

end of thread, other threads:[~2014-07-17 20:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-12 18:18 fill-paragraph running slowly in org mode Sean Markan
2014-07-16 13:34 ` Nicolas Goaziou
2014-07-17 20:12   ` Sean Markan

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).