Send Ebib-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/ebib-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ebib-users digest..."


Today's Topics:

   1. Re: Discussion of issues relating to Ebib (Joost Kremers)
   2. Configuration of Ebib with ebibrc (Phil and Marlene Carter)
   3. Re: Configuration of Ebib with ebibrc (Joost Kremers)
   4. Re: Configuration of Ebib with ebibrc (Phil and Marlene Carter)
   5. Re: Configuration of Ebib with ebibrc (Joost Kremers)
   6. Re: Configuration of Ebib with ebibrc (Phil and Marlene Carter)


----------------------------------------------------------------------

Message: 1
Date: Thu, 23 Jul 2015 02:02:10 +0200
From: Joost Kremers <[email protected]>
Subject: Re: [Ebib-users] Discussion of issues relating to Ebib
To: "Discussion of issues relating to Ebib."
        <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain

Hi Phil,

My condolances for your loss. And of course a late reply won't keep me
from looking into your problem. It seems there was a bug in the function
`ebib--get-db-from-filename` that for some reason has remained
undetected for quite some time... It should be fixed now in the latest
commit (53919c1), which should appear on Melpa in a few hours.

If you still run into trouble, let me know and I'll take another look.

Regards,

Joost




On Tue, Jul 21 2015, Phil and Marlene Carter <[email protected]> wrote:
> Hi Joost,
>
> Sorry I have been slow in replying. We had a death in the family.
>
> For reasons which I don't understand my reply to your last email could not be 
> delivered, so I am starting a fresh email. 
>
> Here are the results of the commands:
>
> *** Welcome to IELM ***  Type (describe-mode) for help.
> ELISP> (ebib--get-db-from-filename (cl-second (buffer-local-value 
> 'ebib--multiline-info (car ebib--multiline-buffer-list))))
> nil
> ELISP> (ebib-db-get-filename ebib--cur-db)
> "~/Documents/Phil/misc/books-read.bib"
> ELISP> (expand-file-name (ebib-db-get-filename ebib--cur-db))
> "/Users/carters/Documents/Phil/misc/books-read.bib"
> ELISP> (expand-file-name (cl-second (buffer-local-value 'ebib--multiline-info 
> (car ebib--multiline-buffer-list))))
> "/Users/carters/Documents/Phil/misc/books-read.bib"
> ELISP>
>
> The first command did in fact return "nil". The other commands return the 
> correct database.
>
> Thanks again for your help. It worries me that I have done something 
> fundamentally wrong, but I can't think what it might be.
>
> Regards,
>
> Phil Carter
>
> Hi Phil,
>
> Well, that's exactly the value I'd expect (assuming that the file is
> correct). Unfortunately, that doesn't make it easier figuring out what's
> going wrong...
>
> Could you try a few things and report the results? Start a fresh
> instance of Ebib (please quit Ebib first if it's already running), open
> the relevant file and then edit an annote field. While the annote buffer
> is open, do the following:
>
> M-x ielm RET
>
> This will start an interactive Elisp session. Then type (copy & paste):
>
> (ebib--get-db-from-filename (cl-second (buffer-local-value 
> 'ebib--multiline-info (car ebib--multiline-buffer-list))))
>
> This should return the database containing the entry whose annote field
> you're editing. If there are a lot of entries in it, it may take a while
> for Emacs to display the value. I suspect it returns `nil`, however,
> which is not correct. If that is the case, please enter the following at
> the IELM prompt:
>
> (ebib-db-get-filename ebib--cur-db)
>
> then:
>
> (expand-file-name (ebib-db-get-filename ebib--cur-db))
>
> and:
>
> (expand-file-name (cl-second (buffer-local-value 'ebib--multiline-info (car 
> ebib--multiline-buffer-list))))
>
> The last two results should be identical, but it seems that for some
> reason, they are not.
>
> Best,
>
> Joost
>
>
>
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Ebib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ebib-users

-- 
Joost Kremers
Life has its moments



------------------------------

Message: 2
Date: Wed, 9 Sep 2015 14:09:09 +1000
From: Phil and Marlene Carter <[email protected]>
Subject: [Ebib-users] Configuration of Ebib with ebibrc
To: Ebib Users Ebib Users List <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Hi Joost,

Thanks for taking the time to sort out my problem with multi-line buffers.

I have been playing with keywords, I have run into another problem.

I use Emacs on a laptop and a desktop; I have a single init.el file, 
synchronised through Dropbox so that I always have identical versions of Emacs. 
I want to set up per-directory lists; I wanted to do this with the ebibrc file, 
rather than customising each version of Emacs, so that they always stay the 
same.

I am unclear as to what commands I need to put into ebibrc to do this. Reading 
the documentation I got the impression the all I had to do was to name a file 
(ebib-keywords.txt, no path), and all would be well. This did not work, which 
could be due to my very limited understanding of Emacs Lisp. I thought too that 
it would be a good idea to set the option to always save and sort the keyword 
file on exit, but I need to have a file before I can sort/save it. I have 
attached my ebibrc file; I seem to have successfully changed the default entry 
type, but I am at a loss as to where to go with setting up per-directory 
keyword files.

I would appreciate any advice you could give me.

Thanks again,

Phil Carter

; ebibrc
; configuration file for ebib
; see Ebib manual for details
; created 2015-09-06, by Phil Carter

; change default entry type to book
; added 2015-09-06
(setq ebib-default-entry-type 'Book)

; set up keywords file
; select per-directory keywords list
; Is keywords file default ebib-keywords.txt?
; added 2015-09-08
(setq ebib-keywords-file "ebib-keywords.txt")




------------------------------

Message: 3
Date: Wed, 09 Sep 2015 13:15:21 +0200
From: Joost Kremers <[email protected]>
Subject: Re: [Ebib-users] Configuration of Ebib with ebibrc
To: "Discussion of issues relating to Ebib."
        <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain

Hi Phil,

> I have been playing with keywords, I have run into another problem.
>
> I use Emacs on a laptop and a desktop; I have a single init.el file,
> synchronised through Dropbox so that I always have identical versions
> of Emacs. I want to set up per-directory lists; I wanted to do this
> with the ebibrc file, rather than customising each version of Emacs,
> so that they always stay the same.

If you have the same version of Emacs (and of any packages you have
installed) on all machines, you can also synchronise your Custom
settings. (Unless, of course, you want/need different settings for each
machine...)

> I am unclear as to what commands I need to put into ebibrc to do this.
>Reading the documentation I got the impression the all I had to do was
>to name a file (ebib-keywords.txt, no path), and all would be well.

Yes, that should do the trick. If there is no directory part in the file
name in `ebib-keywords-file`, Ebib should create a separate keywords
file in each directory.

Note, however, that Ebib only creates such a file if new keywords are
added in the current session. Keywords that are already in the .bib file
are not automatically saved to the keywords file. Perhaps that is
causing your problem?

Ebib should display keywords that are not in the database's keywords
file in red (or whatever you've customised the `error` face to). If you
see such keywords, you can add them to the file by pressing `K s`. They
should then change to your normal foreground color and when you close
the database, they'll be saved. The file should automatically be created
if it doesn't exist yet.

If things don't work this way for you, please let me know and I'll try
and figure out what goes wrong.

> ; ebibrc
> ; configuration file for ebib
> ; see Ebib manual for details
> ; created 2015-09-06, by Phil Carter
>
> ; change default entry type to book
> ; added 2015-09-06
> (setq ebib-default-entry-type 'Book)

Does this work? The value of `ebib-default-entry-type` should be a
string, so:

(setq ebib-default-entry-type "Book")

should be safer. (That is, setting `ebib-default-entry-type` to a symbol
is not guaranteed to continue to work when I update Ebib.)

Best,

Joost




-- 
Joost Kremers
Life has its moments



------------------------------

Message: 4
Date: Thu, 10 Sep 2015 18:21:44 +1000
From: Phil and Marlene Carter <[email protected]>
Subject: Re: [Ebib-users] Configuration of Ebib with ebibrc
To: "Discussion of issues relating to Ebib."
        <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Hi Joost,

Sorry to keep emailing with problems.

I'm sorry to say that I am still having trouble with ebibrc and the keywords 
file.

If I open a bib file with no keywords, and attempt to add a key word, the 
keyword appears in red. If I type K, trying to save the keyword, I get a 
message in the mini-buffer that K is undefined. I don't get to type s.

I wondered whether setting ebib-keywords-use-only-file to a non-nil value might 
fix the problem, but it didn't.

I tried creating the file ebib-keywords.txt, with 1 or 2 entries, outside of 
Ebib, no luck with that either.

Somehow, the file ebib-keywords.txt is not being recognised.

Thanks for the tip about "Book", that has fixed that problem.

Here is the latest version of my ebibrc file:

; ebibrc
; configuration file for ebib
; see Ebib manual for details
; created 2015-09-06, by Phil Carter

; change default entry type to book
; added 2015-09-06
(setq ebib-default-entry-type "Book")

; use only keywords file
; added 2015-09-10
(setq ebib-keywords-use-only-file t)

; set up keywords file
; select per-directory keywords list
; added 2015-09-08
(setq ebib-keywords-file "ebib-keywords.txt")

Thanks again,

Phil 
 

  
On 09/09/2015, at 9:15 PM, Joost Kremers wrote:

> Hi Phil,
> 
>> I have been playing with keywords, I have run into another problem.
>> 
>> I use Emacs on a laptop and a desktop; I have a single init.el file,
>> synchronised through Dropbox so that I always have identical versions
>> of Emacs. I want to set up per-directory lists; I wanted to do this
>> with the ebibrc file, rather than customising each version of Emacs,
>> so that they always stay the same.
> 
> If you have the same version of Emacs (and of any packages you have
> installed) on all machines, you can also synchronise your Custom
> settings. (Unless, of course, you want/need different settings for each
> machine...)
> 
>> I am unclear as to what commands I need to put into ebibrc to do this.
>> Reading the documentation I got the impression the all I had to do was
>> to name a file (ebib-keywords.txt, no path), and all would be well.
> 
> Yes, that should do the trick. If there is no directory part in the file
> name in `ebib-keywords-file`, Ebib should create a separate keywords
> file in each directory.
> 
> Note, however, that Ebib only creates such a file if new keywords are
> added in the current session. Keywords that are already in the .bib file
> are not automatically saved to the keywords file. Perhaps that is
> causing your problem?
> 
> Ebib should display keywords that are not in the database's keywords
> file in red (or whatever you've customised the `error` face to). If you
> see such keywords, you can add them to the file by pressing `K s`. They
> should then change to your normal foreground color and when you close
> the database, they'll be saved. The file should automatically be created
> if it doesn't exist yet.
> 
> If things don't work this way for you, please let me know and I'll try
> and figure out what goes wrong.
> 
>> ; ebibrc
>> ; configuration file for ebib
>> ; see Ebib manual for details
>> ; created 2015-09-06, by Phil Carter
>> 
>> ; change default entry type to book
>> ; added 2015-09-06
>> (setq ebib-default-entry-type 'Book)
> 
> Does this work? The value of `ebib-default-entry-type` should be a
> string, so:
> 
> (setq ebib-default-entry-type "Book")
> 
> should be safer. (That is, setting `ebib-default-entry-type` to a symbol
> is not guaranteed to continue to work when I update Ebib.)
> 
> Best,
> 
> Joost
> 
> 
> 
> 
> -- 
> Joost Kremers
> Life has its moments
> 
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Ebib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ebib-users
> 




------------------------------

Message: 5
Date: Thu, 10 Sep 2015 12:06:59 +0200
From: Joost Kremers <[email protected]>
Subject: Re: [Ebib-users] Configuration of Ebib with ebibrc
To: "Discussion of issues relating to Ebib."
        <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain

Hi Phil,

> Sorry to keep emailing with problems.

No problem!

> If I open a bib file with no keywords, and attempt to add a key word,
> the keyword appears in red.

Mmm. I'd expect it not to appear in red, because if you add a keyword,
it should be added to the list of stored keywords...

> If I type K, trying to save the keyword, I
> get a message in the mini-buffer that K is undefined. I don't get to
> type s.

Could it be that you're typing 'K' in the entry buffer? It's only bound
in the index buffer, so you need to leave the entry buffer first.

> I wondered whether setting ebib-keywords-use-only-file to a non-nil
> value might fix the problem, but it didn't.

No, that shouldn't make a difference.

> I tried creating the file ebib-keywords.txt, with 1 or 2 entries, outside of 
> Ebib, no luck with that either.
>
> Somehow, the file ebib-keywords.txt is not being recognised.

I'm afraid I'm going to have to test things myself. I use a single
keyword file, so I don't have much experience with per-directory keyword
files. I'll let you know if I find something.

Best,

Joost




-- 
Joost Kremers
Life has its moments



------------------------------

Message: 6
Date: Wed, 16 Sep 2015 10:24:30 +1000
From: Phil and Marlene Carter <[email protected]>
Subject: Re: [Ebib-users] Configuration of Ebib with ebibrc
To: "Discussion of issues relating to Ebib."
        <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Hi Joost,

I have come to the conclusion that Ebib doesn't like remote files. I have 
attached the latest version of my ebibrc file. I said before that I use a 
laptop and a desktop. My .emacs.d directory is stored on Dropbox, this 
directory is symlinked to each computer, This seems to work fine for Emacs 
customisation; each computer has an identical version of Emacs.

Rather than use a per-directory keywords file I have been testing a single 
keywords file. But Ebib doesn't seem not be able to find the ebib-keywords.txt 
file if it is stored in a symlinked .emacs.d directory. Local files on each 
computer seem to work fine, but when I moved it over to the .emacs.d directory, 
all the keywords appear in red, which seems to me to indicate that the keywords 
list has not been accessed. 

Have I explained this problem clearly enough? I would appreciate some ideas for 
fixing it.

; ebibrc
; configuration file for ebib
; see Ebib manual for details
; created 2015-09-06, by Phil Carter

; change default entry type to book
; added 2015-09-06
(setq ebib-default-entry-type "Book")

; identify keyword file for each computer
; keywords list for desktop
; 2015-09-15
(setq ebib-keywords-file "/Users/carters/.emacs.d/ebib-keywords.txt")

; keywords list for laptop
; (setq ebib-keywords-file "/Users/philc/.emacs.d/ebib-keywords.txt")

I have another observation. I had a bib file, the first line of which was 
@comment. This file didn't open correctly, but when I edited the @comment out, 
all was well.

Thanks again for your help.

Phil

 
     
On 10/09/2015, at 8:06 PM, Joost Kremers wrote:

> Hi Phil,
> 
>> Sorry to keep emailing with problems.
> 
> No problem!
> 
>> If I open a bib file with no keywords, and attempt to add a key word,
>> the keyword appears in red.
> 
> Mmm. I'd expect it not to appear in red, because if you add a keyword,
> it should be added to the list of stored keywords...
> 
>> If I type K, trying to save the keyword, I
>> get a message in the mini-buffer that K is undefined. I don't get to
>> type s.
> 
> Could it be that you're typing 'K' in the entry buffer? It's only bound
> in the index buffer, so you need to leave the entry buffer first.
> 
>> I wondered whether setting ebib-keywords-use-only-file to a non-nil
>> value might fix the problem, but it didn't.
> 
> No, that shouldn't make a difference.
> 
>> I tried creating the file ebib-keywords.txt, with 1 or 2 entries, outside of 
>> Ebib, no luck with that either.
>> 
>> Somehow, the file ebib-keywords.txt is not being recognised.
> 
> I'm afraid I'm going to have to test things myself. I use a single
> keyword file, so I don't have much experience with per-directory keyword
> files. I'll let you know if I find something.
> 
> Best,
> 
> Joost
> 
> 
> 
> 
> -- 
> Joost Kremers
> Life has its moments
> 
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Ebib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ebib-users
> 




------------------------------

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140

------------------------------

_______________________________________________
Ebib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ebib-users


End of Ebib-users Digest, Vol 23, Issue 1
*****************************************

Reply via email to