Giter VIP home page Giter VIP logo

graphviz-dot-mode's Introduction

Hi there πŸ‘‹

graphviz-dot-mode's People

Contributors

barik avatar damiencassou avatar daniel-birket avatar ehalbwachs avatar epost avatar grtcdr avatar jordansamuels avatar jtrakk avatar kanru avatar kryde avatar ljos avatar mavit avatar ncaq avatar nverno avatar petere avatar phst avatar phundrak avatar pierretechoueyres avatar ppareit avatar snogge avatar tarsius avatar tsukimizake avatar wynro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

graphviz-dot-mode's Issues

Indentation not working correctly

Hi,

When leaving a blank line after a {, tab seems to indent the content inside the block to the same level as the block itself and not a level deeper.

Could you please consider supporting capf or corfu?

I wonder if there is a way to not rely on company but use capf, so that packages like corfu can also use the wonderful completion.

I used to be a company user, but now I really like the way corfu completes, and the out-of-order completion experience it has with orderless. Maybe supporting capf would be a good option for Graphviz-dot-mode?

Anyway, thank you for the great work, graphviz-dot-mode is already a part of my work and life.

Missing company from Package-Requires?

Since graphviz-dot-mode added company support (and requires company unconditionally), should company be added to the Package-Requires header? This would make it work better for downstream consumers such as Debian and melpa.

graphviz-dot-preview does not clean up old buffers

When I repeatedly call graphviz-dot-preview (or use graphviz-turn-on-live-preview, I'm left with dozens of buffers:

  • *graphviz-dot*<N>, N image-mode buffers with each preview image
  • *graphviz-dot-error*N>, N fundamental-mode buffers with the stderr from each run of graphviz/dot

Maybe it could re-use the same buffer each time?

graphviz-dot-preview doesn't work - PNG error: IEND: CRC error

Hi, I installed the package from MELPA, and everything went fine until I tried to preview my graph. I tried the next example and didn't work:
image
I thought maybe my emacs was bad setup, but from dired C-t i worked perfectly. In Messages buffer, when i preview I get the next error. PNG error: IEND: CRC error [2 times]. I used .gv file in case it matters. Sorry for bothering.

What is doted?

The documentation references "doted" as default view command. What is that? Where can I find it?

Native compilation error: No such file or directory, company

Hi!

I got this error after installing graphviz-dot-mode:

company-graphviz-dot.el:34:2: Error: Cannot open load file: No such file or directory, company

I suppose the error is harmless, since the other files were compiled correctly and the major mode works fine.

Still, it would be nice to only execute code in company-graphviz-dot.el if requiring company succeeds.

WDYT?

the keywords `graph` or `digraph` without "strict" doesn't get font lock

Not sure if this is an Emacs 27 specific issue. But this can be fixed by setting the LAXMATCH flag in the matcher:

    ;; See the 'graph' nonterminal in
    ;; https://graphviz.gitlab.io/_pages/doc/info/lang.html.
    ("\\(?:\\_<\\(strict\\)[[:space:]]+\\)?\\(\\(?:di\\)?graph\\)\\_>"
     (1 'font-lock-keyword-face t t) (2 'font-lock-keyword-face))

Error in post-command-hook: (wrong-type-argument characterp nil)

Hello @ppareit,

Thanks for making this; I got envious of my boss' vim highlighting, so I had to try this out! Thanks for helping me keep some of my dignity... ;-)

I added this mode to my init.el and on reloading got the above error. Some further digging online suggests that this is a collision with autopair mode - have you been able to reproduce this?

FYI: I found a workaround here: http://www.cnblogs.com/csophys/archive/2012/03/10/2389504.html

Warnings while package install with MELPA

Hi,

When I install the package with MELPA, Emacs reports following warnings:

Leaving directory `/home/myUser/.emacs.d/elpa/graphviz-dot-mode-20140303.1301'

Compiling file /home/myUser/.emacs.d/elpa/graphviz-dot-mode-20140303.1301/graphviz-dot-mode-pkg.el at Sun Feb 8 02:18:37 2015
Entering directory `/home/myUser/.emacs.d/elpa/graphviz-dot-mode-20140303.1301/'

Compiling file /home/myUser/.emacs.d/elpa/graphviz-dot-mode-20140303.1301/graphviz-dot-mode.el at Sun Feb 8 02:18:37 2015
graphviz-dot-mode.el:399:1:Warning: (lambda (elm) ...) quoted with ' rather
than with #'
graphviz-dot-mode.el:402:1:Warning: (lambda (elm) ...) quoted with ' rather
than with #'
graphviz-dot-mode.el:405:1:Warning: (lambda (elm) ...) quoted with ' rather
than with #'

In graphviz-dot-mode:
graphviz-dot-mode.el:542:9:Warning: compilation-parse-errors-function' is an obsolete variable (as of 24.1); usecompilation-error-regexp-alist'
instead.
graphviz-dot-mode.el:543:7:Warning: reference to free variable `dot-menu'

In graphviz-dot-compilation-parse-errors:
graphviz-dot-mode.el:599:4:Warning: Use with-current-buffer' rather than save-excursion+set-buffer graphviz-dot-mode.el:625:12:Warning: Usewith-current-buffer' rather than
save-excursion+set-buffer
graphviz-dot-mode.el:625:12:Warning: goto-line' is for interactive use only; useforward-line' instead.

In graphviz-dot-view:
graphviz-dot-mode.el:842:11:Warning: assignment to free variable `novaproc'

In graphviz-dot-complete-word:
graphviz-dot-mode.el:929:29:Warning: (lambda (elm) ...) quoted with ' rather
than with #'

I am using Debian jessie with GNU Emacs 24.4.1

Regards

Company-mode does not list node names?

Company-mode is working great except it doesn't list node names. I've looked over documentation and found nothing am I missing something, is it normal functionality to not list nodes?

Appreciate any pointers!

Org-mode integration causes load failure

If org mode isn't loaded already, the recently added org-mode integration causes an error. To reproduce, I ran emacs -q, then:

(load-file "~/.emacs.d/elpa/graphviz-dot-mode-20151010.2359/graphviz-dot-mode.el")

I get this error: (void-variable org-src-lang-modes)

I believe the reason is that eval-after-load needs its argument wrapped up in a quote. Instead of:

(eval-after-load 'org-mode
    (add-to-list 'org-src-lang-modes  '("dot" . graphviz-dot)))

it should be

(eval-after-load 'org-mode
   '(add-to-list 'org-src-lang-modes  '("dot" . graphviz-dot)))

Tag current commit

Can you please use git tag on the latest commit to release updated code to melpa stable?

Indentation of square brackets confused by empty lines

graphviz-dot-mode indents multiline blocks with square brackets like the following:

  node [
        fontname = "Bitstream Vera Sans"
        fontsize = 8
        shape = "record"]

        edge [
              fontname = "Bitstream Vera Sans"
              fontsize = 8]

expected would be:

  node [
        fontname = "Bitstream Vera Sans"
        fontsize = 8
        shape = "record"]

  edge [
        fontname = "Bitstream Vera Sans"
        fontsize = 8]

Underscores in IDs break highlighting

An underscore in an ID lets the remainder of the ID not being recognised as a part of it. In particular, syntax highlighting stops at the underscore.

set customize group

A Debian user requests 1 the following

In emacs24

M-x graphviz-dot-mode
M-x customize-mode

prompts for a major mode where I hoped it would go straight to the
"graphviz" customize defgroup.
This could be setup with

(put 'graphviz-dot-mode 'custom-mode-group 'graphviz)

Or change to define-derived-mode and use :group. define-derived-mode
would use `run-mode-hooks' too in an emacs new enough to have that.

font-lock-reference-face has been removed from Emacs

This face had been marked as obsolete for some time, I guess, and it has now been removed from the development version of Emacs. Solution is to use a different font lock face, I guess, but I have no idea which one would be most relevant.

graphviz-dot-preview error

When I run graphviz-dot-preview, I get "No Image found." and nothing happens. Does anybody know what's going on?

company-mode based completions

Though this major mode supports completions it is better to provide them through company completions. I could see a company backend but I don't how to use it

Improve support for splines

Hi! First off, thank you for this project. It has helped immensly in learning how to create a graphviz/dot diagram.

When completing fields for splines as of now, the suggested values are 0 ,1 false, no, true, yes.
While those are in use, they are a bit reduntant when inspecting the current documentation.

Current values seem to be none, (true|spline), (false|line), polyline, curved, ortho
Is this feasible to implement?

May you please create a tag for release?

Good evening,

Tonight I am writing to humbly put in a request for you to tag this project.

The reason is that a lot of users want to rely on the most "stable" release, by
the most broad definition of the term. For me, it is really simple, I am setting
up a "stable" Emacs configuration of my system here https://github.com/grettke/home/blob/master/.emacs.el
and I would like to rely 100% upon MELPA Stable http://stable.melpa.org/#/ .

I've used your package for a long time, love it, and so do many, many others.
This is a way to get that project out to the other thousands and thousands of
users who also rely upon MELPA stable.

All it takes is for you to create a tag, and within hours, it will show up on
MELPA stable.

Can't wait to hear about what you think and whether or not a tag is in this
project's future!

Kind regards,

Grant Rettke

P.S.

This most has been critical to thousands of us for years.

I can't speak for everyone, but I do feel quite strongly that this is
ready for a "release" at whatever number you version it at.

Document minimum required version of Emacs

It would be great to add a header

;; Package-Requires: ((emacs "X.Y"))

to state which minimum version number of Emacs is supported. This is primarily useful for development so that contributors know which versions of Emacs have to be supported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.