From: Keith David Bershatsky <esq@lawlist.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 17775@debbugs.gnu.org
Subject: bug#17775: 24.4.50; `ispell-command-loop` -- portion of code occasionally returns `nil`.
Date: Sat, 14 Jun 2014 09:54:28 -0700 [thread overview]
Message-ID: <16825446-64D4-48B2-83C5-CCCAF19CDC86@lawlist.com> (raw)
In-Reply-To: <837g4jx61j.fsf@gnu.org>
My average `(window-width)` is 168 with `linum-mode` active. I have `visual-line-mode` active. As to the first frame that is generated by Emacs, scroll bars are removed with code when Emacs starts -- `(modify-all-frames-parameters (list (cons 'vertical-scroll-bars nil)))` -- this ensures that my initial calling of `toggle-frame-maximized` (when Emacs loads) expands the frame to the full screen width. As to each new frame, scroll bars are not initially present -- `(add-to-list 'default-frame-alist '(vertical-scroll-bars . nil))`. Scroll bars are added or removed with a minor mode that calculates whether the the text is longer than the visual window -- `(set-window-scroll-bars selected-window 0 'right nil)` or `(set-window-scroll-bars selected-window 0 'right nil)`. Scroll bar mode is now on an idle timer, but was previously on the `post-command-hook` -- the spell check error occurs sporadically in either circumstance.
My linum-mode is using a modified version of something I borrowed from Stackoverflow:
http://stackoverflow.com/a/10593165/2112489
(defun my-lawlist-linum-get-format-string ()
(let* ((width (length (number-to-string
(count-lines (point-min) (point-max)))))
(format (concat "%" (number-to-string width) "d")))
(setq my-lawlist-linum-format-string format)))
I apologize for not writing up a better initial bug report and I'll update this bug report when I have more useful information. You are correct in your assumption that the only evidence I have (that the code snippet caused the problem) iss that the error seems to go away by commenting it out.
Keith
---------------------------------------
On Jun 14, 2014, at 1:13 AM, Eli Zaretskii wrote:
>
> Btw, what was the width of the window when this problem happened?
next prev parent reply other threads:[~2014-06-14 16:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 22:43 bug#17775: 24.4.50; `ispell-command-loop` -- portion of code occasionally returns `nil` Keith David Bershatsky
2014-06-14 8:13 ` Eli Zaretskii
2014-06-14 16:54 ` Keith David Bershatsky [this message]
2015-12-26 15:28 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16825446-64D4-48B2-83C5-CCCAF19CDC86@lawlist.com \
--to=esq@lawlist.com \
--cc=17775@debbugs.gnu.org \
--cc=eliz@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.