all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs + lispy + outline + elipsis NOT showing
@ 2018-01-04  6:06 TongKe Xue
  2018-01-04  8:56 ` TongKe Xue
  0 siblings, 1 reply; 2+ messages in thread
From: TongKe Xue @ 2018-01-04  6:06 UTC (permalink / raw
  To: help-gnu-emacs

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

my lispy + outline config looks something like this:

== begin snip ==
(progn ;; * outline mode
  (setq my-outline-regexp
(concat "^(\\|\\(^\\s-*(" (regexp-opt '("progn " "def" "do ")) ".*\\)"))

  ;; (setq outline-level 'my-outline-level)
  ;; (setq outline-regexp my-outline-regexp)

  (defun my-get-level (s) (length (car (split-string s "("))))

  (defun my-outline-level ()
    (save-excursion
      (save-match-data
(end-of-line)
(if (re-search-backward my-outline-regexp nil t)
    (+ 1 (my-get-level (match-string 0) ))
  0))))
  (add-hook 'lispy-mode-hook
    (lambda ()
      (setq-local outline-regexp my-outline-regexp)
      (setq-local outline-level 'my-outline-level)))
  )

== end snip ==

Now, when I ortg-cycle on the top level progn (see attached), the three
images we get are:

all closed
partial open
all open

but notice: there is no ellipsis of "..." anywhere when the folds are
"collapsed"


Question: how do I debug this / how do I turn on "show ... when collapsed" ?


==== pre-emptikve answers:

1. What is org-ellipsis ? have you tried setting it?

It is 'nil' which according to docs, defaults ot "..." ; I have tried setq
and setq-local on it, nothing happens.


==== bounty / screen sharing help

In case this is difficult to resolve over email and requires interaction /
real time discussion:

On two different freelancing sites, I have posted a $50 bounty for help
resolving this.

If anyone is willing to jump on video chat / screen sharing to help me
debug this, I would be happy to pay $50 (via paypal) for a solution.

This is payment for result, not for time -- so if you try to help me, but
we can't resolve the issue, there will be no payment.


Thanks,
--TongKe



[image: Inline image 6][image: Inline image 5][image: Inline image 4]

[-- Attachment #2: partial open.png --]
[-- Type: image/png, Size: 110253 bytes --]

[-- Attachment #3: all collapsed.png --]
[-- Type: image/png, Size: 80850 bytes --]

[-- Attachment #4: all open.png --]
[-- Type: image/png, Size: 139765 bytes --]

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

* Re: emacs + lispy + outline + elipsis NOT showing
  2018-01-04  6:06 emacs + lispy + outline + elipsis NOT showing TongKe Xue
@ 2018-01-04  8:56 ` TongKe Xue
  0 siblings, 0 replies; 2+ messages in thread
From: TongKe Xue @ 2018-01-04  8:56 UTC (permalink / raw
  To: help-gnu-emacs

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

Issue has been resolved -- "use yafolding" :-)

On Wed, Jan 3, 2018 at 11:06 PM, TongKe Xue <tkxue@tkxue.org> wrote:

> my lispy + outline config looks something like this:
>
> == begin snip ==
> (progn ;; * outline mode
>   (setq my-outline-regexp
> (concat "^(\\|\\(^\\s-*(" (regexp-opt '("progn " "def" "do ")) ".*\\)"))
>
>   ;; (setq outline-level 'my-outline-level)
>   ;; (setq outline-regexp my-outline-regexp)
>
>   (defun my-get-level (s) (length (car (split-string s "("))))
>
>   (defun my-outline-level ()
>     (save-excursion
>       (save-match-data
> (end-of-line)
> (if (re-search-backward my-outline-regexp nil t)
>     (+ 1 (my-get-level (match-string 0) ))
>   0))))
>   (add-hook 'lispy-mode-hook
>     (lambda ()
>       (setq-local outline-regexp my-outline-regexp)
>       (setq-local outline-level 'my-outline-level)))
>   )
>
> == end snip ==
>
> Now, when I ortg-cycle on the top level progn (see attached), the three
> images we get are:
>
> all closed
> partial open
> all open
>
> but notice: there is no ellipsis of "..." anywhere when the folds are
> "collapsed"
>
>
> Question: how do I debug this / how do I turn on "show ... when collapsed"
> ?
>
>
> ==== pre-emptikve answers:
>
> 1. What is org-ellipsis ? have you tried setting it?
>
> It is 'nil' which according to docs, defaults ot "..." ; I have tried setq
> and setq-local on it, nothing happens.
>
>
> ==== bounty / screen sharing help
>
> In case this is difficult to resolve over email and requires interaction /
> real time discussion:
>
> On two different freelancing sites, I have posted a $50 bounty for help
> resolving this.
>
> If anyone is willing to jump on video chat / screen sharing to help me
> debug this, I would be happy to pay $50 (via paypal) for a solution.
>
> This is payment for result, not for time -- so if you try to help me, but
> we can't resolve the issue, there will be no payment.
>
>
> Thanks,
> --TongKe
>
>
>
> [image: Inline image 6][image: Inline image 5][image: Inline image 4]
>

[-- Attachment #2: partial open.png --]
[-- Type: image/png, Size: 110253 bytes --]

[-- Attachment #3: all collapsed.png --]
[-- Type: image/png, Size: 80850 bytes --]

[-- Attachment #4: all open.png --]
[-- Type: image/png, Size: 139765 bytes --]

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

end of thread, other threads:[~2018-01-04  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-04  6:06 emacs + lispy + outline + elipsis NOT showing TongKe Xue
2018-01-04  8:56 ` TongKe Xue

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.