all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* vc-hg modeline changed.
@ 2016-05-02 20:01 Uwe Brauer
  2016-05-05  9:15 ` SOLVED (was: vc-hg modeline changed.) Uwe Brauer
  0 siblings, 1 reply; 20+ messages in thread
From: Uwe Brauer @ 2016-05-02 20:01 UTC (permalink / raw)
  To: emacs-devel; +Cc: Daniel Colascione

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


Hi

I just upgraded 25.5.1  via git pull and recompiling.

Then I noted (to my horror (personal opinion) that the behavior of
hg-modeline was changed.

The relevant log entry is this:

commit de76a167dc09dc695a5acebabb7ab354a6bf556e
Author: Daniel Colascione <dancol@dancol.org>
Date:   Mon Feb 8 10:52:54 2016 -0800

    Performance improvements for vc-hg
    
    Teach vc-hg how to read some Mercurial internal data structures,
    allowing us to avoid the need to run hg status -A, which is very slow
    for large repositories.  Fall back to running hg if anything looks
    funny.  vc-hg now puts the _working directory_ revision in the
    modeline instead of the file revision, which greatly improves
    performance and which allows us to again skip running hg in the case
    that we have an active bookmark.
    
Very well, now per default hg displays the tag (if there is any) of the
repo.

I wanted the old behavior and I thought I just set 
 vc-hg-use-file-version-for-mode-line-version to t.

But then HG-hash is displayed not HG-rev.
I don't want to start a flame war about the usefulness of the local rev number,
but for me it is *very* useful.

Please tell me how to obtain the old behavior.

I attach 3 screenshots:
The old one, the new one with the varible set to nil, and then to t.

regards

Uwe Brauer 



[-- Attachment #2: hg-modeline-hash.png --]
[-- Type: image/png, Size: 86715 bytes --]

[-- Attachment #3: hg-modeline-tag.png --]
[-- Type: image/png, Size: 86223 bytes --]

[-- Attachment #4: hg-modeline-rev.png --]
[-- Type: image/png, Size: 87842 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Xemacs: org-preview-latex-fragment, png not readable.
@ 2012-01-28 20:20 Uwe Brauer
  2012-01-28 20:59 ` Solved (was: Xemacs: org-preview-latex-fragment, png not readable.) Uwe Brauer
  0 siblings, 1 reply; 20+ messages in thread
From: Uwe Brauer @ 2012-01-28 20:20 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello

I made some progress in getting the function to work in
Xemacs.


The main problem seemed to be the function 
org-dvipng-color which is called in
org-create-formula-image.

The original formulation was 

(defun org-dvipng-color (attr)
  "Return an rgb color specification for dvipng."
  (apply 'format "rgb %s %s %s"
	 (mapcar 'org-normalize-color
		 (color-values (face-attribute 'default attr
		 nil)))))



Which does not work for Xemacs. Thanks to Julian Bradfield,
the solution seems to be:

(defun org-dvipng-color (attr)
  "Return an rgb color specification for dvipng."
  (apply 'format "rgb %s %s %s"
	 (mapcar 'org-normalize-color
 (color-rgb-components
     (face-property 'default (intern (substring (symbol-name attr) 1)))))))


However the png which were generated where to small to be
readable. I attach one at the end of the message.

So I tried out in GNU Emacs 21.3 to comment out
org-dvipng-color in org-create-formula-image.
org-preview-latex-fragment then still works, so  is not
necessary for generating the pngs.

So I tried to do the same in Xemacs but the formulas in the
png files keep being  too small.

What could be the reason for this behavior?

Uwe Brauer 

The following attachment should be an integral. 

Xemacs:

[-- Attachment #2: test3_7801a85c58c7aabc4553724e826b458ba08dda90.png --]
[-- Type: image/png, Size: 96 bytes --]

[-- Attachment #3: Type: text/plain, Size: 12 bytes --]


Gnu Emacs 

[-- Attachment #4: test_7ceb32811fbcd1322f595ca60dcc47456c20b5fe.png --]
[-- Type: image/png, Size: 268 bytes --]

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

end of thread, other threads:[~2016-05-06 13:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-02 20:01 vc-hg modeline changed Uwe Brauer
2016-05-05  9:15 ` SOLVED (was: vc-hg modeline changed.) Uwe Brauer
2016-05-05 11:26   ` Kaushal Modi
2016-05-05 16:10     ` SOLVED Uwe Brauer
2016-05-05 16:18       ` SOLVED Kaushal Modi
2016-05-05 16:41         ` SOLVED Andreas Schwab
2016-05-05 20:12     ` SOLVED Uwe Brauer
2016-05-06  6:27       ` SOLVED Eli Zaretskii
2016-05-05 20:50     ` SOLVED Uwe Brauer
2016-05-05 21:33       ` SOLVED Kaushal Modi
2016-05-06  7:53         ` SOLVED Uwe Brauer
2016-05-06  9:28           ` SOLVED Yuri Khan
2016-05-06 10:29             ` SOLVED Uwe Brauer
2016-05-06 10:45             ` SOLVED II (was: SOLVED) Uwe Brauer
2016-05-06 12:10             ` SOLVED Clément Pit--Claudel
2016-05-06 12:24               ` SOLVED Yuri Khan
2016-05-06 12:32                 ` SOLVED Clément Pit--Claudel
2016-05-06 13:00                   ` SOLVED Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2012-01-28 20:20 Xemacs: org-preview-latex-fragment, png not readable Uwe Brauer
2012-01-28 20:59 ` Solved (was: Xemacs: org-preview-latex-fragment, png not readable.) Uwe Brauer
2012-01-28 22:33   ` Solved Bastien
2012-01-29  0:13     ` Solved Nick Dokos

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.