emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sean Markan <sean.markan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: fill-paragraph running slowly in org mode
Date: Sat, 12 Jul 2014 14:18:33 -0400	[thread overview]
Message-ID: <CAMjU8_1tRW11hs9t71hb6wZP=ZwNFAV1D5Brb5zJemKX1aP2Tw@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2014-07-12 18:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-12 18:18 Sean Markan [this message]
2014-07-16 13:34 ` fill-paragraph running slowly in org mode Nicolas Goaziou
2014-07-17 20:12   ` Sean Markan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMjU8_1tRW11hs9t71hb6wZP=ZwNFAV1D5Brb5zJemKX1aP2Tw@mail.gmail.com' \
    --to=sean.markan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).