all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Sorting problem
@ 2008-01-01 17:32 Harald Weis
  2008-01-03  7:23 ` Carsten Dominik
  0 siblings, 1 reply; 8+ messages in thread
From: Harald Weis @ 2008-01-01 17:32 UTC (permalink / raw)
  To: emacs-orgmode

Happy New Year All,

Sorting does not seem to work. It worked once when I tested it in the
past. I don't remember the exact circumstances.

Now it doesn't work with org-5.16b or org-5.17a, at least not with
emacs21 which I use because of the remember.el port of FreeBSD.

The error message is invariably the following:

Wrong number of arguments: etc

Do I need emacs22 ?

BTW, when running the upgrade-org script, make produces error messages
(about 80 lines).

Apart from this org mode works fine.

Harald
-- 
FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007

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

* Re: Sorting problem
  2008-01-01 17:32 Sorting problem Harald Weis
@ 2008-01-03  7:23 ` Carsten Dominik
  2008-01-03 13:11   ` Harald Weis
  0 siblings, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2008-01-03  7:23 UTC (permalink / raw)
  To: Harald Weis; +Cc: emacs-orgmode


On Jan 1, 2008, at 6:32 PM, Harald Weis wrote:
>
> The error message is invariably the following:
>
> Wrong number of arguments: etc

Does it literally say "etc", or is this a place holder for
something else?

- Carsten

>
>
> Do I need emacs22 ?
>
> BTW, when running the upgrade-org script, make produces error messages
> (about 80 lines).
>
> Apart from this org mode works fine.
>
> Harald
> -- 
> FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007
>
>
> _______________________________________________
> 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

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

* Re: Sorting problem
  2008-01-03  7:23 ` Carsten Dominik
@ 2008-01-03 13:11   ` Harald Weis
  2008-01-03 13:25     ` Pete Phillips
  2008-01-03 13:45     ` Carsten Dominik
  0 siblings, 2 replies; 8+ messages in thread
From: Harald Weis @ 2008-01-03 13:11 UTC (permalink / raw)
  To: emacs-orgmode

Sorry, Dominik, for the finger trouble. I meant to reply to 
the list only.

On Thu, Jan 03, 2008 at 08:23:26AM +0100, Carsten Dominik wrote:
> 
> On Jan 1, 2008, at 6:32 PM, Harald Weis wrote:
> >
> >The error message is invariably the following:
> >
> >Wrong number of arguments: etc
> 
> Does it literally say "etc", or is this a place holder for
> something else?

It's a place holder. I couldn't get the (5-line) error message
into the mouse in order to copy it. Whenever I try, it disappears.
And I'm just finding out that the message is fortunately kept
in the *Messages* buffer, although with lots of white space
and other funny symbols. Annoying. Here it is:

<paste>
Sort children: [a]lpha [n]umeric [t]ime [p]riority p[r]operty [f]unc  A/N/T/P/F means reversed:
Sorting entries...
org-sort-entries-or-items: Wrong number of arguments: #[(reverse nextrecfun endrecfun &optional startkeyfun endkeyfun) "deZŽÆV\x18žŸŽª\bžŸŽ£\x0f\0ŽÇŽÈ!žŸŽšŽÉ	
\v\f$\x1dŽÊ\r!\x1e\x19\x0e\x1a\x1e^[\ržŸŽ£žŸŽ§\0\x0e
žŸŽ€+\0\ržŸŽ¿\x15\bžŸŽ£3\0ŽÇŽË!žŸŽšŽÌŽÍ!žŸŽ£V\0ŽÍ\ržŸŽ©@@Ž§žŸŽ£F\0ŽÎžŸŽ¢R\0\r@@:žŸŽ£Q\0ŽÏžŸŽ¢R\0ŽÐ\"žŸŽ¢p\0ŽÑ\ržŸŽ©@@Ž§žŸŽ£c\0ŽÒžŸŽ¢o\0\r@@:žŸŽ£n\0ŽÓžŸŽ¢o\0ŽÔ\"\x15\x0e
žŸŽ£y\0\ržŸŽ¿\x15\bžŸŽ£žŸŽ¡\0ŽÇŽÕ!žŸŽšŽÖ\r\x0e\x19\"žŸŽš+\bžŸŽ£žŸŽ°\0ŽÇŽ×!žŸŽš*ŽØžŸŽ§" [messages nextrecfun endrecfun startkeyfun endkeyfun sort-lists 50000 message "Finding sort keys..." sort-build-lists ...] 5 ("/usr/local/share/emacs/21.3/lisp/sort.elc" . 854)], 6
</paste>

I am testing the 'C-c ^' command  on a simple two-headline-levels text,
for an active region or not.

Apart from the fact that I cannot get sorting work, I wonder why the
content of the children is unfolded if I only want the children
headlines sorted ?

Thanks,
Harald
 
> >
> >
> >Do I need emacs22 ?
> >
> >BTW, when running the upgrade-org script, make produces error messages
> >(about 80 lines).
> >
> >Apart from this org mode works fine.
> >
> >Harald
> >-- 
> >FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007

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

* Re: Sorting problem
  2008-01-03 13:11   ` Harald Weis
@ 2008-01-03 13:25     ` Pete Phillips
  2008-01-03 13:51       ` Harald Weis
  2008-01-03 13:45     ` Carsten Dominik
  1 sibling, 1 reply; 8+ messages in thread
From: Pete Phillips @ 2008-01-03 13:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi Harald

>>>>> "Harald" == Harald Weis <hawei@free.fr> writes:

    >> >BTW, when running the upgrade-org script, make produces error
    >> messages >(about 80 lines).
    >> >
    >> >Apart from this org mode works fine.
    >> >
    >> >Harald
    > >-- 
    > >FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007


Can you cut and paste the console output to the list ?

Could be something to do with BSD vs Linux I suppose. I haven't used a
BSD distro since we retired our SunOS boxes many moons ago, but I'm sure
someone on the list will be able to help anyway.

Pete

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

* Re: Sorting problem
  2008-01-03 13:11   ` Harald Weis
  2008-01-03 13:25     ` Pete Phillips
@ 2008-01-03 13:45     ` Carsten Dominik
  2008-01-04 12:15       ` Harald Weis
  1 sibling, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2008-01-03 13:45 UTC (permalink / raw)
  To: Harald Weis; +Cc: emacs-orgmode


On Jan 3, 2008, at 2:11 PM, Harald Weis wrote:

> Sorry, Dominik, for the finger trouble. I meant to reply to
> the list only.
>
> On Thu, Jan 03, 2008 at 08:23:26AM +0100, Carsten Dominik wrote:
>>
>> On Jan 1, 2008, at 6:32 PM, Harald Weis wrote:
>>>
>>> The error message is invariably the following:
>>>
>>> Wrong number of arguments: etc
>>
>> Does it literally say "etc", or is this a place holder for
>> something else?
>
> It's a place holder. I couldn't get the (5-line) error message
> into the mouse in order to copy it. Whenever I try, it disappears.
> And I'm just finding out that the message is fortunately kept
> in the *Messages* buffer, although with lots of white space
> and other funny symbols. Annoying. Here it is:
>
> <paste>
> Sort children: [a]lpha [n]umeric [t]ime [p]riority p[r]operty  
> [f]unc  A/N/T/P/F means reversed:
> Sorting entries...
> org-sort-entries-or-items: Wrong number of arguments: #[(reverse  
> nextrecfun endrecfun &optional startkeyfun endkeyfun)  
> "deZŽÆV\x18žŸŽª\bžŸŽ£\x0fŽÇŽÈ!žŸŽšŽÉ	


You seem to be using a version of Emacs in which the command
`sort-subr' does not yet allow the `predicate' argument as the 6th
argument to the call.  Apparently this is the case in Emacs 21
that you are using - unfortunately I don't anymore have emacs 21
on my system.....

Is there a reason why you are not yet using Emacs 22?

The "funny symbols" are there because the Lisp code is compliled, read  
the
Feedback section of the Org-mode manual to see to to improve on this.
>
> Apart from the fact that I cannot get sorting work, I wonder why the
> content of the children is unfolded if I only want the children
> headlines sorted ?

This is because Emacs is cutting and then re-inserting all the tree
nodes, and that would mess up the hiding anyway.

- Carsten

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

* Re: Sorting problem
  2008-01-03 13:25     ` Pete Phillips
@ 2008-01-03 13:51       ` Harald Weis
  2008-01-03 23:29         ` Pete Phillips
  0 siblings, 1 reply; 8+ messages in thread
From: Harald Weis @ 2008-01-03 13:51 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

On Thu, Jan 03, 2008 at 01:25:02PM +0000, Pete Phillips wrote:
> Hi Harald
> 
> >>>>> "Harald" == Harald Weis <hawei@free.fr> writes:
> 
>     >> >BTW, when running the upgrade-org script, make produces error
>     >> messages >(about 80 lines).
>     >> >
>     >> >Apart from this org mode works fine.
>     >> >
>     >> >Harald
>     > >-- 
>     > >FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007
> 
> 
> Can you cut and paste the console output to the list ?
> 
> Could be something to do with BSD vs Linux I suppose. I haven't used a
> BSD distro since we retired our SunOS boxes many moons ago, but I'm sure
> someone on the list will be able to help anyway.

I've saved it in the attached file.
Hope the list allows small attached text files.
If not, I cut and paste.
Harald
-- 
FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007

[-- Attachment #2: 20080101 --]
[-- Type: text/plain, Size: 6653 bytes --]

me@pollux:~ # ./bin/update-org.sh
--17:14:32--  http://orgmode.org/org.tar.gz
           => `org.tar.gz'
Resolving orgmode.org... 208.109.181.53
Connecting to orgmode.org|208.109.181.53|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,288,669 (1.2M) [application/x-tar]

20% [======>                              ] 258,238       --.--K/s    ETA 12:21^C
me@pollux:~ # ./bin/update-org.sh
--17:17:46--  http://orgmode.org/org.tar.gz
           => `org.tar.gz'
Resolving orgmode.org... 208.109.181.53
Connecting to orgmode.org|208.109.181.53|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,288,669 (1.2M) [application/x-tar]

100%[====================================>] 1,288,669    191.15K/s    ETA 00:00

17:17:58 (119.49 KB/s) - `org.tar.gz' saved [1288669/1288669]

x org-5.17a/
x org-5.17a/ChangeLog
x org-5.17a/dir
x org-5.17a/Makefile
x org-5.17a/org
x org-5.17a/org-export-latex.el
x org-5.17a/org-install.el
x org-5.17a/org-mouse.el
x org-5.17a/org-publish.el
x org-5.17a/org.el
x org-5.17a/org.pdf
x org-5.17a/org.texi
x org-5.17a/orgcard.pdf
x org-5.17a/orgcard.tex
x org-5.17a/orgcard_letter.pdf
x org-5.17a/README
x org-5.17a/request-assign-future.txt
x org-5.17a/xemacs/
x org-5.17a/xemacs/noutline.el
x org-5.17a/xemacs/ps-print-invisible.el
x org-5.17a/xemacs/README
/usr/local/bin/emacs -batch -q -eval "(add-to-list (quote load-path) \".\")" -f batch-byte-compile org.el
While compiling org-compute-latex-and-specials-regexp in file /home/me/emacs/lisp/org/org.el:
  ** reference to free variable org-latex-entities
While compiling org-tree-to-indirect-buffer in file /home/me/emacs/lisp/org/org.el:
  ** outline-up-heading called with 2 arguments, but accepts only 1
While compiling org-remember-insinuate in file /home/me/emacs/lisp/org/org.el:
  ** assignment to free variable remember-annotation-functions
  ** assignment to free variable remember-handler-functions
While compiling org-complete in file /home/me/emacs/lisp/org/org.el:
  ** display-completion-list called with 2 arguments, but accepts only 1
While compiling org-dblock-write:clocktable in file /home/me/emacs/lisp/org/org.el:
  ** `(car (prog1 tbl (setq tbl (cdr tbl))))' called for effect
While compiling org-agenda-mode in file /home/me/emacs/lisp/org/org.el:
  ** reference to free variable buffer-substring-filters
While compiling org-up-heading-all in file /home/me/emacs/lisp/org/org.el:
  ** outline-up-heading called with 2 arguments, but accepts only 1
While compiling org-isearch-end in file /home/me/emacs/lisp/org/org.el:
  ** reference to free variable isearch-mode-end-hook-quit
While compiling the end of the data in file /home/me/emacs/lisp/org/org.el:
  ** The following functions might not be defined at runtime:
    rmail-show-message, calendar-forward-day, calendar-goto-date,
    calendar-goto-today, calendar-iso-date-string,
    calendar-julian-date-string, calendar-astro-date-string,
    calendar-hebrew-date-string, calendar-islamic-date-string,
    calendar-french-date-string, calendar-mayan-date-string,
    calendar-coptic-date-string, calendar-ethiopic-date-string,
    calendar-persian-date-string, calendar-chinese-date-string,
    Info-goto-node
  ** The following functions are not known to be defined: defvaralias,
    make-extent, delete-extent, detach-extent, set-extent-endpoints,
    set-extent-property, make-glyph, set-glyph-face, extent-property,
    extents-at, extent-list, extent-start-position,
    extent-end-position, add-local-hook, region-active-p,
    make-glyph-code, table--at-cell-p, table-recognize-table,
    table-unrecognize-region, calc-eval, constants-get, pp-buffer,
    bbdb-record-name, bbdb-current-record, bbdb-record-getprop,
    vm-summarize, vm-follow-summary-cursor, vm-select-folder-buffer,
    vm-su-subject, vm-get-header-contents, vm-su-message-id,
    wl-summary-message-number, elmo-message-field,
    elmo-message-entity, elmo-msgdb-overview-get-entity,
    wl-summary-buffer-msgdb, wl-summary-line-from,
    elmo-message-entity-field, wl-summary-line-subject,
    rmail-narrow-to-non-pruned-header, gnus-group-name,
    gnus-article-show-summary, url-view-url, dired-get-filename,
    bbdb-name, bbdb-company, bbdb, Info-find-node, vm-isearch-update,
    vm-isearch-narrow, vm-beginning-of-message, elmo-folder-exists-p,
    wl-folder-get-elmo-folder, wl-summary-goto-folder-subr,
    wl-summary-jump-to-msg-by-message-id, wl-summary-redisplay,
    rmail-what-message, mh-index-previous-folder, mh-get-msg-num,
    mh-show-buffer-message-number, mh-display-msg, mh-header-display,
    mh-show-header-display, mh-get-header-field, mh-show,
    mh-show-show, mh-find-path, mh-visit-folder,
    mh-normalize-folder-name, mh-search-choose, mh-search,
    mh-show-msg, bibtex-generate-autokey, bibtex-beginning-of-entry,
    bibtex-parse-entry, bibtex-url, file-remote-p,
    tramp-handle-file-remote-p, x-cut-buffer-or-selection-value,
    remember, remember-buffer-desc, temp-directory,
    icalendar-export-region, add-to-diary-list,
    set-extent-properties, insert-extent, calendar-bahai-date-string,
    cdlatex-tab, org-export-latex-cleaned-string,
    table-generate-source, multi-occur, speedbar-line-directory
Wrote /home/me/emacs/lisp/org/org.elc
Done
/usr/local/bin/emacs -batch -q -eval "(add-to-list (quote load-path) \".\")" -f batch-byte-compile org-publish.el
While compiling the end of the data in file /home/me/emacs/lisp/org/org-publish.el:
  ** The function `set-file-times' is not known to be defined.
Wrote /home/me/emacs/lisp/org/org-publish.elc
Done
/usr/local/bin/emacs -batch -q -eval "(add-to-list (quote load-path) \".\")" -f batch-byte-compile org-mouse.el
Loading /usr/local/libexec/emacs/21.3/i386--freebsd/fns-21.3.1.el (source)...
While compiling the end of the data in file /home/me/emacs/lisp/org/org-mouse.el:
  ** The following functions are not known to be defined: looking-back,
    insert-for-yank
Wrote /home/me/emacs/lisp/org/org-mouse.elc
Done
/usr/local/bin/emacs -batch -q -eval "(add-to-list (quote load-path) \".\")" -f batch-byte-compile org-export-latex.el
Loading /usr/local/libexec/emacs/21.3/i386--freebsd/fns-21.3.1.el (source)...
While compiling org-export-latex-tables in file /home/me/emacs/lisp/org/org-export-latex.el:
  ** split-string called with 3 arguments, but accepts only 1-2
  ** split-string called with 3 arguments, but accepts only 1-2
Wrote /home/me/emacs/lisp/org/org-export-latex.elc
Done
/usr/local/bin/emacs -batch -q -eval "(add-to-list (quote load-path) \".\")" -f batch-byte-compile org-install.el
Wrote /home/me/emacs/lisp/org/org-install.elc
Done
me@pollux:~ #

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

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

* Re: Sorting problem
  2008-01-03 13:51       ` Harald Weis
@ 2008-01-03 23:29         ` Pete Phillips
  0 siblings, 0 replies; 8+ messages in thread
From: Pete Phillips @ 2008-01-03 23:29 UTC (permalink / raw)
  To: emacs-orgmode

Hi Harald

>>>>> "Harald" == Harald Weis <hawei@free.fr> writes:

    >> >> >BTW, when running the upgrade-org script, make produces error
    >> >> messages >(about 80 lines).
    >> >> >
    >> >> >Apart from this org mode works fine.
    >> >> >
    >> >> >Harald
    >> > >-- 
    >> > >FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007
    >> 
    >> 
    >> Can you cut and paste the console output to the list ?
    >> 
    >> Could be something to do with BSD vs Linux I suppose. I haven't
    >> used a BSD distro since we retired our SunOS boxes many moons
    >> ago, but I'm sure someone on the list will be able to help
    >> anyway.

    Harald> I've saved it in the attached file.  Hope the list allows
    Harald> small attached text files.  If not, I cut and paste.  Harald

OK -the stuff you are seeing on the screen is the result of the byte
compilation of the lisp code.

Unfortunately I don't know a great deal about lisp code, but others on
this list do. It looks to me as though these are warnings rather than
critical errors, as it appears that the .elc files are being produced
anyway.

There was something in the list recently about trying to reduce the
number of warnings from compiling the lisp files, so I think one of the
competent people will be addressing this soon. :-)

Therefore my advice would be - if the .elc files are OK, and org-mode
loads up OK, don't worry!  ;-)

Pete

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

* Re: Sorting problem
  2008-01-03 13:45     ` Carsten Dominik
@ 2008-01-04 12:15       ` Harald Weis
  0 siblings, 0 replies; 8+ messages in thread
From: Harald Weis @ 2008-01-04 12:15 UTC (permalink / raw)
  To: emacs-orgmode

On Thu, Jan 03, 2008 at 02:45:48PM +0100, Carsten Dominik wrote:
 
> You seem to be using a version of Emacs in which the command
> `sort-subr' does not yet allow the `predicate' argument as the 6th
> argument to the call.  Apparently this is the case in Emacs 21
> that you are using - unfortunately I don't anymore have emacs 21
> on my system.....
> 
> Is there a reason why you are not yet using Emacs 22?
 
The reason was the set of the other emacs-related ports like
the ``remember.el-emacs21-1.9_2'' port.

I've just installed Emacs 22. There was no warning coming from
the other ports!
Sorting (as everything else) is now working fine :-)

Thank you very much for your help, Dominik.

Thanks to Pete for his last message. No, I don't worry!

Harald
-- 
FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007

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

end of thread, other threads:[~2008-01-04 12:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-01 17:32 Sorting problem Harald Weis
2008-01-03  7:23 ` Carsten Dominik
2008-01-03 13:11   ` Harald Weis
2008-01-03 13:25     ` Pete Phillips
2008-01-03 13:51       ` Harald Weis
2008-01-03 23:29         ` Pete Phillips
2008-01-03 13:45     ` Carsten Dominik
2008-01-04 12:15       ` Harald Weis

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.