Re: [O] org-bullets extension

2013-02-23 Thread Bastien
E Sabof esa...@gmail.com writes:

 Jambunathan K kjambunat...@gmail.com writes:

     (font-lock-add-keywords
      'org-mode `((\\(?:^\\(?1:\\*+\\)[[:blank:]]\\)
                   (0 (progn (compose-region
                              (match-beginning 1) (match-end 1)
                              (pcase (length (match-string 1))
                                (1 ?\u2219)
                                (2 ?\u2022)
                                (3 ?\u25c9)
                                (_ ?\u25CB)))
                             nil)

I have now added this snippet to the Worg FAQ (in the section Can I
use another character than * to start a headline?) and mentioned
org-bullets.el there too.

-- 
 Bastien



Re: [O] org-bullets extension

2013-02-23 Thread Bastien
Hi Evgeni,

E Sabof esa...@gmail.com writes:

 In any case, I've updated org-bullets to use compose-region. You can
 get it from here:

 https://github.com/sabof/org-bullets

I've updated the Org's repository with a fresh version of
org-bullets.el.  Do you want write access to the repository
so that you can do the merge yourself?  If so, just send me
your public key.

Thanks!

-- 
 Bastien



Re: [O] org-bullets extension

2013-02-21 Thread François Pinard
E Sabof esa...@gmail.com writes:

 In any case, I've updated org-bullets to use compose-region. You can
 get it from here: https://github.com/sabof/org-bullets

Hi, Evgeni (and gang).

I've been trying this new org-bullets today, and I did not meet yet some
of the problems I observed before.  So, at first glance, it looks good:
I'll use it more regularly in the incoming days.  Thanks for this! :-)

François



Re: [O] org-bullets extension

2013-02-20 Thread E Sabof
In any case, I've updated org-bullets to use compose-region. You can get it
from here:

https://github.com/sabof/org-bullets

Evgeni


On Wed, Feb 13, 2013 at 7:40 AM, E Sabof esa...@gmail.com wrote:

 I tend to agree. It might also be better to enable it by default. At the
 same time I'm not very familiar with org code base, so I'm probably not the
 best person to do it.

 Btw, the current version of org-bullets makes it possible to use a
 separate face for the bullets. It might make sense to implement that as
 well.

 Evgeni


 On Mon, Feb 11, 2013 at 5:38 PM, Bastien b...@altern.org wrote:

 E Sabof esa...@gmail.com writes:

  What is the current status of the package? Was it accepted? Was it
  superseded?

 org-bullets.el is in the contrib/ directory.

  If it wasn't superseded, I might spend some time re-implementing it.

 I think it would be nice to adapt Jambunathan's solution for Org's
 core: something like a `org-replace-leading-stars' that, when non-nil,
 would be used as the char/string for compose-region.  Then users could
 turn this on/off using #+STARTUP.

 What do you think?

 --
  Bastien





Re: [O] org-bullets extension

2013-02-12 Thread E Sabof
I tend to agree. It might also be better to enable it by default. At the
same time I'm not very familiar with org code base, so I'm probably not the
best person to do it.

Btw, the current version of org-bullets makes it possible to use a separate
face for the bullets. It might make sense to implement that as well.

Evgeni


On Mon, Feb 11, 2013 at 5:38 PM, Bastien b...@altern.org wrote:

 E Sabof esa...@gmail.com writes:

  What is the current status of the package? Was it accepted? Was it
  superseded?

 org-bullets.el is in the contrib/ directory.

  If it wasn't superseded, I might spend some time re-implementing it.

 I think it would be nice to adapt Jambunathan's solution for Org's
 core: something like a `org-replace-leading-stars' that, when non-nil,
 would be used as the char/string for compose-region.  Then users could
 turn this on/off using #+STARTUP.

 What do you think?

 --
  Bastien



Re: [O] org-bullets extension

2013-02-11 Thread Bastien
E Sabof esa...@gmail.com writes:

 What is the current status of the package? Was it accepted? Was it
 superseded? 

org-bullets.el is in the contrib/ directory.

 If it wasn't superseded, I might spend some time re-implementing it.

I think it would be nice to adapt Jambunathan's solution for Org's
core: something like a `org-replace-leading-stars' that, when non-nil,
would be used as the char/string for compose-region.  Then users could 
turn this on/off using #+STARTUP.

What do you think?

-- 
 Bastien



Re: [O] org-bullets extension

2013-02-11 Thread François Pinard
François Pinard pin...@iro.umontreal.ca writes:

 Bastien b...@altern.org writes:

 org-bullets.el is in the contrib/ directory.

 Let me try to describe the problem.  [...]

Hmph!  My description was not accurate, as I can now observe.  Here is a
correction.  Instead of:

 The header gets opened, with all items visible, including the one just
 inserted.  However, for that last item, this one that just got
 inserted, the bullet of the following header and header text is
 visually concatenated at the end of that item.  Typing C-l
 (recenter-top-bottom) repairs the display: the bullet and its text
 visually jump on the next line, where they belong.

I should have written:

   The header gets opened, with all items visible, *except* the one just
   inserted.  For the *previous to last* item, that is, *the last item
   which is visible*, the bullet of the following header and header text
   is visually concatenated at the end of that item.  Typing C-l
   (recenter-top-bottom) repairs the display: the *last inserted item
   reappears*, and the bullet and its text visually jump on the next
   line, where they belong.

Sorry for my prior lack of precision.

François



Re: [O] org-bullets extension

2013-02-11 Thread Jambunathan K
François Pinard pin...@iro.umontreal.ca writes:

 François Pinard pin...@iro.umontreal.ca writes:

 Bastien b...@altern.org writes:

 org-bullets.el is in the contrib/ directory.

 Let me try to describe the problem.  [...]

 Hmph!  My description was not accurate, as I can now observe.  Here is a
 correction.  Instead of:

 The header gets opened, with all items visible, including the one just
 inserted.  However, for that last item, this one that just got
 inserted, the bullet of the following header and header text is
 visually concatenated at the end of that item.  Typing C-l
 (recenter-top-bottom) repairs the display: the bullet and its text
 visually jump on the next line, where they belong.

 I should have written:

The header gets opened, with all items visible, *except* the one just
inserted.  For the *previous to last* item, that is, *the last item
which is visible*, the bullet of the following header and header text
is visually concatenated at the end of that item.  Typing C-l
(recenter-top-bottom) repairs the display: the *last inserted item
reappears*, and the bullet and its text visually jump on the next
line, where they belong.

A screenshot is worth a 1000 words.  Remember to CC the author.  The
author is keen to hear feedbacks and will act on it promptly.

 Sorry for my prior lack of precision.

 François



-- 



Re: [O] org-bullets extension

2013-01-27 Thread E Sabof
What is the current status of the package? Was it accepted? Was it
superseded?

If it wasn't superseded, I might spend some time re-implementing it.

Evgeni


On Tue, Dec 18, 2012 at 11:05 AM, Bastien b...@altern.org wrote:

 Hi Jambunathan,

 Jambunathan K kjambunat...@gmail.com writes:

  (font-lock-add-keywords
   'org-mode `((\\(?:^\\(?1:\\*+\\)[[:blank:]]\\)
(0 (progn (compose-region
   (match-beginning 1) (match-end 1)
   (pcase (length (match-string 1))
 (1 ?\u2219)
 (2 ?\u2022)
 (3 ?\u25c9)
 (_ ?\u25CB)))
  nil)

 This does convert all headlines characters (*+) to a single
 unicode character.  Close to what many users are looking for,
 but extending this snippet to handle converting several *
 characters would come closer.

 Are you working on this?  If so, could this be a minor mode?

 Thanks,

 --
  Bastien



Re: [O] org-bullets extension

2012-12-18 Thread Bastien
Hi Jambunathan,

Jambunathan K kjambunat...@gmail.com writes:

 (font-lock-add-keywords
  'org-mode `((\\(?:^\\(?1:\\*+\\)[[:blank:]]\\)
   (0 (progn (compose-region
  (match-beginning 1) (match-end 1)
  (pcase (length (match-string 1))
(1 ?\u2219)
(2 ?\u2022)
(3 ?\u25c9)
(_ ?\u25CB)))
 nil)

This does convert all headlines characters (*+) to a single
unicode character.  Close to what many users are looking for,
but extending this snippet to handle converting several * 
characters would come closer.

Are you working on this?  If so, could this be a minor mode?

Thanks,

-- 
 Bastien



Re: [O] org-bullets extension

2012-12-15 Thread Jambunathan K
E Sabof esa...@gmail.com writes:

 Hello,

 I am the author of org-bullets extension, which can be found at 
 github.com/sabof/org-bullets

 I wondered whether you would like to include it in org-contrib, or
 perhaps integrate the functionality in org-mode?

I think what the package does can be achieved by the following snippet
or with minor tweaks to it.  Is my understanding correct?

(font-lock-add-keywords
 'org-mode `((\\(?:^\\(?1:\\*+\\)[[:blank:]]\\)
  (0 (progn (compose-region
 (match-beginning 1) (match-end 1)
 (pcase (length (match-string 1))
   (1 ?\u2219)
   (2 ?\u2022)
   (3 ?\u25c9)
   (_ ?\u25CB)))
nil)

 Evgeni


-- 



Re: [O] org-bullets extension

2012-12-12 Thread Bastien
Hi Evgeni,

E Sabof esa...@gmail.com writes:

 I am the author of org-bullets extension, which can be found at 
 github.com/sabof/org-bullets

This is very nice, we have so many requests about changing the *
character that I guess people will love this.

 I wondered whether you would like to include it in org-contrib, or
 perhaps integrate the functionality in org-mode?

I would like to include this in contrib.

Can you license it under GPLv3 and make all the related 
cosmetic changes?

Also, if you can, don't require 'cl at run time... 
Use (eval-when-compile (require 'cl)) instead.
And the defun* can simply be defun from what I've seen.

Thanks in any case for sharing this!

-- 
 Bastien