Gabriel Lazar | 12 May 16:58 2016
Picon

generic comment text-objects?


Hello,

I am a somewhat experienced Vim user that jumped the Emacs Evil bandwagon - still learning the ropes (emacs, elisp, evil).
First, I'd like to offer my thanks to the authors for this beautiful emacs plugin that is called evil - it is a great plugin!

Now, to the question: is there any implementation for *generic* comment text-objects ("ic", "ac") ? I mean, something that can deal with comments such as multi-line blocks in C, that can also have " *"  at the beginning of intermediate lines, and can even select the block of text "inside" such comment blocks (without end, skip or intermediate delimiters).

 - I searched this mailing list and the only mention to something like this was in 2011, but those functions are no more available in Evil, and there was also a reply indicating that it didn't work too good anyway.

- One method, based on syntax, is available using 'smartparens' with the 'evil-cleverparens' plugin, but - with C multiblocks, it fails to stop before the comment-end separator.

- I also tried to define such a text-object, looking through Evil's source code, by using the defined "evil-comment" *thing* with "evil-select-inner-object" (or similar, I'm don't have an Emacs at hand), but in my tests, the inner version selected the comments including separators, while the 'an-object' version had errors such as "don't know how to compute bounds" or something like that.

I did "some" digging and found out that one can use syntax, font-locking *and* (or) `newcomment.el` (comment-start, comment-end etc. ...) as methods of searching for comment bounds. 

So, to put the question more clearly: is there anybody working on this (or a more general framework, for more "things", not only comments), but something that deals with the above methods (syntax, newcomment.el, font-locking) in the most generic (i.e., in my book, the most reliable) way?

Thanks,
Laser




_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Hong Xu | 14 Apr 08:54 2016
Picon
Gravatar

Compatibility with pdf-view-mode by pdf-tools

Hi everyone,

I tried to use pdf-view-mode provided by pdf-tools
<https://github.com/politza/pdf-tools> recently, however, as long as I
enable evil-mode, even it's in emacs-state, the pdf display would keep
blinking. Has anyone encountered the same issue? I don't really know the
cause of this problem... I'm on Emacs 24.5.1.

Thanks,

Hong

_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Shiyao Ma | 14 Apr 08:23 2016
Gravatar

How to define key mapping of esc under helm-mode

Hi,

I tried this mapping:
(define-key helm-map "\e" 'helm-keyboard-quit)

But it doesn't work.

However, (define-key helm-map "qq" 'helm-keyboard-quit) works.

I'd suspect something's wrong with the special esc key.


Regards.

--

吾輩は猫である。ホームーページはhttps://introo.me


_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
State Court | 3 Apr 10:04 2016

Notice to appear in Court #00515442

Notice to Appear,

You have to appear in the Court on the April 07.
Please, prepare all the documents relating to the case and bring them to Court on the specified date.
Note: The case may be heard by the judge in your absence if you do not come.

The Court Notice is attached to this email.

Kind regards,
Terrance Feldman,
Clerk of Court.

_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
S├ębastien Willmann | 2 Apr 10:58 2016
Picon

Failing tests in fedora >= 24

Hi,

I have some failing tests while trying to build the rpm package for
evil 1.2.11 for fedora 24 and rawhide. Here are the test results:

http://paste.fedoraproject.org/348573/59586924/

The tests pass without any error in fedora 23, so something must have
changed in fedora 24 to break the tests, but I don't know what. Do you
have any idea about what the problem might be?

Unable to deliver your item, #00000345928

Dear Customer,

Courier was unable to deliver the parcel to you.
You can review complete details of your order in the find attached.

Warm regards,
Joel Hatch,
Operation Agent.

Attachment (FedEx_00000345928.zip): application/zip, 10 KiB
_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Vik Povv | 29 Mar 10:08 2016
Picon

hello?

hello.


_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
America Airlines | 28 Mar 12:28 2016

America Airlines E-Ticket #00000747078

Dear customer,

Your payment has been successfully processed and charged from your credit card.

You can find your e-ticket in the attachment.

Order summary:

FLIGHT NUMBER / KR123895
DATE & TIME / Apr 04 2016, 18:20
DEPARTING / Oakland
TOTAL PRICE / $ 680.00

Thanks for flying with America Airlines.

Attachment (E-Ticket_00000747078.zip): application/zip, 10 KiB
_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Shiyao Ma | 15 Mar 10:07 2016
Gravatar

How to let \C-o to jump back to previous file after relaunching emacs?

Hi,

When in Vim, I can keep pressing C-o to go back to the file where I lasted left vim.

How to achieve that under evil?


Regards.


_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Aaron Jensen | 6 Mar 17:07 2016
Picon
Gravatar

Visual move line down

Hi there,


I’m trying to reimplement this handy vim snippet:

vnoremap J :m '>+1<CR>gv=gv
vnoremap K :m '<-2<CR>gv=gv

What it does is it moves visually selected lines down with J and up with K, reindenting them as it goes and maintaining the same visual selection so it is easily repeatable w/ J/K

So far, this is what I have (ignoring the reindent portion for now):

(evil-define-operator my-move-line-down (beg end type)
  "Move selected lines down"
  (evil-move beg end (+ 0 (line-number-at-pos end)))
  (call-interactively evil-visual-restore)
  )
(define-key evil-visual-state-map (kbd "J") 'my-move-line-down)

It has a few problems:

  1. evil-visual-restore doesn’t work like it does in vim, in particular, it is restoring to include the original first line of the selection as well as the text that has moved. In other words, if I select 2 lines, then hit J, 3 will be selected afterwards, the selection expands down instead of moving down.
  2. I can’t figure out how to get the count such that 3J would move down 3 lines. I’d like to replace the 0 with the count.
  3. I’m not sure if I’m supposed to use evil-move in this way, it seems to work, but I don’t know if it is abusing a command. Originally I tried to do this by programmatically executing an ex command but apparently that is a no-no.
Thanks!
Aaron
_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Shiyao Ma | 13 Feb 11:14 2016
Gravatar

What's the motion-state keymap priority (under info mode) ?

the evil-motion-state-map should have a higer priority than the major mode (info mode) keymap.

However, when in info mode, I found "gg" is falls into the info-mode-map, not the evil-motion-state-map.


Regards.

--

吾輩は猫である。ホームーページはhttps://introo.me


_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list

Gmane