Is it possible to embed youtube video in wordpress post created with org2blog

2024-05-09 Thread Steinar Bang
I use org2blog to create posts for https://steinar.bang.priv.no

Right now I'm working on a blog post where I would like to embed a
youtuble video, but I can't figure out how.

Is it possible?

I tried the obvious approach, which is the same way I embed images, i.e.
 [[https://www.youtube.com/watch?v=tcihVdB7oU8]]

But that only showed the URL in the blog post

(Note: the blog post isn't posted yet, it's just a draft, so this could
be a difference in the preview)

Thanks!


- Steinar



Re: org2blog: get horizontal scrollbar on code examples?

2020-04-04 Thread Steinar Bang
> Christian Moe :

> Try adding

>  .org-src-container .src { overflow: auto; white-space: nowrap }

> to the CSS, e.g.:

>   #+html_head_extra: .org-src-container .src { overflow: auto; 
> white-space: nowrap }

Thanks for the tip, Christian!

The "#+html_head_extra" example didn't work, because the SOAP and/or
wordpress HTML parser, strips off everything it doesn't like.

But I have wordpress premium, so I have the possibiliy of adding CSS: 
https://wp.me/PEmnE-Bt

I tried adding:
 .org-src-container .src {
overflow: auto;
white-space: nowrap;
 }

and that gave me a scrollbar, but unfortunately everything is put on a
single line.

Removing "white-space: nowrap" gives me the line feeds back, but also
loses the horisontal scroll bar.

According to what google tells me
overflow: auto;
should be enough to get scrollbars...?

The pre element has
white-space: pre-wrap;
word-wrap: break-word;
are those the problem?

Hm... https://www.w3schools.com/cssref/pr_text_white-space.asp ?

Tried:
 .org-src-container .src {
overflow: auto;
white-space: pre;
 }

Yep! That worked!

Needed to get the same formatting on command line examples as well, so I
ended up with: 
 .org-src-container .src, .example {
overflow: auto;
white-space: pre;
 }

Thanks again!



org2blog: get horizontal scrollbar on code examples?

2020-04-04 Thread Steinar Bang
Does anyone know of a way to get horizontal scrollbars on code examples,
instead of line breaks?

I try to make code examples as horizontally compact, but sometimes
that's not enough, see e.g. some maven  elements here, and
the maven command line examples:
 
https://steinar.bang.priv.no/2020/03/30/how-to-get-test-coverage-back-in-sonarcloud-maven-builds/



Re: How to avoid "Listing 1" on all code examples in org2blog export to wordpress?

2019-12-28 Thread Steinar Bang
>>>>> Steinar Bang :

>> Platform: GNU Emacs 26.3 (build 1, i686-w64-mingw32) of 2019-08-29
>> Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ 
>> c:/ProgramFiles/emacs-26.3-i686/share/emacs/26.3/lisp/org/)
>> Org2Blog 1.1.1

>> When I export to wordpress I get "Listing 1" on all text or code
>> examples in the wordpress blog, se e.g.
>>  
>> https://steinar.bang.priv.no/2019/11/30/rewriting-applications-to-use-pax-jdbc-config-and-liquibase/

>> Is there a way to lose the "Listing 1" text completely? 

> I haven't been able to remove them from the export, which would have
> been my preferred solution,

The two lines of ox-html.el that produce "Listing 1", are:
 https://github.com/bzg/org-mode/blob/master/lisp/ox-html.el#L2401
and
 https://github.com/bzg/org-mode/blob/master/lisp/ox-html.el#L3487

I think the second one can be made empty by giving the code example an
empty caption (and this is probably also the one hidden by the CSS?)

But I have one case where neither the CSS suppression or an empty
caption works.  It still shows the useless and meaningless "Listing 1".

Very annoying.



Re: How to avoid "Listing 1" on all code examples in org2blog export to wordpress?

2019-12-28 Thread Steinar Bang
>>>>> Steinar Bang :

> Platform: GNU Emacs 26.3 (build 1, i686-w64-mingw32) of 2019-08-29
>   Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ 
> c:/ProgramFiles/emacs-26.3-i686/share/emacs/26.3/lisp/org/)
>   Org2Blog 1.1.1

> When I export to wordpress I get "Listing 1" on all text or code
> examples in the wordpress blog, se e.g.
>  
> https://steinar.bang.priv.no/2019/11/30/rewriting-applications-to-use-pax-jdbc-config-and-liquibase/

> Is there a way to lose the "Listing 1" text completely? 

I haven't been able to remove them from the export, which would have
been my preferred solution, but I have been able to make them not show.

I googled for 'org export "listing 1"' and found a mention of the CSS
class listing-number, so I googled for 'org export "listing-number"' and
found:
 
https://github.com/emacs-china/org-mode/blob/master/etc/ORG-NEWS#listings-with-captions-are-now-numbered-in-html-export

So from https://mysite.wordpress.com/wp-admin/ I clicked on
 Appearance->Customize
and then clicked on
 CSS

Then I pasted the following into the text field
 .listing-number { display: none; }
and clicked on the "Publish" button.

And then the "Listing 1" titles were gone (or at least: not shown) in
the blogposts.



How to avoid "Listing 1" on all code examples in org2blog export to wordpress?

2019-12-27 Thread Steinar Bang
Platform: GNU Emacs 26.3 (build 1, i686-w64-mingw32) of 2019-08-29
  Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ 
c:/ProgramFiles/emacs-26.3-i686/share/emacs/26.3/lisp/org/)
  Org2Blog 1.1.1

When I export to wordpress I get "Listing 1" on all text or code
examples in the wordpress blog, se e.g.
 
https://steinar.bang.priv.no/2019/11/30/rewriting-applications-to-use-pax-jdbc-config-and-liquibase/

Is there a way to lose the "Listing 1" text completely? 

Or failing that: is there a way to increment the number so that they
aren't all "1"?

Thanks!



Re: org2blog fails during upload with: org-export-barf-if-invalid-backend: Unknown "nil" back-end: Aborting export

2019-12-15 Thread Steinar Bang
>>>>> Steinar Bang :

> Platform: Windows 10,
> GNU Emacs 26.3 (build 1, i686-w64-mingw32) of 2019-08-29
>   Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ 
> c:/ProgramFiles/emacs-26.3-i686/share/emacs/26.3/lisp/org/)
>   Org2Blog Runtime: Org2Blog 1.1.1, MetaWeblog 1.1.1, XML-RPC 1.6.12

> I've installed org2blog from melpa stable following the instructions in
>  https://github.com/org2blog/org2blog#using-a-package

> I've created a template article and have successfully logged in to the
> blog
>  https://github.com/org2blog/org2blog#make-your-first-post-in-less-5-minutes

> However exporting buffer fails with the error message
>  org-export-barf-if-invalid-backend: Unknown "nil" back-end: Aborting export

> I have googled the error message and found this old thread:
>  https://www.mail-archive.com/emacs-orgmode@gnu.org/msg105337.html

> I have manually loaded ox-org as suggested in the thread, but that
> didn't make the problem go away.
>  https://www.mail-archive.com/emacs-orgmode@gnu.org/msg105374.html

I read the source code and manually loaded ox-wp:
 M-x load-library ox-wp RET

And then "Save post draft" saved the article.

Now I have to figure out why installing the package from melpa statble
wasn't enough. 



org2blog fails during upload with: org-export-barf-if-invalid-backend: Unknown "nil" back-end: Aborting export

2019-12-15 Thread Steinar Bang
Platform: Windows 10,
  GNU Emacs 26.3 (build 1, i686-w64-mingw32) of 2019-08-29
  Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ 
c:/ProgramFiles/emacs-26.3-i686/share/emacs/26.3/lisp/org/)
  Org2Blog Runtime: Org2Blog 1.1.1, MetaWeblog 1.1.1, XML-RPC 1.6.12

I've installed org2blog from melpa stable following the instructions in
 https://github.com/org2blog/org2blog#using-a-package

I've created a template article and have successfully logged in to the
blog
 https://github.com/org2blog/org2blog#make-your-first-post-in-less-5-minutes

However exporting buffer fails with the error message
 org-export-barf-if-invalid-backend: Unknown "nil" back-end: Aborting export

I have googled the error message and found this old thread:
 https://www.mail-archive.com/emacs-orgmode@gnu.org/msg105337.html

I have manually loaded ox-org as suggested in the thread, but that
didn't make the problem go away.
 https://www.mail-archive.com/emacs-orgmode@gnu.org/msg105374.html

Does anyone know what the problem might be?

Thanks!

Stack trace from the error message:
Debugger entered--Lisp error: (error "Unknown \"nil\" back-end: Aborting 
export")
  signal(error ("Unknown \"nil\" back-end: Aborting export"))
  error("Unknown \"%s\" back-end: Aborting export" nil)
  org-export-barf-if-invalid-backend(nil)
  org-export-as(wp nil nil t (:section-numbers nil :with-priority nil 
:with-sub-superscript nil :with-toc nil :with-tags nil :with-todo-keywords nil 
:wp-keep-new-lines nil :wp-latex t :wp-shortcode nil :tags-as-categories nil 
:wp-shortcode-langs-map nil))
  org-export-to-buffer(wp "*Org WordPress Export*" nil nil nil t 
(:section-numbers nil :with-priority nil :with-sub-superscript nil :with-toc 
nil :with-tags nil :with-todo-keywords nil :wp-keep-new-lines nil :wp-latex t 
:wp-shortcode nil :tags-as-categories nil :wp-shortcode-langs-map nil) 
#f(compiled-function () #))
  ox-wp-export-as-wordpress(nil nil (:section-numbers nil :with-priority nil 
:with-sub-superscript nil :with-toc nil :with-tags nil :with-todo-keywords nil 
:wp-keep-new-lines nil :wp-latex t :wp-shortcode nil :tags-as-categories nil 
:wp-shortcode-langs-map nil))
  ox-wp-export-as-string(nil nil (:section-numbers nil :with-priority nil 
:with-sub-superscript nil :with-toc nil :with-tags nil :with-todo-keywords nil 
:wp-keep-new-lines nil :wp-latex t :wp-shortcode nil :tags-as-categories nil 
:wp-shortcode-langs-map nil))
  (org-no-properties (ox-wp-export-as-string nil subtree-p export-options))
  (org2blog--upload-files-replace-urls (org-no-properties 
(ox-wp-export-as-string nil subtree-p export-options)))
  (save-excursion (org2blog--upload-files-replace-urls (org-no-properties 
(ox-wp-export-as-string nil subtree-p export-options
  (let ((result (save-excursion (org2blog--upload-files-replace-urls 
(org-no-properties (ox-wp-export-as-string nil subtree-p export-options)) 
result)
  org2blog--export-as-html(nil (:section-numbers nil :with-priority nil 
:with-sub-superscript nil :with-toc nil :with-tags nil :with-todo-keywords nil 
:wp-keep-new-lines nil :wp-latex t :wp-shortcode nil :tags-as-categories nil 
:wp-shortcode-langs-map nil))
  (setcdr (assoc "description" post) (org2blog--export-as-html subtree-p 
export-options))
  (let ((post (if subtree-p (org2blog--parse-subtree-entry) 
(org2blog--parse-buffer-entry (if tags-as-categories (progn (setcdr (assoc 
"categories" post) (cdr (assoc "tags" post))) (setcdr (assoc "tags" post) 
nil))) (setcdr (assoc "date" post) (org2blog--convert-timestamp-to-iso 
(org2blog--insert-current-time subtree-p (cdr (assoc "date" post) (setcdr 
(assoc "description" post) (org2blog--export-as-html subtree-p export-options)) 
post)
  (save-restriction (let ((post (if subtree-p (org2blog--parse-subtree-entry) 
(org2blog--parse-buffer-entry (if tags-as-categories (progn (setcdr (assoc 
"categories" post) (cdr (assoc "tags" post))) (setcdr (assoc "tags" post) 
nil))) (setcdr (assoc "date" post) (org2blog--convert-timestamp-to-iso 
(org2blog--insert-current-time subtree-p (cdr (assoc "date" post) (setcdr 
(assoc "description" post) (org2blog--export-as-html subtree-p export-options)) 
post))
  (save-excursion (save-restriction (let ((post (if subtree-p 
(org2blog--parse-subtree-entry) (org2blog--parse-buffer-entry (if 
tags-as-categories (progn (setcdr (assoc "categories" post) (cdr (assoc "tags" 
post))) (setcdr (assoc "tags" post) nil))) (setcdr (assoc "date" post) 
(org2blog--convert-timestamp-to-iso (org2blog--insert-current-time subtree-p 
(cdr (assoc "date" post) (setcdr (assoc "description" post) 
(org2blog--export-as-html subtree-p export-options)) post)))
  (let* ((export-options (org2blog--collect-export-options)) 
(tags-as-categories (plist-get export-options :tags-as-categories))) 
(save-excursion (save-restriction (let ((post (if subtree-p 
(org2blog--parse-subtree-entry) (org2blog--parse-buffer-entry (if 
tags-as-categories (progn (setcdr (assoc 

[O] Issue with workaround (referring to sonarqube badges in github README.org)

2017-11-01 Thread Steinar Bang
I use org-mode syntax for my github README file, because I'm more
familiar with it, and because I use org-mode.

I ran into a problem when trying to use SonarQube status badges from
SonarCloud: the badge images didn't show up, instead the URL to the REST
API call generating the badge was shown[1].

According to a comment response on the issue[2], this is caused by
org-mode, because org-mode only creates image links for URLs containing
a file extension matching a supported image type.

Luckily the same message suggested a workaround: add the
pseudo-page-internal-link "#.svg" to the image URLs.

The results can be viewed on[3].

References:
[1] 
[2] 
[3] 




Re: [O] Adding a simple list item expands the entire simple list

2016-06-13 Thread Steinar Bang
> Marco Wahl :


>> Will there be a new ELPA package with the fix soon?

> I don't know.

> At least I looked into the issue and found the opening of the list is
> caused by a call to `org-reveal' in function `org-insert-heading'.

I reported the problem as a bug, it has since been fixed, and is fixed
in the latest org package from Gnu ELPA:
 Org-mode version 8.3.4 (8.3.4-82-gc792d6-elpa @ 
c:/Users/sb/.emacs.d/elpa/org-20160613/)




Re: [O] Bug: Adding a simple list item expands the entire simple list [8.3.4 (8.3.4-79-gbd4948-elpa @ c:/Users/sb/.emacs.d/elpa/org-20160606/)]

2016-06-13 Thread Steinar Bang
> Nicolas Goaziou :

> Fixed. Thank you.

Verified fixed in the newest ELPA org-mode, ie.
 Org-mode version 8.3.4 (8.3.4-82-gc792d6-elpa @ 
c:/Users/steinar.bang/.emacs.d/elpa/org-20160613/)

Thanks!


- Steinar




[O] Bug: Adding a simple list item expands the entire simple list [8.3.4 (8.3.4-79-gbd4948-elpa @ c:/Users/sb/.emacs.d/elpa/org-20160606/)]

2016-06-10 Thread Steinar Bang
What I did do:
I pressed M-RET to insert a new item in an org simple list, with the
other items, some containing sub lists with items, closed.

What I expected to happen:
I expected the items that were closed to stay closed, and a new item to
be inserted.

What happened instead:
When the item was inserted, the entire simple list tree was expanded.

To explain what I mean by "expanded":

If I have
 ** Item1
  - First item of simple list
- Child of first item of simple list
  - Second item of simple list
- Child of second item
  - Child of child of second item
 ** Item2

and have most of the nodes closed, like this:
 ** Item1
  - First item of simple list...
  - Second item of simple list...
 ** Item2

and then insert a new item into the simple list, the entire tree will

open (like the first example).

Emacs  : GNU Emacs 24.4.1 (i686-pc-mingw32)
 of 2014-10-24 on LEG570
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-archive-hook '(org-attach-archive-delete-maybe)
 org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo 
org-habit org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
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-log-into-drawer t
 org-export-backends '(ascii html icalendar latex md odt)
 org-load-hook '((lambda nil (require (quote org-install)) (add-to-list (quote 
auto-mode-alist) (quote ("\\.org\\'" . org-mode))) (global-set-key ".l" (quote 
org-store-link)) (global-set-key ".a" (quote org-agenda)) (global-set-key ".b" 
(quote org-iswitchb))
  (add-hook (quote org-mode-hook) (quote turn-on-font-lock)) 
(add-hook (quote org-mode-hook) (quote turn-off-auto-fill)) (add-hook (quote 
org-mode-hook) (quote turn-on-visual-line-mode)) (if running-emacs22 
(transient-mark-mode 1)))
 )
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '(turn-on-visual-line-mode turn-off-auto-fill turn-on-font-lock 
#[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-clock-into-drawer "CLOCK"
 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 '((emacs-lisp . t) (sparql . t))
 org-confirm-shell-link-function 'yes-or-no-p
 )



[O] Adding a simple list item expands the entire simple list

2016-06-09 Thread Steinar Bang
Platform: Intel i7
  Org-mode version 8.3.4 (8.3.4-79-gbd4948-elpa @ 
c:/Users/steinar.bang/.emacs.d/elpa/org-20160606/)
  GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570

Adding an item to a simple list will expand the entire simple list tree
in this version.

Ie. if I have
 ** Item1
  - First item of simple list
- Child of first item of simple list
  - Second item of simple list
- Child of second item
  - Child of child of second item
 ** Item2

and have most of the nodes closed, like this:
 ** Item1
  - First item of simple list...
  - Second item of simple list...
 ** Item2

and then insert a new item into the simple list, the entire tree will
open (like the first example).

Has anyone else seen this?  Is it fixed in git?  Will there be a new
ELPA package with the fix soon?

Thanks!


- Steinar




Re: [O] Status of MobileOrg on IOS??

2015-05-14 Thread Steinar Bang
 John Hendy jw.he...@gmail.com:

 On Tue, May 12, 2015 at 11:43 AM, David Masterson dsmaster...@gmail.com 
 wrote:
 I've asked this before and I'll probably continue asking as I move in
 and out of using it, but...
 
 What's the development status of MobileOrg -- particularly on IOS?  From
 what I see, it appears that development is stalled.  My attempts at
 trying to use it show the following:
 
 * It seems to work even on my iPhone 6 as far as it goes
 * It only seems to support basic viewing and minimal editting

 What would you expect/like?

I'm not David, and I use android and not IOS, but I would like to see
habit tracking implemented, including habit tracking with comments.

It would also be nice to have tables, especially with all of the
features in emacs org.




Re: [O] Bleeding edge in elpa

2015-03-10 Thread Steinar Bang
 Nikolai Weibull n...@disu.se:

 Would it be of interest to anyone else if the bleeding edge version
 was available via elpa?

Isn't this what's MELPA is for?
 http://www.emacswiki.org/emacs/MELPA

Ie. GNU ELPA for the official releases and MELPA for git master HEAD.




Re: [O] Org mode for the new guy.

2015-02-21 Thread Steinar Bang
I also wrote my own howto a while back (centered around what I was using
t the time):
 http://steinar.bang.priv.no/2012/05/02/using-org-mode/




Re: [O] odt export of subtree: set/suppress the date in the export

2014-11-09 Thread Steinar Bang
 CM m...@christianmoe.com:

 I cannot reproduce either problem, though I seem to remember some
 difficulty with changing date fields in the past. What Org version are
 you using?

Um... a heap of different versions it looks like, on the systems I use
regularily, some from ELPA (one of the ELPA archives), some from org
git, and the version delivered with emacs 24.3.

Right now I'm on a debian box using git org, and I've done
 make clean
 git pull
 make
and started a fresh emacs.

And here I see a different behaviour

 You can turn the use of date fields in LibreOffice on or off with
 org-odt-use-date-fields. With date fields set to t:

Hm... 'C-h v org-odt-use-date-fields RET' says:
 org-odt-use-date-fields is a variable defined in `ox-odt.el'.
 Its value is nil

 - Setting :EXPORT_DATE: in the subtree and exporting the subtree results
   in an ODT export with that date in the header, not today's date.

 - Inspecting the date field shows that the date is fixed. (In
   LibreOffice, right-click the date and select Fields from the popup
   menu.)

 - Indeed, the date remains unchanged when I do Update all or export
   to PDF from LibreOffice does indeed keep the same date.

Hm... I may play around with these settings, but for now I'm happy with
the default behaviour (no date stamp).

I'll go to git org on all of my emacsen.

Thanks!




Re: [O] odt export of subtree: set/suppress the date in the export

2014-11-08 Thread Steinar Bang
 Christian Moe m...@christianmoe.com:

 Does setting the subtree's :EXPORT_DATE: property to the date of the
 meeting do what you're looking for?

Nope.  Still outputs the date of the export.

And since writing the posting I've discovered another annoying property
of the date: it will switch to the current date at any time of saving of
the odt document (eg. when doing a Save as PDF).

So I think what I want is to zap that date stamp alltogether, to save me
from having to delete it in the odt file before creating a PDF from it.




[O] odt export of subtree: set/suppress the date in the export

2014-11-03 Thread Steinar Bang
 Emacs version: GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN
 Org version: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ 
c:/ProgramFiles/emacs-24.3/lisp/org/)

I use org to take notes in meetings.

When I make an ODT export of the subtree for the meeting minutes, I
would like the date in the ODT document to be the date of the meeting
and not the date when I'm making the export.

Is this possible?

Thanks!




Re: [O] Using Emacs Org-mode on a server with ssh on an iPad

2014-04-21 Thread Steinar Bang
 Eric S Fraga e.fr...@ucl.ac.uk:

 However, the one recommendation I would make is that, if you can, you
 should run emacs within screen or byobu on the host so that
 disconnections keep the emacs instance running.  I found it quite
 useful to have that emacs running continuously while I was out and
 about.

mosh is really nice for remoting like this:
 http://mosh.mit.edu/

Don't know if there is a mosh implementation for iOs, though... none
listed on the site (two applications implementing mosh listed for
Android):
 http://mosh.mit.edu/#getting

The wikipedia article mentions something called iSSH, which is said to
have a mosh protocol plugin:
 http://en.wikipedia.org/wiki/Mosh_(software)#Supported_platforms

A short summary of mosh behaviour:
 - An SSH connection is used to connect and authenticate the user
 - After the initial SSH connection mosh switches to an UDP protocol
   that tries to keep the local terminal emulator in sync with a
   terminal emulator process running on the host, automatically handling
   disconnects, suspend, new IP numbers, etc.

When I had a working linux netbook I used mosh to connect to a couple of
servers, and it worked perfectly from hotel WiFi all over Europe, and my
ICE modem, as well as other places in the world: as soon as I had a
connection, the mosh window was live again, and at the state where I
left it (or the process on the server side had left it, actually).




Re: [O] Weekly clock reports for the previous or current week, with a per-dayproject breakdown?

2013-07-04 Thread Steinar Bang
 Bastien b...@gnu.org:

 Steinar Bang s...@dod.no writes:
 Hm... I get invalid key when pressing 'v' after doing 'C-c a'... am I
 missing some key binding or other setting?

 `C-c a' should be followed by the key for the agenda view you want to
 display.

Yes, I know.

 `v w' does its job when an agenda view is already displayed.

Yes, that's where and when it complains about invalid key v, when I
press v.

(I had to bind C-c a myself, that's why I was wondering if I was
missing some other keybinding)

Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ 
c:/ProgramFiles/emacs-24.3/lisp/org/)
(ie. it's the version of org that came with the windows build of emacs 24.3)




[O] Weekly clock reports for the previous or current week, with a per-dayproject breakdown?

2013-07-02 Thread Steinar Bang
Is it possible to get a clock report for the previous week (and the
current week), with a breakdown of project and day? (this is how I need
it to fill out my time sheets)

Using Bernt Hansens instructions[1], I have been able to get the hours
for the current month: C-c a  a v m b R (in the clock table at the
bottom) 

And by experimentation I have found that this does the same thing for
the current week: C-c a  a b R

The command here http://doc.norang.ca/org-mode.html#VerifyingClockData
ie.: C-c a v m b v c
sounds from the description like it could do what I want.

However, I get only the days and their date, and the week number.  I
don't see any clocks for the different days...?

Thanks!

- Steinar


[1] http://doc.norang.ca/org-mode.html#TimeReportingAndTracking




Re: [O] Weekly clock reports for the previous or current week, with a per-dayproject breakdown?

2013-07-02 Thread Steinar Bang
 l.stelm...@samsung.com (Ɓukasz Stelmach):

 How about

 + entering the agenda: C-c a 

 + choosing week view: v w

Hm... I get invalid key when pressing 'v' after doing 'C-c a'... am I
missing some key binding or other setting?




Re: [O] [OT] Gnus mail tutorial?

2013-05-26 Thread Steinar Bang
 Richard Lawrence richard.lawre...@berkeley.edu:

 I used Gnus with an IMAP account for a while, but found that (in
 addition to being intimidating and complicated) it was annoyingly slow.

FWIW nnimap was rewritten a couple of years back, and on an IMAP server
that supports QRESYNC (eg. dovecot), it is quite fast these days.

I also think, but I don't know for sure, that if you start up gnus
without any config, it will ask for a server.

And if you give nnimap as the method, and if you give the DNS name of
the server running the IMAP server, and if that server is running on
port 143, then things should more or less work.  All of the folders on
the IMAP server will appear as nnimap groups.

But I could be wrong...:-)




Re: [O] Org-mode as a replacement for Google Reader

2013-04-14 Thread Steinar Bang
 Karl Voit devn...@karl-voit.at:

 On the one hand, I do not have any Gnus experience

It doesn't have to be Gnus.  Any NNTP client will work with feeds on
gwene.  On the PC you could eg. use Thunderbird.

 and from the things I already read about Gnus configuration, I want to
 keep it that way.

There is a big difference in what you _can_ do, and what you have to do.

If you just want to read news with NNTP you basically only have to point
it to at least one NNTP server (eg. gwene).

 On the other hand, Gnus does not offer something to sync with for the
 Android platform AFAIK.

If you want a gwene reader for the android platform you will have to
find an NNTP client for android.  I don't know if there is one... well
seems to be a couple:
 https://play.google.com/store/apps/details?id=ken.android.nntpreader.prohl=no




Re: [O] Possible to both clock into :CLOCK: and put notes in :LOGBOOK: ?

2013-02-26 Thread Steinar Bang
 Achim Gratz strom...@nexgo.de:
 Steinar Bang writes:

 But if I have this setting then notes created with `C-c C-z' end up on
 the top level, even if I manually create a :LOGBOOK: drawer.
 
 Is it possible to have both?

 Unless it's been broken recently it should, but you probably need to
 customize org-log-into-drawer to t (for LOGBOOK) or set the property
 LOG_INTO_DRAWER if you want to keep this setting different in
 different subtrees.

I examined org-log-drawer with
 C-h v org-log-drawer RET
and it had the value of `nil'.

I customized by selecting LOGBOOK (ie. `t') from the value menu, and now
notes end up in the :LOGBOOK: drawer in the same nodes where clocking
info ends up in the :CLOCK: drawer.

Thanks!




[O] Possible to both clock into :CLOCK: and put notes in :LOGBOOK: ?

2013-02-25 Thread Steinar Bang
Platform: 
 GNU Emacs 23.2.1 (i386-mingw-nt6.1.7600) of 2010-05-08 on G41R2F1
 Org-mode version 7.9.1 (release_7.9.1-321-g9ebf47.dirty-git @ 
c:/Users/steinarb/Documents/git/org-mode/lisp/)


I have org-clock-into-drawer set to CLOCK.

The idea is to put clocking info in the :CLOCK: drawer to avoid clutter,
and this works.

But if I have this setting then notes created with `C-c C-z' end up on
the top level, even if I manually create a :LOGBOOK: drawer.

Is it possible to have both?

Ie. for a particular node, both:
 - Put clocking into the :CLOCK: drawer
 - Put notes into the :LOGBOOK: drawer (if there is one)




Re: [O] Org-mode release 7.9.2

2012-09-30 Thread Steinar Bang
 Memnon Anon gegendosenflei...@googlemail.com:

 ,
 |   * New special property CLOCKSUM_T to display today's clocked time
 |
 | You can use CLOCKSUM_T the same way you use CLOCKSUM. It will
 | display the time spent on tasks for today only.
 `

 This is so *immensely* useful, thanks!

Cool!  I've been looking for something like this for a long time.  Is it
possible to show the CLOCKSUM_T value on the status line as well?




Re: [O] Org-mode release 7.9.2

2012-09-30 Thread Steinar Bang
 Bastien b...@altern.org:

 Steinar Bang s...@dod.no writes:

 Cool!  I've been looking for something like this for a long time.  Is it
 possible to show the CLOCKSUM_T value on the status line as well?

 Do you mean in the mode line?  

Yes.

 Nope, this is not possible.

 The clock mode line will be reworked for 8.0.

Ok, thanks!




Re: [O] org2blog: referencing to other blog posts?

2012-08-28 Thread Steinar Bang
 Puneeth Chaganti puncha...@gmail.com:

 I hope we are talking of org2blog/wp.  There's another package called
 org2blog authored by tehom, that works for blogger.

Yes, org2blog/wp.

[snip!]
 Also is there a way to link related articles, that will show up in the
 wordpress blog.

 I haven't been using WordPress (and org2blog) for quite some time now.

I tried various blogging frameworks for org, and this was the first one
I was able to make work, so I've sort of stuck with it.

 Is there a new feature in WordPress that lets you link related
 articles?

I don't know.  I know very little of WP out of the setup needed to use
org2blog.  I guess this would probably be me making a WP feature
request...? :-)

 Or are you using some plugin?

Nope.  I'm using a spam limiting plugin (can't remember its name), but
that's all.




Re: [O] org2blog: referencing to other blog posts?

2012-08-28 Thread Steinar Bang
 Puneeth Chaganti puncha...@gmail.com:
 On Mon, Aug 27, 2012 at 11:50 PM, Puneeth Chaganti puncha...@gmail.com 
 wrote:

 I think using absolute URLs would be the most robust way of doing
 this, but of course, this process can be simplified, by providing a
 way of inserting those links from within org2blog.  I imagine this
 would use link abbreviations, and provide some sort of a completion
 mechanism to insert links to other posts.  I'll try and get to this,
 some time soon.

 I've implemented something very basic and crude for this.  Feel free
 to try it out and let me know if it works for you and suggest
 improvements.

I will try this out, and give feedback.

Thanks! :-)




[O] org2blog: referencing to other blog posts?

2012-08-26 Thread Steinar Bang
Is there a way to reference other blog posts in org2blog, other than
using absolute URLs for that article on the server?

I will use absolute URLs as a workaround, if there is no way, but it
would feel better to work inside the system.

Also is there a way to link related articles, that will show up in the
wordpress blog.

Thanks!




Re: [O] Feature that org mode needs most

2012-08-21 Thread Steinar Bang
 Bastien b...@altern.org:
 Steinar Bang s...@dod.no writes:

 (The previously clocked item and it's :CLOCK: drawer was opened.  I don't
 know if that was intentional, or not...?)

 This is intentional -- to make sure you see the change.

 But perhaps the message is enough.  Let me know if you think so.

No, I'm good with the current behaviour.

Thanks!




Re: [O] Feature that org mode needs most

2012-08-16 Thread Steinar Bang
 Bastien b...@gnu.org:

 is this known, and has been fixed later than the above commit?  If so, I
 can pull, and try again.

 It should be fixed now, please confirm.

I can confirm it works.  Ie. that it adjusts the end time of the
previously clocked item correctly.

My current latest commit after the pull, is
 952d722dcddb275d84ad6dd356bee2fd5c8027c8

(The previously clocked item and it's :CLOCK: drawer was opened.  I don't
know if that was intentional, or not...?)

Thanks!




Re: [O] Feature that org mode needs most

2012-08-15 Thread Steinar Bang
 Bastien b...@gnu.org:

 Steinar Bang s...@dod.no writes:
 I will pull and try the new functionality.

 Yes -- please let me know.  The drawback of this functionality is that
 it changes things outside of sight, which I don't really like.  You get
 a message, and the subtree of the (possibly distant) clock get unfolded,
 but perhaps the change can be made more visible -- or into control.

My git version of org has commit d02eedc987ab73ae5de5dacf3825536c3252c6e5
as its newest commit.

What happens here is that when I do S-M-down on minutes in the start
time of the current clock, it adjust both the current clock and the
previous clock with 5 minutes, but the cursor ends up in the end time of
the previous clock and have to be moved back to do further adjustments.

is this known, and has been fixed later than the above commit?  If so, I
can pull, and try again.





Re: [O] Bug: File mode specification error: (invalid-function org-check-version) on startup

2012-08-07 Thread Steinar Bang
 Achim Gratz strom...@nexgo.de:

 My guess is that you have outdated autoloads... but please follow
 these steps to produce a meaningful bug report:

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

I have used org-submit-bug-report once, back in July (I think).  And the
report with a minimal test case, just disappeared down a black hole.

Oh well!

 Perhaps also relevant:

[snip!]
 http://orgmode.org/worg/org-hacks.html#compiling-org-without-make

This was indeed relevant.  Recompiling with
 emacs -batch -Q -L lisp -l ../UTILITIES/org-fixup -f 
org-make-autoloads-compile-force
fixed my problem.




[O] Bug: File mode specification error: (invalid-function org-check-version) on startup

2012-08-06 Thread Steinar Bang
Platform: Windows 2008R2 SP1
  GNU Emacs 23.4.1 (i386-mingw-nt6.1.7601) of 2012-02-04 on MARVIN

I pulled org-mode master from git today.  When I tried to open an org
file, it failed, with the following message in the minibuffer:
 File mode specification error: (invalid-function org-check-version)

My previous version (ORIG_HEAD), was:
 cf8d979d8c519ab62a02bc7501baa376b122bf3d

The HEAD after update, was:
 7791d40045ea8b6eef089c362fdf3cb35312a1a8

git bisect identified the the following commit as the culprit:
C:\Users\sb\Documents\git\org-modegit bisect bad
abbea596111611a945d73783b3e8790e76599740 is the first bad commit
commit abbea596111611a945d73783b3e8790e76599740
Author: Bastien Guerry b...@altern.org
Date:   Sat Jul 28 00:55:45 2012 +0200

Move org-element.el from contrib/lisp to lisp/.

* org.el (org-mode-map): Add keybindings to
`org-element-transpose' and `org-narrow-to-element'.
(org-metaup): Fall back on `org-element-drag-backward'.
(org-metadown): Fall back on `org-element-drag-forward'.
Also move chunks of declarations and require statements to
get rid of compiler warnings.

* org-exp-blocks.el (org): Don't require org.  Add declarations.

* org-clock.el (org): Don't require org.

* ob-exp.el (org-list-forbidden-blocks): Add declarations.

:04 04 6669cee7aab025b4761b8a9e54da5cba675b48fc 
3de0787e877cda3d280fa85c61cd945cb305c122 M  contrib
:04 04 8a83fd0e0338ed15b5f9c97c846c485f8447b13d 
169d363447239443ff0be48910fb07cf726bd0c9 M  lisp




[O] Bug: File mode specification error: (invalid-function org-check-version) on startup

2012-08-06 Thread Steinar Bang
Platform: Windows 2008R2 SP1
  GNU Emacs 23.4.1 (i386-mingw-nt6.1.7601) of 2012-02-04 on MARVIN

I pulled org-mode master from git today.  When I tried to open an org
file, it failed, with the following message in the minibuffer:
 File mode specification error: (invalid-function org-check-version)

My previous version (ORIG_HEAD), was:
 cf8d979d8c519ab62a02bc7501baa376b122bf3d

The HEAD after update, was:
 7791d40045ea8b6eef089c362fdf3cb35312a1a8

git bisect identified the the following commit as the culprit:
C:\Users\sb\Documents\git\org-modegit bisect bad
abbea596111611a945d73783b3e8790e76599740 is the first bad commit
commit abbea596111611a945d73783b3e8790e76599740
Author: Bastien Guerry b...@altern.org
Date:   Sat Jul 28 00:55:45 2012 +0200

Move org-element.el from contrib/lisp to lisp/.

* org.el (org-mode-map): Add keybindings to
`org-element-transpose' and `org-narrow-to-element'.
(org-metaup): Fall back on `org-element-drag-backward'.
(org-metadown): Fall back on `org-element-drag-forward'.
Also move chunks of declarations and require statements to
get rid of compiler warnings.

* org-exp-blocks.el (org): Don't require org.  Add declarations.

* org-clock.el (org): Don't require org.

* ob-exp.el (org-list-forbidden-blocks): Add declarations.

:04 04 6669cee7aab025b4761b8a9e54da5cba675b48fc 
3de0787e877cda3d280fa85c61cd945cb305c122 M  contrib
:04 04 8a83fd0e0338ed15b5f9c97c846c485f8447b13d 
169d363447239443ff0be48910fb07cf726bd0c9 M  lisp




Re: [O] Feature that org mode needs most

2012-08-01 Thread Steinar Bang
 Mehul Sanghvi mehul.sang...@gmail.com:

 You can use the S-up and S-down key combinations to adjust the clocks
 for the current activity and the previous one.

Is that previous as in the previous item in the org tree or as the
previously clocked item?

I'm guessing it's the first, because I've used S-up and S-down, but I
haven't seen them adjust the previously clocked item (my clocked items
are often far apart).




Re: [O] How to stop M-down from opening folded items?

2012-05-08 Thread Steinar Bang
 Nicolas Goaziou n.goaz...@gmail.com:

 I think this should be fixed now. Could you confirm this?

I've done
 cd ~/git/org-mode/
 make clean
 git pull
 make
and started a new emacs, and moving list items now works without
unhiding the items moved past.

So I can confirm that it is fixed.

 Thank you for submitting the problem.

Thanks for fixing it!





[O] How to stop M-down from opening folded items?

2012-05-07 Thread Steinar Bang
I use M-up and M-down a lot to move items in plain lists up and down in
the list.  In the org-mode delivered with emacs 23 the item you moved
past stayed folded.  But in git org-mode and in 7.8.09, the item you
move past is opened.

Is there a way to get the old behaviour back?  Ie. that items you move
past with M-up or M-down, stays folded?

Thanks!


- Steinar




Re: [O] How to stop M-down from opening folded items?

2012-05-07 Thread Steinar Bang
 Steinar Bang s...@dod.no:

 I use M-up and M-down a lot to move items in plain lists up and down in
 the list.  In the org-mode delivered with emacs 23 the item you moved
 past stayed folded.  But in git org-mode and in 7.8.09, the item you
 move past is opened.

 Is there a way to get the old behaviour back?  Ie. that items you move
 past with M-up or M-down, stays folded?

Looking at the code of org-list-swap-items it doesn't look like this is
possible to configure.  But I'm not giving up quite yet.

I tried modifying the value of org-cycle-include-plain-lists.

I had org-cycle-include-plain-lists set to the value of integrate.

But changing the value of org-cycle-include-plain-lists to either nil or
t had no effect on org-list-swap-items, that I could see.






Re: [O] Can I export from org mode to org mode?

2012-05-04 Thread Steinar Bang
 Piter_ x.pi...@gmail.com:

 I keep my notes in one big org file. It have grown big
 One solution could be filtering tree and display only the information I need,
 another id to split it into smaller files by topic.
 I would appreciate a hint on how to do the later.

Not the answer you're looking for, but you can archive old stuff to a
separate org file.  Just position the cursor on a node and `C-c C-x C-a'





Re: [O] Habit tracking and table data

2012-05-03 Thread Steinar Bang
 Bernt Hansen be...@norang.ca:

 By default marking it done creates a log entry with just the timestamp
 (no log note).

If I'm going to edit the table directly anyway, I don't really need the
habit tracking functionality.  Or is there something I will be missing
out on, that I don't see...?

Would it be possible to automate the setting of a time stamp in the
first column when creating a new row?





Re: [O] Habit tracking and table data

2012-05-02 Thread Steinar Bang
 Bernt Hansen be...@norang.ca:

 For these types of things I just stick a table in the habit org-mode
 entry and edit it directly, then mark it done without capturing a note.

Umm... could you provide an example...?




Re: [O] Habit tracking and table data

2012-05-01 Thread Steinar Bang
 Bastien b...@gnu.org:

 Steinar Bang s...@dod.no writes:
 I'm logging my bicycling to work using org habit tracking.  I'm using a
 comment to track the time and distance (and average speed).  It would
 have been nice if the habit tracking could have used a table for this.

 Can you give an example of what you are using

*** TODO Til jobb 2012
:LOGBOOK:
- State DONE   from TODO   [2012-04-30 Mon 09:41] \\
  32:50, Skillebekk, Sinsen, Torshovdalen, 15.37km (28.09km/t)
- State DONE   from TODO   [2012-04-27 Fri 16:09] \\
  37:29, Skillebekk, Sinsen, Torshovdalen, 15.35km (24.97km/t)
:END:
:PROPERTIES:
:LAST_REPEAT: [2012-04-30 Mon 09:40]
:LOGGING:  lognoterepeat
:STYLE:habit
:END:
SCHEDULED 2011-07-24 Sun +1d  
   


 and what you would like to use instead?

I'm not quite sure, but I would like to have the numbers in table
columns, and be able to pull out graphs and calculations from them
(eg. overall average speed, best times, worst times).





Re: [O] Error in org2blog/wp-login: Must provide a callback function to url-retrieve

2012-05-01 Thread Steinar Bang
 Steinar Bang s...@dod.no:

 When I try to log in, using `M-x org2blog/wp-login RET', I get the
 following error message in the minibuffer:
  Must provide a callback function to url-retrieve

Are anyone else successfully using org2blog with emacs 23?

I don't think this have worked for any emacs 23.x releases.  In both
emacs 23.1 (Ubuntu 10.4) and 23.4 (debian testing) url-retrieve is
defined like this:
 (defun url-retrieve (url callback optional cbargs)

Ie. with a callback function as the second argument.  In both 1.6.7 (the
ELPA version) and the 1.6.8 (the last release, dating from 2010-03-05)
versions of xml-rpc.el what happens is this: 
  ...
  (cond ((boundp 'url-be-asynchronous) ; Sniff for w3 lib capability
 (if async-callback-function
 (setq url-be-asynchronous t
   url-current-callback-data (list
  async-callback-function
  (current-buffer))
   url-current-callback-func
   'xml-rpc-request-callback-handler)
   (setq url-be-asynchronous nil))
 (url-retrieve server-url t)

Ie. if url-be-asynchronous is defined, url-retrieve is called with t as
the second argument, and this will fail because url-retrieve-internal
tests the argument like so:
  ...
  (if (not (functionp callback))
  (error Must provide a callback function to url-retrieve))

Thoughts?  Possible cures?




Re: [O] Error in org2blog/wp-login: Must provide a callback function to url-retrieve

2012-05-01 Thread Steinar Bang
 Steinar Bang s...@dod.no:

 Are anyone else successfully using org2blog with emacs 23?

 I don't think this have worked for any emacs 23.x releases.

Yes it has.  The problem was mine.  I had a very old setting (older than
2002-03-12, which is as far as my current version control of my home
directory goes), that interfered and caused the wrong branch of a cond
clause to be called (the emacs 20.3 branch):

 (setq w3-user-fonts-take-precedence t ; Use _my_ font.
   w3-user-colors-take-precedence t ; Use _my_ colors.
   w3-honor-stylesheets nil ; No, just do it..
   w3-use-terminal-characters nil ; No weird characters.
   w3-use-terminal-characters-on-tty nil
   w3-horizontal-rule-char 45 ; I said: no weird characters
   w3-display-frames nil
   url-be-asynchronous t
   w3-do-incremental-display t
   url-honor-refresh-requests nil
   w3-delay-image-loads t)

I removed the url-be-asynchronous setting and then xml-rpc worked.




Re: [O] Error in org2blog/wp-login: Must provide a callback function to url-retrieve

2012-05-01 Thread Steinar Bang
 Puneeth Chaganti puncha...@gmail.com:

 Thanks for debugging the problem and sending us updates on it. :)

Yes, I really hate it when I google for my problems and find questions
but no solutions, so I try to avoid giving others that experience. :-)

Anyway, thanks for writing org2blog.  The first real posting (actually
written during Christmas) is now out:
 http://steinar.bang.priv.no/




[O] Habit tracking and table data

2012-04-30 Thread Steinar Bang
I'm logging my bicycling to work using org habit tracking.  I'm using a
comment to track the time and distance (and average speed).  It would
have been nice if the habit tracking could have used a table for this.

I have googled for something similar to this but not found it.  Has
anyone else done something similar?  Does any of the org gurus have any
idea of a different way I could accomplish this?

Thanks!


- Steinar




[O] Error in org2blog/wp-login: Must provide a callback function to url-retrieve

2012-04-30 Thread Steinar Bang
Platform: Intel P4,
  debian testing,
  GNU Emacs 23.4.1 (i486-pc-linux-gnu, GTK+ Version 2.24.10) of 
2012-04-07 on biber, modified by Debian,
  org-mode from git,
  org2blog from git,
  xml-rpc 1.6.7 from ELPA,

I am trying to use org2blog from github, but I am unable to log into the
server.

I have cloned the repo, and set up org2blog according to the README
 https://github.com/punchagan/org2blog/blob/master/README.org

I'm using .netrc for the username and password (as outlined in the emacs
configuration section).

I have installed xml-rpc, using ELPA: http://tromey.com/elpa/

When I try to log in, using `M-x org2blog/wp-login RET', I get the
following error message in the minibuffer:
 Must provide a callback function to url-retrieve

Anyone got an idea?  Puneeth...?


The full stack trace, is:

Debugger entered--Lisp error: (error Must provide a callback function to 
url-retrieve)
  signal(error (Must provide a callback function to url-retrieve))
  error(Must provide a callback function to url-retrieve)
  url-retrieve-internal(http://myuser.mydomain.com/xmlrpc.php; t (nil))
  url-retrieve(http://myuser.mydomain.com/xmlrpc.php; t)
  xml-rpc-request(http://myuser.mydomain.com/xmlrpc.php; ((methodCall nil 
(methodName nil metaWeblog.getCategories) (params nil ... ... ...))) nil)
  xml-rpc-method-call-async(nil http://myuser.mydomain.com/xmlrpc.php; 
metaWeblog.getCategories (1 myuseradmin supersikkertpassord))
  xml-rpc-method-call(http://myuser.mydomain.com/xmlrpc.php; 
metaWeblog.getCategories 1 myuseradmin supersikkertpassord)
  metaweblog-get-categories(http://myuser.mydomain.com/xmlrpc.php; 
myuseradmin supersikkertpassord 1)
  org2blog/wp-login()
  call-interactively(org2blog/wp-login t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)




Re: [O] Usage of disqus instead of mailinglist considered harmful

2012-04-16 Thread Steinar Bang
 Karl Voit devn...@karl-voit.at:

 Mailinglists - though currently handled by gmane which is also a
 company -

Gmane isn't a company and does not handle the org mailing list(s).

Gmane is one man that gets donated server location, old servers, and
network hosting from his employer.

And gmane is an email-NNTP gateway that also works as a searchable
archive accessible with NNTP and HTTP.




Re: [O] Blog-like sitemap for org-publish

2012-01-28 Thread Steinar Bang
 Bastien b...@altern.org:
 Jon Anders Skorpen jasko...@mindmutation.net writes:

 Yes. Here is a link to a test blog with some test posts, and one real
 post in norwegian.

 http://beta.mindmutation.net

 This looks really great!  

 Maybe the most simple thing to do for now is to submit org-blog.el as
 a separate file to the mailing list, and add FIXME comments in
 functions that borrow too much code from org-publish.el -- it will
 help refactoring.

Did anything more happen with this?  There is no org-blog.el in
contrib/lisp, at least...?





Re: [O] Minimal overhead Org-mode blogging system

2012-01-19 Thread Steinar Bang
 Puneeth Chaganti puncha...@gmail.com:

 This is totally home brew stuff.  

Well, thank you for sharing this home brew stuff.
I've been trying to use the other org based blog solutions, but they
have all failed for some reason or other, and they have also seemed
abandoned. 

 Sorry for the trouble you are having, in getting it to run.

No worries! :-)

 Try commenting out the lines 257, 258 in reprise.py and see if that
 works for you.  I'll take a look later, and try to see if this can be
 improved.

Yep, commenting out the tag cloud generation made the reprise.py script
run witout failing.

Thanks!




Re: [O] Minimal overhead Org-mode blogging system

2012-01-15 Thread Steinar Bang
 Puneeth Chaganti puncha...@gmail.com:
[snip!]
 https://github.com/punchagan/blog-files

 I've added a short README that tries to include the things that you
 are looking for.  But, it's something I wrote up quickly.  Feel free
 to ask any specific questions.

I've been trying to use it, but I keep running into issues with
reprise.pay.

The latest one, is:

Traceback (most recent call last):
  File reprise.py, line 258, in module
env.get_template('cloud.html'))
  File reprise.py, line 140, in generate_tag_cloud
maxFreq = max(t['freq'] for t in tag_freq)
ValueError: max() arg is an empty sequence

The code for this, is:

def generate_tag_cloud(entries, template):
tags = sum([e['tags'] for e in entries], [])
tag_freq = [{'tag': tag, 'freq': tags.count(tag)} for tag in set(tags)
if tags.count(tag)  3]
maxFreq = max(t['freq'] for t in tag_freq)
...

I've debugged this with pdb (`M-x pdb'), and tag_freq is empty.

If I'm interpreting the python code correctly (I don't know python...)
only those tags that have more than 3 occurrences will be in the
tag_freq collection...?

My problem is that I have only one article, my first, so obviously the
tag_freq collection will stay emtpy, and reprise.py will crash...

I tried removing the test, ie.

def generate_tag_cloud(entries, template):
tags = sum([e['tags'] for e in entries], [])
tag_freq = [{'tag': tag, 'freq': tags.count(tag)} for tag in set(tags)]
maxFreq = max(t['freq'] for t in tag_freq)
...

but that just gave me a different error (division by zero):

  File reprise.py, line 257, in module
env.get_template('cloud.html'))
  File reprise.py, line 147, in generate_tag_cloud
'freq': t['freq']} for t in tag_freq]
  File reprise.py, line 144, in normalize
return min_r + (val - min_f) * (max_r - min_r) / float (max_f - min_f)

Any ideas of how to proceed?

Thanks!


- Steinar




Re: [O] Is it possible for checkbox items to have :LOGBOOK: drawers?

2011-12-11 Thread Steinar Bang
 Nicolas Goaziou n.goaz...@gmail.com:

 Hello,
 Steinar Bang s...@dod.no writes:

 Is there some variable that I can set to make :LOGBOOK: drawers work
 under checkboxes?

 No, lists ignore contents of drawers within them. Moreover :LOGBOOK:
 drawers are an headline only feature.

 David Maus dm...@ictsoc.de:

 No, as far as I know it is not possible to attach a Drawer to a list
 item.

Bummer!  But thanks for the replies.

Is there another way to accomplish what I want: getting time stamped log
entries under a list item?

Ie. it doesn't have to be in a drawer, and entries don't have to be
created with `C-c C-z'.  But should be easy to use.

Or... I could go back to nested TODOs I guess...?  But checkboxes are so
much more visually pleasing...




[O] Is it possible for checkbox items to have :LOGBOOK: drawers?

2011-12-10 Thread Steinar Bang
Platform: Ubuntu 10.10
  GNU Emacs 23.1.1
  git version of org-mode

When I create a TODO task, I first create the task, then I create
checkboxes for the things I would like to do, ie.

* My tasks
** TODO here's a new task [/]
 - [ ] First I need to do this
 - [ ] Then I need to do that
 - [ ] Finally I need to finish this

The reason for using checkboxes, is that I find them more visually
pleasing than nested TODOs.  But when logging progress, I can't use the
logbook functionality (like I could have done with nested TODOs).  I
have ended up doing this:

* My tasks
** TODO here's a new task [/]
 - [ ] First I need to do this
  - Logbook:
- My first note
- My second note
 - [ ] Then I need to do that
 - [ ] Finally I need to finish this

That works, after a fashion.  But I get no timestamp on the notes,
unless I remember to do a `C-.'

I've tried putting :LOGBOOK: drawers in the checkboxes, and that seemed
to work at first, but then I discovered that all notes ended up in the
topmost checkbox, which just happened to reside under the first
checkbox.

Is there some variable that I can set to make :LOGBOOK: drawers work
under checkboxes?  Is there some other similar solution?  (I'm on git
org-mode at home, and use native emacs 23 org-mode and 7.7 on the
windows boxes at work)

Thanks!


- Steinar





Re: [O] Minimal overhead Org-mode blogging system

2011-12-07 Thread Steinar Bang
There is also this approach:
 http://comments.gmane.org/gmane.emacs.orgmode/45360

I don't know if anything more has happened with this for the last 15
weeks, though.




[O] CLOCKS drawer not behaving like a drawer on Windows emacs 23.2 (Was: Collapsing tracked time?)

2011-11-30 Thread Steinar Bang
 Steinar Bang s...@dod.no:
 Olaf Dietsche olaf+list.orgm...@olafdietsche.de:
 [snip!]
 You can also set org-clock-into-drawer to a string (e.g. CLOCKS),
 then this string is used instead of LOGBOOK.

 Actually I tried doing it, but since the variable wasn't available, I
 thought I needed a newer version of org-mode, than the one that comes
 with emacs 23.

 But it turns out that I just needed to load-library `org-clock' before
 I could customize the variable, and then set to to CLOCKS (without
 the quotes).

And when clocking in on an item, a :CLOCKS: drawer is created under
that item.

However the CLOCKS drawer doesn't behave like a real drawer on emacs
23.2 on Windows:
 - The :CLOCKS:... string is plain black, and not the purple of the
   :LOGBOOK: drawer (and presumably other drawers)
 - Pressing `TAB' doesn't open and close the drawer
 - Closing and reopening the item, shows the contents of the drawer, but
   the drawer can't be collapsed with `TAB'

I tried installing org-mode 7.7 on the machine, but the CLOCKS
behaviour was the same there.

Anyone have any idea how to fix this?

Thanks!


- Steinar




Re: [O] CLOCKS drawer not behaving like a drawer on Windows emacs 23.2

2011-11-30 Thread Steinar Bang
 Olaf Dietsche olaf+list.orgm...@olafdietsche.de:

 Unfortunately, back then I suggested the name CLOCKS. But the default
 clocks drawer name is CLOCK without the S.

Ah, ok! :-)

 So, you can either use CLOCK instead of CLOCKS

 (custom-set-variables
  '(org-clock-into-drawer CLOCK))

 or as Bernt and Achim already suggested, you can

 (add-to-list 'org-drawers CLOCKS)

I think I'll go for the simple solution and use CLOCK.

I just want something other than LOGBOOK, since I use LOGBOOK to take
notes.

Thanks (to all).


- Steinar




Re: [O] Collapsing tracked time?

2011-11-25 Thread Steinar Bang
 Steinar Bang s...@dod.no:
 Olaf Dietsche olaf+list.orgm...@olafdietsche.de:

 [snip!]
 You can also set org-clock-into-drawer to a string (e.g. CLOCKS),
 then this string is used instead of LOGBOOK.

 C-h v org-clock-into-drawer RET

 gives the complete documentation.

 Yes, I might do that also, if I decide to use :LOGBOOK: for notes.

Actually I tried doing it, but since the variable wasn't available, I
thought I needed a newer version of org-mode, than the one that comes
with emacs 23.

But it turns out that I just needed to load-library `org-clock' before I
could customize the variable, and then set to to CLOCKS (without the
quotes). 

Thanks again! :-)






Re: [O] Collapsing tracked time?

2011-09-17 Thread Steinar Bang
 Achim Gratz strom...@nexgo.de:
 Steinar Bang s...@dod.no writes:

 - My emacs23 org-mode doesn't have the CLOCK_INTO_DRAWER property,
 and setting the LOG_INTO_DRAWER property on a subtree to t and always
 (the values I tried) didn't have any effect on clocking

 That particular asymmetry has been removed in a later version, so if
 you update org-mode it should work as described in the online manual.

Yes, I guessed that might be the case.  But for now I think I will go
with the native emacs org-mode, to keep things simple on new computers.

 You can set any of those variables (but not the properties) to an
 integer number and the drawer will be created when you add more
 timestamps than that.

Yes, I saw that, when customizing the variable.  I even tried it a
little, before deciding to go for always on.






[O] Collapsing tracked time?

2011-09-16 Thread Steinar Bang
For one particular long running TODO, I have to scroll over several
(well... more than one) screen pages of time stamps until I get to the
payload. 

Is it possible to let the time stamps be collapsed/hidden by default,
and only toggle them visible if I need to adjust a time stamp or two?

Thanks!


- Steinar




Re: [O] Using MobileOrg without sync?

2011-07-13 Thread Steinar Bang
 Tassilo Horn tass...@member.fsf.org:

 Not sure, but MobileOrg (at least on Android) is not very
 sophisticated for note taking.  For sure, it's not a stand-alone
 org-mode for Android as you might have expected.

Ah, ok.  It looked like it might be, from the screen shots.

 For example, there's no widget (activity in andro-speak) to input
 timestamps and stuff like that.  I use it, but mainly for viewing my
 agendas pushed from org-mode and for capturing quick and ugly notes,
 which I format correctly, timestamp, tag, and refile after pulling
 them to my emacs.

Ok.  Looks like something I will try at some point in time, but not
right now.

 So I see no reason to use MobileOrg if you don't want to interact with
 org-mode.  Probably, you'd be better off with a plain text editor (Jota
 Text Editor is quite good and free software).

Thanks for the tip!

So far, I have installed, but not yet tried:
 Evernote
  http://gizmodo.com/5427595/evernote-the-android-note-app-you-need-is-here

 AK Notepad
  https://market.android.com/details?id=com.akproduction.notepad

 GDocs (notepad synking with google docs)
  http://sites.google.com/site/gdocsforandroid/







[O] Using MobileOrg without sync?

2011-07-12 Thread Steinar Bang
I installed MobileOrg on an HTC desire.  The idea was to just use it to
take notes, no sync to an emacs with org-mode would be needed.

But I can't figure out how to skip the sync configuration menu.

All of the documentation I find when searching, is about syncing with
org-mode. 

Isn't it possible to use MobileOrg without sync?

Thanks!


- Steinar




Re: [O] apparently too stupid to use checkboxes

2011-06-07 Thread Steinar Bang
 Detlef Steuer detlef.ste...@gmx.de:

 Hi,
 while looking for the cause of my checkbox problem I found,
 that all works fine, if I issue

 make clean 

Ok, I ran into this problem today, on an emacs 23 with git org-mode, on
debian testing, (wheezy), and I googled for the error message and
found this thread.

What I did was
 cd ~/git/org-mode/
 make clean
 make

and then the problem went away: I started a new emacs and edited an org
file with cookie'd checkboxes, and now the cookies updated.

My org-mode git clone was last pull'd on May 5, and
.git/refs/heads/master contains 37f9639a4391fd63caae7abf2b4ac8e247b740c3

If someone feels like looking into this rather obscure error, I'm
willing to assist.  If not, I will just pull and hope it goes away...:-)




[O] automatically closing example?

2011-05-24 Thread Steinar Bang
Is there a shortcut to quickly add an #+END_EXAMPLE at the same
indentation level as the #+BEGIN_EXAMPLE I have just typed?  I have
googled but not found.

I know that I can type C-j # + b M-TAB e M-TAB, but what I get then is
basically what I wanted after I had completed the BEGIN_EXAMPLE.

Ie. I never want an unbalanced BEGIN_EXAMPLE.




Re: [O] automatically closing example?

2011-05-24 Thread Steinar Bang
 Puneeth Chaganti puncha...@gmail.com:

 e TAB, will do that for you.

 Look at http://orgmode.org/org.html#Easy-Templates

Cool!  Exactly what I was looking for.

Thanks!





[O] Re: Outlook replacement

2011-04-02 Thread Steinar Bang
 Suvayu Ali fatkasuvayu+li...@gmail.com:

 How do you (as in all users using Emacs as their email client) deal
 with unreliable networks? When I used to use tramp over a particularly
 slow/unreliable network day before, I found every time tramp got stuck
 emacs would hang too until tramp could recover.

What does tramp have to do with using emacs as an email client?




[Orgmode] Emacs 21 doesn't pick utf-8 as the coding system

2010-06-07 Thread Steinar Bang
I'm trying to work on a file created on emacs 22 on Debian lenny, on
emacs 21 on RHEL4.  The org file in emacs 21 shows up with UTF-8
interpreted as iso-8859-1.

I've tried setting the coding explicitly with
 `C-x RET f utf-8-unix RET'
but that didn't seem to make any difference.

Are there lisp and mode-specific ways of fixing this? I'd rather not
mess with the locale settings...

Here are the locale settings:

On RHEL4:
LANG=
LC_CTYPE=POSIX
LC_NUMERIC=POSIX
LC_TIME=POSIX
LC_COLLATE=POSIX
LC_MONETARY=POSIX
LC_MESSAGES=POSIX
LC_PAPER=POSIX
LC_NAME=POSIX
LC_ADDRESS=POSIX
LC_TELEPHONE=POSIX
LC_MEASUREMENT=POSIX
LC_IDENTIFICATION=POSIX
LC_ALL=

On debian lenny:
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=POSIX
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=


___
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


[Orgmode] Re: How to get the last version of org-mode supporting emacs21?

2010-06-02 Thread Steinar Bang
 Bernt Hansen be...@norang.ca:

 Mikael Fornius m...@abc.se writes:

 I found it in the git log, it says says:
 
 commit 31858e5c39404cf2bc745fe05f59c7ce6816db74
 Author: Carsten Dominik carsten.domi...@gmail.com
 Date:   Tue Apr 21 14:00:24 2009 +0200
 
 End of Emacs 21 support.
 
 commit e0cd12716ac8202d4b5c764dfb57d5d7725be73a
 Author: Carsten Dominik carsten.domi...@gmail.com
 Date:   Tue Apr 21 10:21:36 2009 +0200
 
 Release 6.26b

 If you want to make changes on top of release_6.26b then create a new
 branch instead with

 git checkout -b emacs21 release_6.26b

 (naming the branch whatever you like instead of emacs21)

Thanx!  That worked great!

I needed to get sha1 and hex-util (got them from my CVS version of Gnus
(haven't moved to the git version yet)) and url*.elc (got them from the
ELPA package for url).

Just added that to the Makefile (can't get a diff the easy way because
vc-git.el won't run on Emacs 21, so good old trusty `C-x v =' wasn't
available).

So no I'm rolling on these antiquated combination of HW and SW. :-)


___
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


[Orgmode] How to get the last version of org-mode supporting emacs21?

2010-06-01 Thread Steinar Bang
I have some RHEL4 machines where I have no admin privileges where I
would like to use org-mode, without having to build a newer version of
emacs myself and install it under my own user.

Is it possible to figure out how to use git to get to the last version
prior to removing the emacs 21 compatibility code?

Is it possible to take the compatibility code removal changes and apply
them to the most recent version of the code?  (I think not, but I don't
know just how much such magic git is capable of...)

Or is it better to just get the last released version that has the emacs
21 compatiblity code, than to use git? (since I can't upgrade to newer
versions anyway...)

Thanx!


- Steinar


___
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