Re: [O] Symbol's function definition is void: search

2012-10-05 Thread Suvayu Ali
On Wed, Oct 03, 2012 at 12:04:20PM +0530, Sanjib Sikder wrote:
> Hi,
> 
> UPDATE: The same files when I ran and exported on my department computer, it 
> is
> working fine.
> 
> Thanks a lot.
> 
> Yesterday I was trying on my laptop. Both the machines have latest
> emacs-snapshot and Ubuntu 12.04. Any comment on this will be appreciated.
> 

I would check your org configuration and setup.  A binary search through
your configs should be quite helpful.

GL

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Symbol's function definition is void: search

2012-10-02 Thread Sanjib Sikder
Hi,

UPDATE: The same files when I ran and exported on my department computer,
it is working fine.

Thanks a lot.

Yesterday I was trying on my laptop. Both the machines have latest
emacs-snapshot and Ubuntu 12.04. Any comment on this will be appreciated.

Thanks again.

-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*



On Wed, Oct 3, 2012 at 11:46 AM, Sanjib Sikder wrote:

> Hi,
>
> I am sure it is not a case of missing reference. The reasons are 1) I have
> checked it 2) The reftex shows those references correctly and I can
> incorporate the reference from the search in my org file 3) rtcite
> successfully links the references and I can jump to those references using
> the links made in the document.
>
> So must be there is something needs to be added in the .emacs or there are
> some other ways to solve the problem, if it is not some error in orgmode.
>
> I had provided the files and .emacs content in my first mail. If it is
> needed, I can send the files.
>
>
> Thanks.
>
>
> -
> *Sanjib Sikder
> *Ph.D. Fellow
> Chemical Engineering
> IIT Bombay*
>
> *
>
>
>
> On Wed, Oct 3, 2012 at 11:34 AM, Bastien  wrote:
>
>> Hi Sanjib,
>>
>> Sanjib Sikder  writes:
>>
>> > Can anybody help me out please ? I still could not export it to pdf.
>>
>> It looks like this is a problem of a missing reference, not a problem
>> with Org.  You need to check the BibTeX references.
>>
>> --
>>  Bastien
>>
>
>


Re: [O] Symbol's function definition is void: search

2012-10-02 Thread Sanjib Sikder
Hi,

I am sure it is not a case of missing reference. The reasons are 1) I have
checked it 2) The reftex shows those references correctly and I can
incorporate the reference from the search in my org file 3) rtcite
successfully links the references and I can jump to those references using
the links made in the document.

So must be there is something needs to be added in the .emacs or there are
some other ways to solve the problem, if it is not some error in orgmode.

I had provided the files and .emacs content in my first mail. If it is
needed, I can send the files.

Thanks.


-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*



On Wed, Oct 3, 2012 at 11:34 AM, Bastien  wrote:

> Hi Sanjib,
>
> Sanjib Sikder  writes:
>
> > Can anybody help me out please ? I still could not export it to pdf.
>
> It looks like this is a problem of a missing reference, not a problem
> with Org.  You need to check the BibTeX references.
>
> --
>  Bastien
>


Re: [O] Symbol's function definition is void: search

2012-10-02 Thread Bastien
Hi Sanjib,

Sanjib Sikder  writes:

> Can anybody help me out please ? I still could not export it to pdf.

It looks like this is a problem of a missing reference, not a problem
with Org.  You need to check the BibTeX references.

-- 
 Bastien



Re: [O] Symbol's function definition is void: search

2012-10-02 Thread Sanjib Sikder
Hi,

Can anybody help me out please ? I still could not export it to pdf.

Thanks.

-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*



On Tue, Oct 2, 2012 at 8:02 PM, Sanjib Sikder wrote:

> Hi,
>
> I did what you said but still it is giving the same error,..[undefined
> reference]
>
> There is one line in the org file
>
>
> [[papers:paper2012][paper2012-paper]]
> [[bib:paper2012][paper2012-bib]]
> [[biblist:paper2012][paper2012-biblist]]
>
> This line is giving the error. If I remove this line from my org file,
> then everything is perfect. While I am trying to export pdf including that
> line, i am getting the error .[undefined reference].
>
> Thanks a lot.
>
>
> -
> *Sanjib Sikder
> *Ph.D. Fellow
> Chemical Engineering
> IIT Bombay*
>
> *
>
>
>
> On Tue, Oct 2, 2012 at 7:55 PM, Bastien  wrote:
>
>> Hi Sanjib,
>>
>> Sanjib Sikder  writes:
>>
>> > or only
>> >
>> > (search "rtcite:" desc)))
>> >
>> >
>> >
>> > with this
>> >
>> >   (or search "rtcite:" desc)))
>>
>> only this line.
>>
>> You get this error because Emacs tries to evaluate
>>
>>   (search "rtcite:" desc)
>>
>> ... and it cannot, because search is not a function.
>> Search here is a variable (a string), hence
>> (or search "rtcite:" desc))) should return something
>> sensible.
>>
>> HTH,
>>
>> --
>>  Bastien
>>
>
>


Re: [O] Symbol's function definition is void: search

2012-10-02 Thread Sanjib Sikder
Hi,

I did what you said but still it is giving the same error,..[undefined
reference]

There is one line in the org file

[[papers:paper2012][paper2012-paper]]
[[bib:paper2012][paper2012-bib]]
[[biblist:paper2012][paper2012-biblist]]

This line is giving the error. If I remove this line from my org file, then
everything is perfect. While I am trying to export pdf including that line,
i am getting the error .[undefined reference].

Thanks a lot.

-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*



On Tue, Oct 2, 2012 at 7:55 PM, Bastien  wrote:

> Hi Sanjib,
>
> Sanjib Sikder  writes:
>
> > or only
> >
> > (search "rtcite:" desc)))
> >
> >
> >
> > with this
> >
> >   (or search "rtcite:" desc)))
>
> only this line.
>
> You get this error because Emacs tries to evaluate
>
>   (search "rtcite:" desc)
>
> ... and it cannot, because search is not a function.
> Search here is a variable (a string), hence
> (or search "rtcite:" desc))) should return something
> sensible.
>
> HTH,
>
> --
>  Bastien
>


Re: [O] Symbol's function definition is void: search

2012-10-02 Thread Bastien
Hi Sanjib,

Sanjib Sikder  writes:

> or only
>
> (search "rtcite:" desc)))
>
>
>
> with this
>
>   (or search "rtcite:" desc)))   

only this line.

You get this error because Emacs tries to evaluate

  (search "rtcite:" desc)

... and it cannot, because search is not a function.  
Search here is a variable (a string), hence 
(or search "rtcite:" desc))) should return something
sensible.

HTH,

-- 
 Bastien



Re: [O] Symbol's function definition is void: search

2012-10-02 Thread Sanjib Sikder
Hi,

Shall i replace

>(equal 0 (search "rtcite:" desc)))
>  ^^^
>
or only

> (search "rtcite:" desc)))
>


with this

  (or search "rtcite:" desc)))



I tried with replacing the whole line i.e (equal 0 (search "rtcite:" desc)))

Now the last error message os gone but during pdf export i get a new error
message
"Exporting to pdf... done, with some errors: [undefined reference]"

thanks a lot :)


-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*



On Tue, Oct 2, 2012 at 7:21 PM, Bastien  wrote:

> > (cond ((eq format 'latex)
> >   (if (or (not desc)
> >   (equal 0 (search "rtcite:" desc)))
>  ^^^
>
> Replace this last line with this
>
>  (or search "rtcite:" desc)))
>
>
> I did no test this, though, just a wild guess.
>


Re: [O] Symbol's function definition is void: search

2012-10-02 Thread Bastien
Hi Sanjib,

Sanjib Sikder  writes:

>     (cond ((eq format 'latex)
>   (if (or (not desc)
>   (equal 0 (search "rtcite:" desc)))
 ^^^ 

Replace this last line with this

 (or search "rtcite:" desc)))


I did no test this, though, just a wild guess.

HTH,

-- 
 Bastien



[O] Symbol's function definition is void: search

2012-10-02 Thread Sanjib Sikder
Hi,

I was trying to manage my technical journal papers using Orgmode.
I followed instructions from the following links

http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/
http://www-public.it-sudparis.eu/~berger_o/weblog/2012/03/23/how-to-manage-and-export-bibliographic-notesrefs-in-org-mode/

I have three files
1. bibliography file with extension .bib (bibPhD.bib)
2. one list file where I save names of papers etc with .org extension
(bibListDrBx.org)
3. one notes file with .org extension where I write notes related to papers
listed in item 2 (bibNotesDrBx.org)

There are links with rtcite , so that i can jump from one file to another
at desired location.

The following is the content of bibNotesDrBx.org
---
#+LINK: biblist
rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibListOrgDrBx/bibListDrBx.org::#%s
#+LINK: bib rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD.bib::%s
# \bibliography{~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD}


** Name of one of the paper :mytag:
:PROPERTIES:
:Custom_ID: paper2012
:END:[[papers:paper2012][paper2012-paper]]
[[bib:paper2012][paper2012-bib]][[biblist:paper2012][paper2012-biblist]]


--
The above file works fine. It can connect with other files perfectly. It
can make pdf wth C-c C-e p.
--
Problem is in the following file bibListDrBx.org
The following is the content of bibListDrBx.org file
-

Research Notes
#+STARTUP: indent hidestars
#+TITLE: Research Notes
#+LINK: notes
rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibNotesOrgDrBx/bibNotesDrBx.org::#%s
#+LINK: bib rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD.bib::%s
#+TODO: TODO | DONE
#+TODO: HOLD | HALT
#+title: My Title
#+author: My Name
# \bibliography{~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD}
* Tasks
* Research :Research:
* Papers :paper:
** Name of my journal entry
:PROPERTIES:
:Custom_ID: paper2012
:END:
[[papers:paper2012][paper2012-paper]][[bib:paper2012][paper2012-bib]]
** Other Papers
* Resources
* Data
\bibliography{~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD}{}
\bibliographystyle{plain}
-
This file also successfully connects with pdf and other files.
Problem is, when I press C c C e p to make pdf of the file bibListDrBx.org
, it says *"Symbol's function definition is void: search"*

i have located the lines which are causing error.
and those are
** Name of my journal entry
:PROPERTIES:
:Custom_ID: paper2012
:END:
[[papers:paper2012][paper2012-paper]][[bib:paper2012][paper2012-bib]]

Now these lines were there in my bibNotesDrBx.org files also and I have no
issue in making pdf of that file. What is wrong with the other file
(bibListDrBx.org)  ?


-
Following is my .emacs set up
---
;;Last updated : 28 Sep2012: 12:26 AM



(global-visual-line-mode 1)
;;;===


;;;Inhibit start-up window
===
(setq inhibit-startup-message t)
;;Following lines will get shown on start up
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.

;;;enable syntax
highlighting=
;;;different colour to different types of text like comments, maths etc
(global-font-lock-mode t)
;;;highlights marked regions
(setq transient-mark-mode t)
;;;
;;;font lock, word wrap, truncate lines, fyspell...
(add-hook 'org-mode-hook
(lambda ()
'turn-on-font-lock
(setq word-wrap 1)
(setq truncate-lines nil)
(flyspell-mode 1)))

;;;=
;;predictive
(add-to-list 'load-path "~/.emacs.d/predictive")
(add-to-list 'load-path "~/.emacs.d/predictive/texinfo")
(add-to-list 'load-path "~/.emacs.d/predictive/latex")
(add-to-list 'load-path "~/.emacs.d/predictive/html")
(require 'predictive)

;;;=
;;;Recent files menu in emacs
(require 'recentf)
(recentf-mode 1)
;;;org mode


;;enable org-mode
(require 'org)

;;make org-mode work with files ending in .org
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))

;;;org mode Capture
;;;..
;;capture
(setq org-directory "~/Ubuntu One/EmacsFilesUO/OrgFilesUO/")
(setq org-default-notes-file (concat org-directory "no