Re: [Orgmode] patch to outline.el concerning isearch

2006-12-15 Thread Carsten Dominik

I strongly support this proposal, this is a feature that would be
very valuable.

- Carsten

On Dec 14, 2006, at 4:53, John J Foerch wrote:


Hello,

I want to implement a particular feature in org-mode that depends upon 
some

functionality being added to outline-mode.  (org-mode is derived from
outline-mode.)  The feature concerns display of ancestor and sibling 
headings
when an isearch has come to successful completion in a hidden part of 
the
file.  The function whose job it is to decide what to display when an 
isearch
has completed is called `outline-isearch-open-invisible'.  Currently, 
it
simply calls `(show-entry)'.  The following patch changes that 
function, and
adds a new variable, to allow derived modes or motivated users to 
implement
alternate behavior.  The default behavior remains the same, but can 
more

easily be reprogrammed by a derived mode.

Please comment, criticize, or enlighten.  Thank you,

John Foerch

Index: lisp/outline.el
===
RCS file: /cvsroot/emacs/emacs/lisp/outline.el,v
retrieving revision 1.24
diff -r1.24 outline.el
745a746,757

(defvar outline-isearch-open-invisible-fun
  'outline-isearch-open-invisible-show-entry
  "Function that will be called when a successful isearch
  finishes in an invisible overylay.  The overlay will be passed
  to the function as its sole argument.")

;; Default function for outline-isearch-open-invisible-fun.  Makes 
only the

;; single entry containing point visible.
(defun outline-isearch-open-invisible-show-entry (overlay)
  ;; We rely on the fact that isearch places point on the matched 
text.

  (show-entry))


751c763,764
<   (show-entry))
---

  (if outline-isearch-open-invisible-fun
  (funcall outline-isearch-open-invisible-fun overlay)))

___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] patch to outline.el concerning isearch

2006-12-15 Thread Tim O'Callaghan

On 14/12/06, Carsten Dominik <[EMAIL PROTECTED]> wrote:

I strongly support this proposal, this is a feature that would be
very valuable.



Any chance you could hack it into the noutline you distribute for
XEmacs in the next release?
XEmacs has this search issue too.

Tim.


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] patch to outline.el concerning isearch

2006-12-15 Thread Carsten Dominik
Yes, I will, but I want to wait what the solution for emacs will be and 
then implement the same in the noutline for xemacs.


- Carsten

On Dec 15, 2006, at 13:17, Tim O'Callaghan wrote:


On 14/12/06, Carsten Dominik <[EMAIL PROTECTED]> wrote:

I strongly support this proposal, this is a feature that would be
very valuable.



Any chance you could hack it into the noutline you distribute for
XEmacs in the next release?
XEmacs has this search issue too.

Tim.


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Table questions

2006-12-15 Thread Eddward DeVilla

I'll follow this up with a few more wishes.  Could the table minor
mode maybe be extended to allow the user to define delimiters?  Say
draw a picture?

struct hugeStaticTable initData = {
 // Draw a picture
 // ORG-ROW-DEF { /* key*/ $1 , /* name */ $2 , /* location */ {  /*
x */ $3 , /* y */ $4 } , /* comment*/ $5 },
 { /* key */ 0, /* name */ "Bob", /* location */ { /* x */ 10.0, /* y
*/ 3.2 }, /* comment */ "You know.  Bob!  Bob.  Good times... Good
times..." }
 { /* key */ 1, /* name */ "Joe", /* location */ { /* x */ 5.5, /* y
*/ 4.4 },  /* comment */ "One fine batter." }
 ...
};

I code with a lot of static tables that are populated by hand.
Keeping them formatted is critical to keeping the code maintainable.
I'd think that this example might be too much for the table-minor
mode, but if there were a way to at least define a row beginning, end
and field separator, it might help.

struct S d = {
 // ORG-ROW-DEF '{'  ',' '}'
 { f1 , f2 , f3 , f4 }
 

};

On 12/14/06, Michael <[EMAIL PROTECTED]> wrote:


I recently started using org-mode and love its table feature.  Here are some
questions that I have:

1. In table calculation, how to refer to a cell in a different column and
   different row?  Specifically, I want column 8 row 5 to be the ratio of
   column 7 row 5 and column 7 row 4.

2. I think the table minor mode would be a fantastic tool in editing tables
   in a LaTeX file. I wonder whether it is possible to let orgtbl recognize
   \begin{tabular}\end{tabular} and use & as column delimiter rather than |
   (also respect end of line \\)?

Thanks,

Michael



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Table questions

2006-12-15 Thread Michael
On 15 Dec 2006, Eddward DeVilla wrote:

> I'll follow this up with a few more wishes.  Could the table minor
> mode maybe be extended to allow the user to define delimiters?  

Yes, it would be nice to edit .csv files directly in org-table model.

Michael



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] table formula w/o calc

2006-12-15 Thread Eddward DeVilla

Hi all,

 Can table formula's be done without calc?  I've been trying to do
something like the following:

 |---+--++++|
 |   | name | P1 | P2 | P3 | TOT|
 |---+--++++|
 |   | Al   | 10 |  9 |  8 | ='(+ $3 $4 $5) |
 |   | Bob  |  9 |  8 | 10 ||
 |   | Carl |  8 | 10 |  9 ||
 |   | Dan  | 10 | 10 | 10 ||
 |---+--++++|

I haven't been able to get it to do anything even if I used #+TBLFM,
or ! lines and named variables.  If it's possible then I'm probably
just doing something stupid.  I'd like to avoid installing calc unless
I need to.

Thanks,
Edd


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] bug with table in indirect buffer

2006-12-15 Thread Eddward DeVilla

Hi,

I found a bug with table formatting in an indirect buffer.  In the
file below, if you open the second bullet (My little microcosm) in an
indirect buffer and cause a table format with say C-c C-c, the table
will reformat but afterwards the cursor will be moved to the beginning
of the buffer.  Interestingly enough, this doesn't seem to happen if
the bullet is the first line of the file.

--- test.org ---

* top of the world (but not top of the file)
*** My little microcosm (open me in indirect buffer)
   |-
   | reformat me in indirect buffer
   |-

-

Edd


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: table formula w/o calc

2006-12-15 Thread Leo
* Eddward Devilla (2006-12-15 12:50 -0600) said:
  ^^^
>  Can table formula's be done without calc?

That would be a pity not to employ the best maths tool in Emacs.

-- 
Leo  (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: table formula w/o calc

2006-12-15 Thread Eddward DeVilla

   At home I'd play with all the toys I can.  I don't control the
environment at work, so I try to keep thing as vanilla as possible.
(Less for me to maintain.)  The site only has an ill-maintained emacs
21.1.1 from a few years ago.  I gave in and installed org-mode in my
home directory because I need a better outliner.

   I have the same problem with perl's CPAN.  They have a lot of neat
things, but I can't install them in the library path.

   If calc is required, I'll try it out, but otherwise I'd like to
see what I can get with just lisp.  Besides, it will be another excuse
to learn more lisp.

Edd

On 12/15/06, Leo <[EMAIL PROTECTED]> wrote:

* Eddward Devilla (2006-12-15 12:50 -0600) said:
  ^^^
>  Can table formula's be done without calc?

That would be a pity not to employ the best maths tool in Emacs.

--
Leo  (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: table formula w/o calc

2006-12-15 Thread Leo
* Eddward Devilla (2006-12-15 15:00 -0600) said:
  ^^^
>At home I'd play with all the toys I can.  I don't control the
> environment at work, so I try to keep thing as vanilla as possible.
> (Less for me to maintain.)  The site only has an ill-maintained emacs
> 21.1.1 from a few years ago.  I gave in and installed org-mode in my
> home directory because I need a better outliner.

You don't need any special control to add your own packages as long as
you have an account in the machine.

[...]
>If calc is required, I'll try it out, but otherwise I'd like to
> see what I can get with just lisp.  Besides, it will be another excuse
> to learn more lisp.

Another reason is that calc is a standard package in GNU Emacs from 22
(soon to be released) onwards.

-- 
Leo  (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] table formula w/o calc

2006-12-15 Thread Xiao-Yong Jin
"Eddward DeVilla" <[EMAIL PROTECTED]> writes:

> Hi all,
>
>  Can table formula's be done without calc?  I've been trying to do
> something like the following:

Maybe you've already tried this.  But I guess it's still worth
mentioning.  You probably need a `#' in the first row as following

  |---+--++++|
  |   | name | P1 | P2 | P3 | TOT|
  |---+--++++|
  | # | Al   | 10 |  9 |  8 | ='(+ $3 $4 $5) |
  | # | Bob  |  9 |  8 | 10 ||
  | # | Carl |  8 | 10 |  9 ||
  | # | Dan  | 10 | 10 | 10 ||
  |---+--++++|

> I haven't been able to get it to do anything even if I used #+TBLFM,
> or ! lines and named variables.  If it's possible then I'm probably
> just doing something stupid.  I'd like to avoid installing calc unless
> I need to.
>
> Thanks,
> Edd
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] table formula w/o calc

2006-12-15 Thread Eddward DeVilla

On 12/15/06, Xiao-Yong Jin <[EMAIL PROTECTED]> wrote:

"Eddward DeVilla" <[EMAIL PROTECTED]> writes:
Maybe you've already tried this.  But I guess it's still worth
mentioning.  You probably need a `#' in the first row as following

  |---+--++++|
  |   | name | P1 | P2 | P3 | TOT|
  |---+--++++|
  | # | Al   | 10 |  9 |  8 | ='(+ $3 $4 $5) |
  | # | Bob  |  9 |  8 | 10 ||
  | # | Carl |  8 | 10 |  9 ||
  | # | Dan  | 10 | 10 | 10 ||
  |---+--++++|


Not sure if I've done this variation before.  Just tried now without
luck.  Thanks for the suggestion though.

Edd


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode