ppareit / graphviz-dot-mode Goto Github PK
View Code? Open in Web Editor NEWEmacs mode for the DOT language, used by graphviz.
Home Page: https://ppareit.github.io/graphviz-dot-mode
License: GNU General Public License v2.0
Emacs mode for the DOT language, used by graphviz.
Home Page: https://ppareit.github.io/graphviz-dot-mode
License: GNU General Public License v2.0
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.
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.
0.4 was tagged a long time ago, but still never made it into the package.el metadata
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.
Hi! I am unable to set up company
to work with DOT
, as suggested in the README.
It seems that company-graphviz-dot
is not on MELPA anymore.
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/dotMaybe it could re-use the same buffer each time?
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:
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.
The documentation references "doted" as default view command. What is that? Where can I find it?
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?
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))
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
Hi,
I use graphviz-dot-mode to edit .gv dot file, if I type a [ after a node, it will give me two [, like this:
a_node [|[
, where |
is the point.
How to fix this? thanks.
I get this error with Emacs development version.
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); use
compilation-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: Usewith-current-buffer' rather than save-excursion+set-buffer graphviz-dot-mode.el:625:12:Warning: Use
with-current-buffer' rather than
save-excursion+set-buffer
graphviz-dot-mode.el:625:12:Warning:goto-line' is for interactive use only; use
forward-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 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!
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)))
Can you please use git tag on the latest commit to release updated code to melpa stable?
The code has a note at https://github.com/ppareit/graphviz-dot-mode/blob/master/graphviz-dot-mode.el#L588-L606:
;; It would nicer if we could just use compilation-error-regexp-alist
;; to do that, 3 options:
[β¦]
;; - modify dot and neato !!! (PP:15/02/2005 seems to have happend,
;; so version 0.4.0 should clean this mess up!)
graphviz-dot-mode, eimp, anaconda-mode, sphinx-doc, proceed? (y or n) y
Contacting host: melpa.org:443
package-install-from-archive: https://melpa.org/packages/graphviz-dot-mode-20181118.551.el: Not found
Mark set
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]
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.
A Debian user requests 1 the following
In emacs24
M-x graphviz-dot-mode
M-x customize-modeprompts 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.
Try to install it with package-install
, but I get the following error:
https://melpa.org/packages/graphviz-dot-mode-20220309.1336.tar: Not found
System is:
GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13
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.
When I run graphviz-dot-preview
, I get "No Image found." and nothing happens. Does anybody know what's going on?
bug:
===== test.dot==========
digraph G {
credit -> blueberry
}
shows the characters "red" and "blue" in red colour
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
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?
Hello,
Please find a fix in pull request #53
Thanks for all your work!
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.
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.
In the following line
graphviz-dot-mode/graphviz-dot-mode.el
Line 293 in 6e96a89
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.