emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-orgmode] Re: org-mode + xemacs + patch


From: chgreg692000
Subject: [Emacs-orgmode] Re: org-mode + xemacs + patch
Date: Thu, 11 May 2006 11:18:37 +0300
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.16 (linux)

On Thu, 11 May 2006, address@hidden wrote:

> Hi Greg, I have looked at you patch and taken most of it.  However,
> I have a few questions:
> 
>>  \\{org-mode-map}"
>> +
>> +  ;; Get rid of Outline menus, they are not needed
>> +  ;; Need to do this here because define-derived-mode sets up
>> +  ;; the keymap so late.
>> +  (if (featurep 'xemacs)
>> +      (progn
>> +    (if org-noutline-p
>> +        (progn
>> +          (easy-menu-remove outline-mode-menu-heading)
>> +          (easy-menu-remove outline-mode-menu-show)
>> +          (easy-menu-remove outline-mode-menu-hide))
> 
> This assumes that the future port of noutline will use easy-menu for
> its stuff.  OK if you get your version into XEmacs, problematic
> otherwise.  I have taken it anyway, because right now it does not
> break anything.
> 
>>                      (get-char-property (1- (point)) 'invisible))
>>            (beginning-of-line 2)) (setq eol (point)))
>>        (outline-end-of-heading)   (setq eoh (point))
>> -      (org-end-of-subtree t)     (setq eos (point))
>> +      ;;(org-end-of-subtree t)     (setq eos (point))
>> +      (outline-end-of-subtree)     (setq eos (point))
>>        (outline-next-heading))
> 
> Why is the above change necessary?

Without this change 'org-cycle' gives error when
'org-cycle-include-plain-lists' is t.

> 
>>      (if (equal x "") (setq x "0"))
>> -    (setq form (replace-match (concat "(" x ")") t t form)))
>> +    ;;(setq form (replace-match (concat "(" x ")") t t form)))
>> +    (setq form (replace-match x t t form)))
> 
> I guess you need this to get the value of variables directly into
> the list form.  I need the parenthesis, because fields in tables can
> be complex expressions, and in an equation precedence rule may pull
> this expression apart, which is not wanted.  We need to do this in a
> way that the parenthesis are only ignored for lisp expressions.
> 
>>

I've suspected that you added these parenthesis for some reason, but
because my simple tests worked without them and because parenthesis
used only in row formulas and not used in column formulas i removed
them. I suppose it could be easy to add some if statement that will
ignore parenthesis for elisp only.

>> +(when (featurep 'xemacs)
>> +  (define-key org-mode-map 'button3   'popup-mode-menu))
>> +
>>  (defsubst org-table-p () (org-at-table-p))
> 
> 
> Any other XEmacs users who object to this change?
> 
>> @@ -13772,7 +13790,8 @@
>>  Only visible heading lines are considered, unless INVISIBLE-OK is
>> non-nil."
>>    (if org-noutline-p
>>        (outline-back-to-heading invisible-ok)
>> -    (if (and (memq (char-before) '(?\n ?\r))
>> +    (if (and (or (memq (char-before) '(?\n ?\r))
>> +             (point-min))
>>               (looking-at outline-regexp))
>>      t
> 
> This one I don't understand.  Maybe you mean
> 
>     (if (and (or (bobp) (memq (char-before) '(?\n ?\r)))
> 
> ????  Point-min is never nil, it is always just a number.
> 

This is a bug. It should be (bobp). Have no idea why it's worked with
(point-min). 

> 
> 
> Thanks.
> 
> - Carsten

Regards,
Greg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]