emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-hide-emphasis-markers problem
@ 2009-07-31 14:47 Nicolas Goaziou
  2009-08-03 13:34 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2009-07-31 14:47 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

When set to t, org-hide-emphasis-markers doesn't seem to behave well
with R in agenda mode, or C-c C-x C-r elsewhere, that is with dynamic
blocks.

The error is the following :

  org-do-emphasis-faces: Wrong type argument: integer-or-marker-p, nil

I think it also acts strangely with column-mode, something about the
fonts, but I can't be more precise.

-- 
Nicolas Goaziou

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

* Re: org-hide-emphasis-markers problem
  2009-07-31 14:47 org-hide-emphasis-markers problem Nicolas Goaziou
@ 2009-08-03 13:34 ` Carsten Dominik
  2009-08-05 15:54   ` Nicolas Goaziou
  2009-08-08 15:56   ` Nicolas Goaziou
  0 siblings, 2 replies; 5+ messages in thread
From: Carsten Dominik @ 2009-08-03 13:34 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode


On Jul 31, 2009, at 4:47 PM, Nicolas Goaziou wrote:

> Hello,
>
> When set to t, org-hide-emphasis-markers doesn't seem to behave well
> with R in agenda mode, or C-c C-x C-r elsewhere, that is with dynamic
> blocks.
>
> The error is the following :
>
>  org-do-emphasis-faces: Wrong type argument: integer-or-marker-p, nil

I am unable to reproduce this bug.

I do see that the table alignment is not correct when emphasis
markers are hidden, but this is too hard to fix.

>
> I think it also acts strangely with column-mode, something about the
> fonts, but I can't be more precise.

I would need more information.

- Carsten

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

* Re: org-hide-emphasis-markers problem
  2009-08-03 13:34 ` Carsten Dominik
@ 2009-08-05 15:54   ` Nicolas Goaziou
  2009-08-08 15:56   ` Nicolas Goaziou
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2009-08-05 15:54 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

>> The error is the following :
>>
>>  org-do-emphasis-faces: Wrong type argument: integer-or-marker-p, nil
>
> I am unable to reproduce this bug.
>
> I do see that the table alignment is not correct when emphasis
> markers are hidden, but this is too hard to fix.
>
>>
>> I think it also acts strangely with column-mode, something about the
>> fonts, but I can't be more precise.
>
> I would need more information.

Well, with some recent git pull, both problems disappeared. With column
mode, it was that fonts were sometimes huge, and sometimes so small it
was impossible to read anything.

Anyway, sorry for the noise.

-- 
Nicolas Goaziou

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

* Re: org-hide-emphasis-markers problem
  2009-08-03 13:34 ` Carsten Dominik
  2009-08-05 15:54   ` Nicolas Goaziou
@ 2009-08-08 15:56   ` Nicolas Goaziou
  2009-08-23 16:51     ` Carsten Dominik
  1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2009-08-08 15:56 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

My culprit wasn't the good one !

Here is the backtrace when using org-agenda-clockreport-mode :

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  *(nil 2)
  (setq b (1+ (point-at-eol)) n (* level org-indent-indentation-per-level))
  (while (not exit) (setq e end) (if (not ...) (setq e ... exit t) (setq e ...) (if ... ...) (setq level ...) (setq nstars ...) (add-text-properties ... ... ...)) (when (and b ...) (add-text-properties b e ...)) (setq b (1+ ...) n (* level org-indent-indentation-per-level)))
  (save-excursion (goto-char beg) (while (not exit) (setq e end) (if ... ... ... ... ... ... ...) (when ... ...) (setq b ... n ...)))
  (let ((buffer-undo-list t) before-change-functions after-change-functions) (save-excursion (goto-char beg) (while ... ... ... ... ...)))
  (prog1 (buffer-modified-p) (let (... before-change-functions after-change-functions) (save-excursion ... ...)))
  (set-buffer-modified-p (prog1 (buffer-modified-p) (let ... ...)))
  (org-unmodified (save-excursion (goto-char beg) (while ... ... ... ... ...)))
  (let (ov b e n level exit nstars) (org-unmodified (save-excursion ... ...)))
  (progn (let (ov b e n level exit nstars) (org-unmodified ...)))
  (if (or t org-indent-mode) (progn (let ... ...)))
  (when (or t org-indent-mode) (let (ov b e n level exit nstars) (org-unmodified ...)))
  org-indent-add-properties(1 3828)

With a minimal init file, it appears that the variable
org-startup-indented set to t is to blame.

Hoping someone is able to reproduce this.

Regards,

-- 
Nicolas Goaziou

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

* Re: org-hide-emphasis-markers problem
  2009-08-08 15:56   ` Nicolas Goaziou
@ 2009-08-23 16:51     ` Carsten Dominik
  0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2009-08-23 16:51 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Hi Nicolas,

first of all, hiding emphasis markers is poorly tested and maybe
not fully functional.  It is possible that there are problems
associated with it.

However, I cannot reproduce the problem you are describing.

- Carsten

On Aug 8, 2009, at 5:56 PM, Nicolas Goaziou wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
> My culprit wasn't the good one !
>
> Here is the backtrace when using org-agenda-clockreport-mode :
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker- 
> p nil)
>  *(nil 2)
>  (setq b (1+ (point-at-eol)) n (* level org-indent-indentation-per- 
> level))
>  (while (not exit) (setq e end) (if (not ...) (setq e ... exit t)  
> (setq e ...) (if ... ...) (setq level ...) (setq nstars ...) (add- 
> text-properties ... ... ...)) (when (and b ...) (add-text-properties  
> b e ...)) (setq b (1+ ...) n (* level org-indent-indentation-per- 
> level)))
>  (save-excursion (goto-char beg) (while (not exit) (setq e end)  
> (if ... ... ... ... ... ... ...) (when ... ...) (setq b ... n ...)))
>  (let ((buffer-undo-list t) before-change-functions after-change- 
> functions) (save-excursion (goto-char beg)  
> (while ... ... ... ... ...)))
>  (prog1 (buffer-modified-p) (let (... before-change-functions after- 
> change-functions) (save-excursion ... ...)))
>  (set-buffer-modified-p (prog1 (buffer-modified-p) (let ... ...)))
>  (org-unmodified (save-excursion (goto-char beg)  
> (while ... ... ... ... ...)))
>  (let (ov b e n level exit nstars) (org-unmodified (save- 
> excursion ... ...)))
>  (progn (let (ov b e n level exit nstars) (org-unmodified ...)))
>  (if (or t org-indent-mode) (progn (let ... ...)))
>  (when (or t org-indent-mode) (let (ov b e n level exit nstars) (org- 
> unmodified ...)))
>  org-indent-add-properties(1 3828)
>
> With a minimal init file, it appears that the variable
> org-startup-indented set to t is to blame.
>
> Hoping someone is able to reproduce this.
>
> Regards,
>
> -- 
> Nicolas Goaziou
>

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

end of thread, other threads:[~2009-08-23 16:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-31 14:47 org-hide-emphasis-markers problem Nicolas Goaziou
2009-08-03 13:34 ` Carsten Dominik
2009-08-05 15:54   ` Nicolas Goaziou
2009-08-08 15:56   ` Nicolas Goaziou
2009-08-23 16:51     ` Carsten Dominik

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