Re: Unable to follow gnus links

2021-10-04 Thread Tom Ed White
Ihor Radchenko  writes:

> Tom Ed White  writes:
>
>> I was able to fix the problem for the time being by changing the
>> arguments to:
>>
>> (defun org-gnus-open (path &rest _)
>>
>> The keystroke I use is C-c C-o, which runs org-open-at-point which is in
>> org.el.
>
> I understand. But it does not solve the potential problem for other users.
>
>> Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1)
>> ... ((functionp (org-link-get-parameter type :follow)) (funcall
>> (org-link-get-parameter type :follow) path))
>> ...
>
> Judging from your backtrace, you seem to have a mixed Org installation
> with some files loaded from Org <9.4 (that's when we changed the number
> of arguments in :follow functions).
>
> Can you try to re-install Org?
>
> Note that mixed installation can also cause other unexpected problems.
>
> Best,
> Ihor

That was it, thank you. I was loading an obsolete version of
ol.el. Hopefully I've found and eliminated all obsolete org code.

Regards,
Tom Ed




Re: Unable to follow gnus links

2021-10-03 Thread Tom Ed White
Ihor Radchenko  writes:

> Tom Ed White  writes:
>
>> Following gnus links in org fails with the message:
>>
>> funcall: Wrong number of arguments: ((t) (path _) "Follow the Gnus
>> message or folder link specified by PATH." (if (string-match
>> "\\`\\([^#]+\\)\\(#\\(.*\\)\\)?" path) nil (error "Error in Gnus link
>> %S" path)) (let ((group (match-string-no-properties 1 path)) (article
>> (match-string-no-properties 3 path))) (org-gnus-follow-link group
>> article))), 1
>
> This should not happen.  Do you open the link using org-link-open?  Can
> you share backtrace after M-x debug-on-entry org-gnus-open?
>
> Best,
> Ihor

I was able to fix the problem for the time being by changing the
arguments to:

(defun org-gnus-open (path &rest _)

The keystroke I use is C-c C-o, which runs org-open-at-point which is in
org.el.

Regards,
Tom Ed White

Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1)
  org-gnus-open("nnmaildir+Old 
Fiddlebike:Inbox#caj6zs8+tp6gvgckvqa-e1-5cdkfqsnkg8gm69o8emu1zyq5...@mail.gmail.com")
  funcall(org-gnus-open "nnmaildir+Old 
Fiddlebike:Inbox#caj6zs8+tp6gvgckvqa-e1-5cdkfqsnkg8gm69o8emu1zyq5...@mail.gmail.com")
  (cond ((equal type "file") (if (string-match "[*?{]" (file-name-nondirectory 
path)) (dired path) (let* ((option (org-element-property :search-option link)) 
(app (org-element-property :application link)) (dedicated-function 
(org-link-get-parameter (if app ... type) :follow))) (if dedicated-function 
(funcall dedicated-function (concat path (and option ...))) (apply 
#'org-open-file path (cond (arg) (... ...) (... ...)) (cond (... nil) (... ...) 
(t ...))) ((functionp (org-link-get-parameter type :follow)) (funcall 
(org-link-get-parameter type :follow) path)) ((member type '("coderef" 
"custom-id" "fuzzy" "radio")) (if (run-hook-with-args-until-success 
'org-open-link-functions path) nil (if (not arg) (org-mark-ring-push) 
(switch-to-buffer-other-window (org-link--buffer-for-internals))) (let 
((destination (save-excursion (save-restriction ... ... ... (if (and (<= 
(point-min) destination) (>= (point-max) destination)) nil (widen)) (goto-char 
destination (t (browse-url-at-point)))
  (let ((type (org-element-property :type link)) (path (org-element-property 
:path link))) (cond ((equal type "file") (if (string-match "[*?{]" 
(file-name-nondirectory path)) (dired path) (let* ((option 
(org-element-property :search-option link)) (app (org-element-property 
:application link)) (dedicated-function (org-link-get-parameter ... :follow))) 
(if dedicated-function (funcall dedicated-function (concat path ...)) (apply 
#'org-open-file path (cond ... ... ...) (cond ... ... ...)) ((functionp 
(org-link-get-parameter type :follow)) (funcall (org-link-get-parameter type 
:follow) path)) ((member type '("coderef" "custom-id" "fuzzy" "radio")) (if 
(run-hook-with-args-until-success 'org-open-link-functions path) nil (if (not 
arg) (org-mark-ring-push) (switch-to-buffer-other-window 
(org-link--buffer-for-internals))) (let ((destination (save-excursion ...))) 
(if (and (<= ... destination) (>= ... destination)) nil (widen)) (goto-char 
destination (t (browse-url-at-point
  org-link-open((link (:type "gnus" :path "nnmaildir+Old 
Fiddlebike:Inbox#CAJ6ZS8+TP6gVGckVQA..." :format bracket :raw-link 
"gnus:nnmaildir+Old Fiddlebike:Inbox#CAJ6ZS8+TP6gVG..." :application nil 
:search-option nil :begin 19723 :end 19880 :contents-begin 19829 :contents-end 
19878 :post-blank 0 :parent (headline (:raw-value "Debug gnus org links
[[gnus:nnmaildir+Old Fiddl..." :begin 19691 :end 19882 :pre-blank 0 
:contents-begin nil :contents-end nil :level 2 :priority nil :tags nil 
:todo-keyword #("TODO" 0 4 (face org-todo org-category "personal" fontified t)) 
:todo-type todo :post-blank 1 :footnote-section-p nil :archivedp nil 
:commentedp nil :post-affiliated 19691 :title "Debug gnus org links
[[gnus:nnmaildir+Old Fiddl..." nil)
  org-open-at-point(nil)
  funcall-interactively(org-open-at-point nil)
  call-interactively(org-open-at-point nil nil)
  command-execute(org-open-at-point)




Unable to follow gnus links

2021-09-27 Thread Tom Ed White
Following gnus links in org fails with the message:

funcall: Wrong number of arguments: ((t) (path _) "Follow the Gnus
message or folder link specified by PATH." (if (string-match
"\\`\\([^#]+\\)\\(#\\(.*\\)\\)?" path) nil (error "Error in Gnus link
%S" path)) (let ((group (match-string-no-properties 1 path)) (article
(match-string-no-properties 3 path))) (org-gnus-follow-link group
article))), 1

The function is org-gnus-open in ol-gnus.el. I found a workaround by
changing the function arguments:

(defun org-gnus-open (path &rest _ moo)

I put the "moo" argument in for testing.

I can eval the original function and run it by itself and it works fine,
so maybe the calling function is passing too many arguments. I believe
the calling function is org-open-at-point from org.el.

I'm running the latest org (20210920) from melpa. The file ol-gnus.el
gets loaded via org module customization.




Re: [O] MobileOrg

2015-11-21 Thread Ed Hirgelt
On Sat, 21 Nov 2015 10:42:24 -0500
Peter Davis  wrote:

>
> On Fri, Nov 20, 2015, at 03:58 PM, dean wrote:
> > On 11/21/15 00:14, Peter Davis wrote:
> > Hi pd,
> >
> > > I'm just starting out with MobileOrg, using Dropbox, but I'm
> > > confused by the setup instructions. I've gotten the app linked to
> > > my Dropbox account, but the next step in the setup instructions
> > > <http://mobileorg.ncogni.to/doc/getting-started/using-dropbox/>
> > > involve setting up some emacs stuff on my "local system." My
> > > question is: *Which* local system? I have several sync'ed to
> > > Dropbox. Is the mobile app going to require a single point of
> > > contact?
> > >
> >
> > Im fairly new to emacs and mobileorg, so im no expert here but...
> > I believe Mobile org will be using your dropbox folder as its single
> > point of contact.
> > For example your workflow would be:
> > - Create/edit notes/todo's on your phone
> > - sync the app (which should save to dropbox)
> > - Open emacs on your pc, issue org-mobile-pull
> > - This should add your edits to your org files on your pc
> >
> > For the other direction:
> > - Edit org files on your pc, issue org-mobile-push
> > - sync on the app should import your edits into the app
> >
> > Im assuming you have a dropbox daemon taking care of the syncing in
> > this process.
> >
> > This should be the same no matter how many pc's/emacs you use.
> > Does this help answer your question?
> >
>
> Thanks, Dean.  Actually, I can't even sync mobileorg. When I try
> (Pressing the sync button in the upper right corner), I get:
>
>
> *Error downloading checksums*
>
> An error was encountered while downloading checksums.dat from the
> server. The file isn't required, but the error received was unusual.
> The error was:
>
> Unexpected error
>
>
> I don't know what that's about, but I can't get past It.
>
> Thanks,
> -pd
>
>
>   Peter Davis
>   www.techcurmudgeon.com
>   www.timebums.com
>
>

I ran into this same problem. The source of the problem appears to be
that MobileOrg really, really wants to create the directory
~/Dropbox/Apps/MobileOrg.  My workaround was to:

1. Delete any and all MobileOrg directories in Dropbox so you don't get
confused as to which one is really the right one.

2. Bring up MobileOrg on your iPhone or iPad. Let it create the
directory.

3. Configure org on your desktop/laptop to export to
~/Dropbox/Apps/MobileOrg.

4. Now export from your desktop via org.

5. You should now be able to sync on your mobile device.

Note that is you want to sync to multiple mobile devices you need to
repeat steps 1 and 2 for each device before you do anything from org on
your desktop. Each of the MobileOrg instances will create the target
directory when it initializes.

This could be avoided if there were a way in MobileOrg to set the
synchronization directory. But, at least it is still possible to get
all this to work.

Good luck and happy org-ing.
Ed





[O] Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 @ /usr/local/share/emacs/site-lisp/org/)]

2014-09-16 Thread Ed Kademan
I can't evaluate R code blocks in org files. For example the file with
contents:

--8<---cut here---start->8---
#+property: header-args:R :session R-foo

#+BEGIN_SRC R
  print(pi)
#+END_SRC
--8<---cut here---end--->8---

spawns an R session that reports:

--8<---cut here---start->8---
  Error: could not find function ".ess.eval"
--8<---cut here---end--->8---

and does not give me a result.
I am running ess-version: 14.09 and am invoking emacs as follows:

--8<---cut here---start->8---
#!/bin/sh

o=/usr/local/share/emacs/site-lisp/org
emacs -Q --eval="(progn
  (add-to-list 'load-path \"$o\")
  (require 'org)
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((R . t)))
  (package-initialize)
  (setq ess-ask-for-ess-directory 'nil
ess-directory \"~/R/\"))"
--8<---cut here---end--->8---

EdK

Emacs  : GNU Emacs 24.4.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23)
 of 2014-08-23 on dl
Package: Org-mode version 8.3beta (release_8.3beta-362-ga92789 @ 
/usr/local/share/emacs/site-lisp/org/)

current state:
==
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-tab-first-hook '(org-hide-block-toggle-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-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 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-babel-load-languages '((R . t))
 org-confirm-shell-link-function 'yes-or-no-p
 )


signature.asc
Description: PGP signature


[O] Bug: insert link to header with date [8.3beta (release_8.3beta-240-g88101e @ /usr/local/share/emacs/site-lisp/org/)]

2014-08-17 Thread Ed Kademan
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


If I execute org-store-link (C-c l) on a header line that contains an
inactive timestamp---that is, one with square brackets instead of
angle brackets---and then try to use that link with org-insert-link
(C-c C-l) at some other location in the same file, the resulting link
is malformed and not recognized by org.

EdK

Emacs  : GNU Emacs 24.4.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23)
 of 2014-07-28 on dl
Package: Org-mode version 8.3beta (release_8.3beta-240-g88101e @ 
/usr/local/share/emacs/site-lisp/org/)

current state:
==
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-tab-first-hook '(org-hide-block-toggle-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-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 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
 )


signature.asc
Description: PGP signature


Re: [O] Minibuffer jumping to two lines when agenda displays 3rd level heading

2013-03-18 Thread ed
FWIW, the minibuffer behavior does not occur in NTEmacs.

GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600) of 2012-08-24 on YAMALOK




Re: [Orgmode] text ignoring page breaks (was Latex export to A4)

2009-11-23 Thread Ed Hirgelt
On Mon, Nov 23, 2009 at 9:27 AM, Graham Smith  wrote:

> Well this seems to be nothing to do with the page size as other files
> are working fine.  I have now opened a new file and typed everything
> in from scratch and still getting the same problem. I have looked at
> the tex file and can't see anything obvious,  but as a PDF the text
> runs over the page number and off the bottom of the page.
>
> I have attached the file in the hope someone can tell me what I am doing
> wrong.
>
> For now I have transferred it to Open Office to finish it, but really
> need to sort this out. I have upgraded to OrgMode 6.33f, still Ubuntu
> 9.04
>

I think the problem is that you have no paragraphs, just headers.  I hacked
your file to have some random junk in a few of the sections and it turned
out a lot better.

I've noticed this about LaTeX in the past.  Just an outline (section headers
only) often turns out badly.  Once you get some content, everything starts
to lay itself out nicely.

Hope this helps,
Ed
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] setting date for org -> latex exporter

2009-08-31 Thread Ed Hirgelt


On Aug 31, 2009, at 2:02 PM, John Rakestraw wrote:



I'd like it either not to have a date at all, or to have "Fall 2009"
instead of today's date.


#+Date: Fall 2009

will take care of it.

Ed



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export Org Mode in Wiki Format

2009-07-15 Thread Ed Hirgelt


On Jul 15, 2009, at 12:30 PM, Mike Malloy wrote:

I would like to export a .org file to a Confluence wiki page.  Does  
anyone have any insight of how to do this?


I'v found that exporting to HTML then visiting http://toolserver.org/~diberri/cgi-bin/html2wiki/index.cgi 
 works quite nicely.  I don't use confluence, but the MoinMoin  
conversion is reasonable.


Hope this helps,
Ed



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Patch to LaTeX Export verbatim

2009-06-17 Thread Ed Hirgelt
I use memoir with LaTeX and like the boxedverbatim environment. And I  
often

need to wrap that in a mini page to keep it all together.  So I put this
hack together to generalize the way that source is exported to LaTeX.

Hope you can incorporate it.  It is against the latest org-exp.el from  
git.


Thanks,
Ed Hirgelt


org-exp.patch
Description: Binary data


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Problem with org-mac-message.el

2009-04-01 Thread Ed Hirgelt
I've found that org-mac-message-get-link has a problem inserting [["]]  
as the first item.


The following change makes it better...

diff --git a/lisp/org-mac-message.el b/lisp/org-mac-message.el
index 4e10062..e8697c4 100644
--- a/lisp/org-mac-message.el
+++ b/lisp/org-mac-message.el
@@ -119,7 +119,7 @@ active mail in AppleMail and make a link out of it."
(setq split-link (split-string (pop link-list) "::split::"))
(setq URL (car split-link))
(setq description (cadr split-link))
-   (if (not (string= URL ""))
+   (if (not (string= URL "\""))
(progn
  (setq orglink (org-make-link-string URL description))
      (push orglink orglink-list)


Thanks,
Ed




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Problem with archiving

2009-03-02 Thread Ed Hirgelt
Using the latest from git:  when I try to archive a subtree with C-c  
$, I get


org-archive-subtree: Wrong type argument: number-or-marker-p, nil

Archive is going to the default location, in my case Tasks.org_archive  
in the

same directory.  This also failed with a newly created file.

Thanks,
Ed




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Checkboxes and Blank Lines

2009-02-26 Thread Ed Hirgelt

There is a difference in behavior of checkboxes when blank lines
are inserted between list items.  This is the default, I believe,
when using M-Return to create a new list item.

The following reproduces the problem.  Type C-c# in the Works case
and the count is updated to 0/2 (with C-cC-c in the check box it
gets updates to 1/2).

But in the second the counts get updated to 1.

Is this the intent?

org-blank-behavior is set to

((heading . auto)
 (plain-list-item . auto))


Thanks,
Ed


-
* Test Case

** TODO Works [/]

   - [ ] a
   - [ ] b

** TODO Fails [/]

   - [ ] a

   - [ ] b





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Return on a task behaves like TAB

2009-02-04 Thread Ed Hirgelt


On Feb 4, 2009, at 10:52 AM, Bernt Hansen wrote:

A recent change to org-mode is driving me nuts.  I regularly use  
Return

at the beginning of a task to insert a blank line and append detail to
the previous task.  This no longer works and cycles through the task's
folded status instead.


That is interesting.  I do the same thing.  I am at 6.21a and the
old behavior still works for me.  What version are you using?

Ed Hirgelt



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Links to Thunderbird e-mail

2008-11-03 Thread Ed Hirgelt

Does anyone know of a way to link to Thunderbird email similar
to org-mac-message-get-link & org-mac-message-insert-link?

Thanks,
Ed


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] FR: source code

2008-01-09 Thread Ed Hirgelt


On Jan 8, 2008, at 8:04 PM, Eddward DeVilla wrote:


On Jan 8, 2008 8:03 AM, Bastien <[EMAIL PROTECTED]> wrote:

BTW, we had a discussion earlier with Carsten on whether the #+BEGIN*
directives formed a consistent class.  I suggested to distinguish
between #+BEGIN_[export_language] and #+BEGIN_[type_of_region].  I
further suggested that we could have:

#+IF_HTML / #+ENDIF_HTML
#+IF_LaTeX / #+ENDIF_LaTeX
#+IF_TXT / #+ENDIF_TXT

and

#+BEGIN_EXAMPLE / #+END_EXAMPLE
#+BEGIN myblock

But maybe we shouldn't be the strict about the semantic, at least  
not at

the cost of simplicity.

What people think?


Being someone who uses org-mode primarily for the appearance in the
org-buffer while I'm editing and using org, I really do not like this.
It may format nicely after export, but it looks ugly in the buffer.


I definite agree with that.  I, too, primarily use org-mode for the  
way things

look in Emacs.  I occasionally export but my main use is within emacs.

Thanks,
Ed


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] appointment done doesn't go away

2007-12-17 Thread Ed Hirgelt
On Dec 17, 2007 9:53 AM, cezar <[EMAIL PROTECTED]> wrote:

>   I have a TODO item marked as an appointment. After marking it done I'd
> expect it to disappear from my agenda view.
>  Would you guys mark appointments as TODOs or just leave them without
> any tag ?


I do not tag appointments.   I leave TODO items for those things that I
really need to take an action on.  I also like seeing the appoinment in the
agenda when I browse backwards in time to see what I did last week or the
week before.

Just my approach...

Ed
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] undo in org.el

2007-11-13 Thread Ed Hirgelt

Tim O'Callaghan wrote:


If that was a call to Xemacs users to identify themselves, then here
is one. Even though it is in the Emacs CVS tree now should not turn it
into an Emacs only tool IMHO.
  

Another XEmacs user raising his hand -- please keep XEmacs compatibility.

Thanks,
Ed

--
Ed Hirgelt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug in 4.67

2007-02-26 Thread Ed Hirgelt

This may be specific to XEmacs and hope it is.  At line 5531 in org.el is a
local-variable-p call with just one parameter.  This fails on XEmacs when I
try to archive a completed TODO item with C-$.  Adding (current-buffer) as
the second parameter resolves the problem.

Thanks again for a great tool.

Ed
--
Ed Hirgelt
--- Life is too short to read bad books.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] buffer-substring-filters again

2007-01-25 Thread Ed Hirgelt

Oops, my fix wasn't completely correct either.  This one is and is less
redundant although it doesn't keep with the spirit of org-set-local

 (org-set-local 'buffer-substring-filters
(cons (lambda (x) (set-text-properties 0 (length x) nil x) x)
  (if (boundp 'buffer-substring-filters)
buffer-substring-filters nil)))


--
Ed Hirgelt

Life is too short to read bad books.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: org-mode 4.63 (was: [Orgmode] agenda mode)

2007-01-25 Thread Ed Hirgelt

On 1/25/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:


I have just uploaded 4.63 which fixes this problem for now -




Both 4.62 & 4.63 suffer from another problem, perhaps limited to XEmacs.

In  org-agenda-mode  org-set-local is called like this:

 (org-set-local 'buffer-substring-filters
(cons (lambda (x) (set-text-properties 0 (length x) nil x) x)
  buffer-substring-filters))

Unfortunately, buffer-substring-filters is evaluated before it  is created
resulting in an error.
I've patched my version temporarily  like this (which is a bit redundant):

 ;; Make sure properties are removed when copying text
 (make-local-variable 'buffer-substring-filters)
 (org-set-local 'buffer-substring-filters
(cons (lambda (x) (set-text-properties 0 (length x) nil x) x)
  buffer-substring-filters))

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


Re: [Orgmode] Text Formatting?

2006-10-19 Thread Ed Hirgelt
On 10/19/06, Xiao-Yong Jin <[EMAIL PROTECTED]> wrote:
Hi, how do you usually format the text body?  I found it frustratingif I just want to paste something from somewhere else.* List  1. list  2. list  3. listindent-region doesn't seem to work very well except the list was
format as the way that there's no space before the bulletYou probably want to look at filladapt.  This provides ways to fill lists of various types.
* QUOTE Carsten said  : blah blah blah...  : and blah blah blah...Something like this you can also handle by setting the prefix string (^X . is bound to set-fill-prefix)C-x . runs `set-fill-prefix'
`set-fill-prefix' is an interactive compiled Lisp function  -- loaded from "/usr/src/xemacs-21.4.19/.build/lisp/fill.elc"(set-fill-prefix)Documentation:Set the fill prefix to the current line up to point.
Filling expects lines to start with the fill prefix andreinserts the fill prefix in each resulting line.-- Ed Hirgelt   Discovery consists of seeing what everybody has seenand thinking what nobody has thought.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Blank lines between bullet items

2006-09-13 Thread Ed Hirgelt
I find that I prefer a blank line between items in plain lists.  org-insert-item doesn't do that.  The following patch remedies that under the control of a customization option.  Feel free to incorporate this into a release if you think others would find it useful.
*** org.el    Fri Sep  8 11:49:10 2006--- /c/hirged/recentElisp/org/org.el    Wed Sep 13 13:13:36 2006** 463,468 --- 463,474     :group 'org-plain-lists    :type 'boolean)
  + (defcustom org-blank-before-bullet t+   "Non-nil means to insert an extra blank before bullet items created with+ \\[org-insert-item]."+   :group 'org-plain-lists+   :type 'boolean)
+   (defcustom org-provide-checkbox-statistics t    "Non-nil means, update checkbox statistics after insert and toggle.  When this is set, checkbox statistics is updated each time you either insert***
*** 3834,3840       (open-line 1)) ((<= (point) eow)      (beginning-of-line 1))!    (t (newline)))    (insert bul (if checkbox "[ ]" ""))    (just-one-space)
    (setq pos (point))--- 3840,3846       (open-line 1)) ((<= (point) eow)      (beginning-of-line 1))!    (t (newline (if org-blank-before-bullet 2 1    (insert bul (if checkbox "[ ]" ""))
    (just-one-space)    (setq pos (point))Thanks,Ed-- Ed Hirgelt Discovery consists of seeing what everybody has seenand thinking what nobody has thought.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 4.48

2006-09-08 Thread Ed Hirgelt
On 9/8/06, Carsten Dominik <[EMAIL PROTECTED]> wrote:
4.49 is up, with the bug fixed.Thanks for the quick turn around.  That fixed the problem.Ed-- Ed Hirgelt   Discovery consists of seeing what everybody has seenand thinking what nobody has thought.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Emphasis font-lock question.

2006-09-08 Thread Ed Hirgelt
On 9/8/06, Alex Bochannek <[EMAIL PROTECTED]> wrote:
It's OK to me if */foo/* means italic and bold (this is how Gnusrendered your example), but */foo/bar* shouldn't. Markers, stacked or otherwise, should come in symmetrical pairs.Nice example because there is a symmetric pair there.  I have always thought that this was a very ambiguous notation.  I can see */foo/bar* meaning that foo is in bold italic and bar is just bold with the two words run together.
For this reason (pesky slashes in path names, + as bullet characters, underscores in names) I've abandoned this notation.  The @<> is more verbose, but unambiguous.-=Ed=--- Ed Hirgelt 
Discovery consists of seeing what everybody has seenand thinking what nobody has thought.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 4.48

2006-09-08 Thread Ed Hirgelt
On 9/8/06, Carsten Dominik <[EMAIL PROTECTED]> wrote:
I am releasing Org-mode 4.48, as usually at the addressCarsten, I found a difference in exporting between 4.47 & 4.48.  The attached file demonstrates the problem and the HTML that was generated.
Thanks,Ed-- Ed Hirgelt 925.324.8563Discovery consists of seeing what everybody has seenand thinking what nobody has thought.


bullet.org
Description: Binary data
Title: Org 4.48 export difference



Org 4.48 export difference
Table of Contents

1 The Problem

1.1 Emacs Version


2 Bullet items -- with blank
3 Bullet items -- without blank
4 Similar Problem with headings

4.1 Heading 1 ** Heading 2
4.2 Heading 3




1 The Problem



With 4.48, bulleted items must be separated by a blank line.  If not,
pairsof items will appear together in the resulting output.  The first item
below is exported properly, the second isn't.


1.1 Emacs Version



21.4 (patch 19) "Constant Variable" XEmacs Lucid  (Cygwin)


2 Bullet items -- with blank




First



Second



Third



3 Bullet items -- without blank




First   + Second


Third   + Fourth



4 Similar Problem with headings



A similar problem (or the same one) involves outline headings that are not
separated by blank lines as the three items 


4.1 Heading 1 ** Heading 2


4.2 Heading 3


 Author: Edward S. Hirgelt
<[EMAIL PROTECTED]>

 Date: 2006/09/08 09:52:44


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


Re: [Orgmode] Clock reporting

2006-09-07 Thread Ed Hirgelt
On 9/7/06, J. David Boyd <[EMAIL PROTECTED]> wrote:
It works okay in Orgmode 4.47 and my build of Emacs (22.0.50).This may be an XEmacs thing.  I tried this out when I saw the original report and got the same behavior.  I'm running XEmacs 21.4.19
 (Cygwin).  I did not have a #+BEGIN in the file at the time (which may be another factor).Hope this helps,Ed-- Ed Hirgelt    Discovery consists of seeing what everybody has seenand thinking what nobody has thought.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] Quick fix: 4.47

2006-09-01 Thread Ed Hirgelt
Looks good -- my problem is gone.  Thanks for the quick work!EdOn 9/1/06, Carsten Dominik <[EMAIL PROTECTED]
> wrote:I am making a quick release, fixing the two reported bugs:  Makefile
missing, and problems in XEmacs with make-frame, both fixed now.  Sorryfor the mess, and thanks for the quick reports from Ed and Daniel.http://www.astro.uva.nl/~dominik/Tools/org/
- Carsten___Emacs-orgmode mailing listEmacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode-- Ed Hirgelt 925.324.8563Discovery consists of seeing what everybody has seenand thinking what nobody has thought.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] org-mode 4.46

2006-09-01 Thread Ed Hirgelt

On 9/1/06, Carsten Dominik <[EMAIL PROTECTED]> wrote:



at http://www.astro.uva.nl/~dominik/Tools/org


Changes in version 4.46


I just downloaded and installed 4.46 and find that if I try to create
a new frame from within an org-mode buffer I get wrong argument type:
stringp, t

Just simply invoking M-x make-frame will show the problem.

I'm using XEmacs 21.4.19 (on Cygwin).

Thanks,
Ed

--
Ed Hirgelt 925.324.8563

Discovery consists of seeing what everybody has seen
and thinking what nobody has thought.


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


Re: [Emacs-orgmode] Managing files?

2006-08-31 Thread Ed Hirgelt

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

Hi, I've been using emacs-org for a while.  And I always find it's so
troublesome to manage various files in emacs-org.  ... moving files around,
storing files and changing files corresponding to a typical project
are not easily done in emacs-org and need much more work.


One way I handle this is to use environment variables to define the
root directory of a project.  Then your file links can look like
[[file:$proj1/Docs/foo.pdf]].

This requires a little hack to org-open-file to call
substitute-in-file-name. I've included below the start of that
function so you can see what I did.  It does make certain
restructuring easy.

Hope this helps.

Ed

(defun org-open-file (path &optional in-emacs line search)
 "Open the file at PATH.
First, this expands any special file name abbreviations.  Then the
configuration variable `org-file-apps' is checked if it contains an
entry for this file type, and if yes, the corresponding command is launched.
If no application is found, Emacs simply visits the file.
With optional argument IN-EMACS, Emacs will visit the file.
Optional LINE specifies a line to go to, optional SEARCH a string to
search for.  If LINE or SEARCH is given, the file will always be
opened in Emacs.
If the file does not exist, an error is thrown."
 (setq in-emacs (or in-emacs line search))
 (let* ((file (if (equal path "")
   buffer-file-name
 (substitute-in-file-name (expand-file-name path
 (apps (append org-file-apps (org-default-apps)))




--
Ed Hirgelt
Discovery consists of seeing what everybody has seen
and thinking what nobody has thought.


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


[Emacs-orgmode] Problem with org-publish-get-plists

2006-08-25 Thread Ed Hirgelt

I was having problems publishing with 2 projects in the project list.
I tracked it down to the org-publish-files hash table.  All the files
from both projects were mapped to the same project, the last one.
This was caused by org-publish-get-plists.  Below is the modified
version that seems to work nicely for me.

The trick as that plists was getting appended to each time through the
loop which is great for the return value, but the loop over the
content of plists assumed that project applied to all.  This change
uses single to be the current element in plists. The return value
remains the same.

Hope this helps.

Thanks,
Ed
-

(defun org-publish-get-plists (&optional project-name)
 "Return a list of property lists for project PROJECT-NAME.
When argument is not given, return all property lists for all projects."
 (let ((alist (if project-name
   (list (assoc project-name org-publish-project-alist))
 org-publish-project-alist))
(project nil)
(plists nil)
(single nil)
(components nil))

   ;;
   ;;
   (while (setq project (pop alist))
 ;; what kind of project is it?
 (if (setq components (plist-get (cdr project) :components))
  ;; meta project. annotate each plist with name of enclosing project
  (setq single
(apply 'append
   (mapcar 'org-publish-get-plists components)))
;; normal project
(setq single (list (cdr project
 ;;
 (setq plists (append plists single))
 (dolist (p single)
(let* ((exclude (plist-get p :exclude))
   (files (org-publish-get-base-files p exclude)))
  (dolist (f files)
(puthash (file-truename f) (car project) org-publish-files)
   plists))


--
Ed Hirgelt

Discovery consists of seeing what everybody has seen
and thinking what nobody has thought.


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