Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics

2023-02-09 Thread Simon Butler


two computers, both running org mode version 9.6.1 and Emacs 27.1

1.00% of cache searches hashed, 0.00% non-hashable.
3 days, 11 hours, 17 minutes, 32 seconds


5.88% of cache searches hashed, 3.75% non-hashable.
3 days, 13 hours, 49 minutes, 16 seconds





On 2023-02-09 at 11:51 GMT, Ihor Radchenko  wrote: 
> Hi,
>
> I would like to assess the efficiency of one of search optimizations used
> in org-element.el [1]
>
> The statistics about efficiency is collected by Org, but obviously not
> shared without your consent.
>
> If you are ok with sharing the statistics, and you are running Emacs
> session for at least few hours (using Org mode, obviously), please reply
> sharing the output of
>  M-x org-element-cache-hash-show-statistics 
>  M-x emacs-uptime 
>
> [1] Pugh [Information Processing Letters] (1990) Slow optimally balanced
>  search strategies vs. cached fast uniformly balanced search strategies.
>  http://dx.doi.org/10.1016/0020-0190(90)90130-P




Re: Stable 9.5: invalid function (date date)

2021-11-30 Thread Simon Butler


Ihor Radchenko  writes:

> Tim Loderhose  writes:
>
>> Hi,
>>
>> I am also getting this error. It's fixable only by re-installing org from a
>> emacs -q, I assumed because files on the agenda file list are visited
>> before org is fully installed?
>> Unfortunately, this also occurs with a fresh install of Emacs
>> (re-installing all packages), but I'm not sure why. I'd assumed it's
>> because of the agenda file list, but that doesn't exist at that point.
>> I will try these days to get a minimal config to reproduce the issue, and
>> will respond again.
>
> This is a known problem for users loading Org early in their config and
> using non-standard package managers (like straight.el). See
> https://list.orgmode.org/m25ytopjg9@blind-drunk.fritz.box/
>
> In the linked thread we are also discussing some ways to address this on
> Org side, but no good solution yet. Patches are welcome.
>

What follows seems a little silly to me, but maybe it points to a clear
reason for someone with greater knowledge.

I've just updated two computers from org 9.4.4 to 9.5.1. Both are
running fedora 35 with emacs 27.2

One of the installations had this problem. There are minor differences
in the .emacs files between the two installations in terms of packages and the
order in which they appear in the file. I also use use-package.

seeing the above advice I revised the order of packages on the machine
with the problem so they were close to the order on the other machine -
mostly before (use-package org ...). Restarted emacs, and the problem was
still present.

I had noticed that the statement

(prefer-coding-system 'utf-8)

appeared in both .emacs files, early in one and towards the end of the
on where the (date date) was seen after M-x org-agenda

after moving (prefer-coding-system 'utf-8) to before the first use of
use-package the problem is gone

best
Simon

> Best,
> Ihor




Re: Bibliography entry in the menu-bar

2020-02-28 Thread Simon Butler
hi

On 2020-02-28 10:36, Sharon Kimble wrote:
> Simon Butler  writes:
>
>> Hi Sharon
>>
>> the menu is part of BibTeX-mode (https://www.emacswiki.org/emacs/BibTeX)
> Thanks Simon, I've now been able to provide a key-sequence for 'Online
> Resource' like so -
>
> --8<---cut here---start->8---
> (global-set-key "\C-c C-e C-o" 'bibtex-Online)
> --8<---cut here---end--->8---
>
> however, it is shown in the drop-down-menu of bibtex commands as
>
> --8<---cut here---start->8---
> Online Resource   C-c SPC C-e SPC C-o
> --8<---cut here---end--->8---
>
> How can I lose the 'SPC' in the drop-down list of commands please, so it
> looks very similar to all the others?

(global-set-key "\C-c\C-e\C-o" 'bibtex-Online) should eliminate the spaces afaik

Simon


> Thanks
> Sharon.
>
>> hth
>>
>> Simon
>>
>> On 2020-02-26 17:14, Sharon Kimble wrote:
>>> I'm hoping that someone can help, but when I'm in a buffer of my
>>> bibliography, there is a drop-down list in the menu-bar, of buffer
>>> commands titled 'Entry-Types'. But what program puts it there?
>>>
>>> I want to create a new command to an entry in it, but I don't know what
>>> the originating program is. Can anyone help please?
>>>



signature.asc
Description: OpenPGP digital signature


Re: Bibliography entry in the menu-bar

2020-02-27 Thread Simon Butler
Hi Sharon

the menu is part of BibTeX-mode (https://www.emacswiki.org/emacs/BibTeX)

hth

Simon

On 2020-02-26 17:14, Sharon Kimble wrote:
> I'm hoping that someone can help, but when I'm in a buffer of my
> bibliography, there is a drop-down list in the menu-bar, of buffer
> commands titled 'Entry-Types'. But what program puts it there?
>
> I want to create a new command to an entry in it, but I don't know what
> the originating program is. Can anyone help please?
>
> Thanks
> Sharon.



signature.asc
Description: OpenPGP digital signature


Re: Best way to template a big table

2019-12-12 Thread Simon Butler
Hi

On 2019-12-12 07:05, Lawrence Bottorff wrote:
> I've got a big table that I would like to create a template for, i.e.,
> the rows and columns and the myriad | and -. Then a key chord would
> produce it in an org file ready for values to be entered. I've seen
> the post-9.2 tempo-define-template, but that looks more suited to
> smaller things. There is Emacs Skeleton, but I'd like to ask people
> who perhaps have faced this issue before for a "best practice" answer.
>
> LB

Not sure about 'best practice', but yasnippet works well.

Simon