unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs 24 Mac port
@ 2012-03-03  4:20 YAMAMOTO Mitsuharu
  2012-03-03  8:26 ` Dave Abrahams
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: YAMAMOTO Mitsuharu @ 2012-03-03  4:20 UTC (permalink / raw)
  To: emacs-devel

The Mac port based on Emacs 24.0.94 pretest is now available from

    ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.0.94-mac-2.90.tar.gz

This version (2.9X) should be regarded as experimental/hackers-only.
There are some missing Emacs 24 features such as right-to-left Complex
Text Layout, and things are subject to change/removal in an
incompatible way.  Please refrain from distributing this in any
different form, including for (binary) distribution basis, until the
version gets to 3.0.


* emacs-24.0.94-mac-2.90 [experimental/hackers-only] (2012-03-03)
Based on Emacs 24.0.94.  Drop support for Mac OS X 10.2 and 10.3.
Be aware of the (platform-independent) change in selection:
mouse-dragging no longer automatically copies the selected text to the
clipboard without M-w or `Copy' in the menu bar or the tool bar,
unless you set `mouse-drag-copy-region' to t.

** Fixed bugs

*** If compiled with ARC, "Emacs" (in the menu bar) -> "About Emacs"
leads to crash.

*** Emacs -q --eval "(set-frame-parameter nil 'fullscreen 'fullboth)"
does not hide the menu bar.
Reported by Leo.

** Improvements

*** New image type `image-io', which is parallel to `imagemagick' but
uses the Image I/O framework.  If not configured to link with the
ImageMagick library, then `image-io' provides a fallback
implementation of the `imagemagick' image type.

*** The variable `tool-bar-style' works like in GTK+.  The values
`both-horiz', `text-image-horiz' are synonymous with `both'.

*** Flicking either a touch-sensitive mouse with one finger or a
trackpad with two fingers horizontally issues a swipe-left/swipe-right
event, which is now bound to a simple buffer switching by default.


You'll need the patch below for svg-clock.el 0.4 that is available
from ELPA, if SVG support is provided via WebKit instead of librsvg.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

diff -c /Users/mituharu/.emacs.d/elpa/svg-clock-0.4/svg-clock.el\~ /Users/mituharu/.emacs.d/elpa/svg-clock-0.4/svg-clock.el
*** /Users/mituharu/.emacs.d/elpa/svg-clock-0.4/svg-clock.el~	2012-02-17 10:30:04.000000000 +0900
--- /Users/mituharu/.emacs.d/elpa/svg-clock-0.4/svg-clock.el	2012-02-17 10:33:23.000000000 +0900
***************
*** 63,68 ****
--- 63,69 ----
  <!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"
  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">
  <svg xmlns=\"http://www.w3.org/2000/svg\"
+      xmlns:xlink=\"http://www.w3.org/1999/xlink\"
       width=\"%SIZE%\" height=\"%SIZE%\" >
      <defs>
          <symbol id=\"tick\">
***************
*** 154,160 ****
  
  (defun svg-clock-color-to-hex (colour)
    "Return hex representation of COLOUR."
!   (let ((values (color-values colour)))
      (format "#%02x%02x%02x" (nth 0 values) (nth 1 values) (nth 2 values))))
  
  (defun svg-clock-replace (from to)
--- 155,161 ----
  
  (defun svg-clock-color-to-hex (colour)
    "Return hex representation of COLOUR."
!   (let ((values (mapcar (lambda (x) (/ x 256)) (color-values colour))))
      (format "#%02x%02x%02x" (nth 0 values) (nth 1 values) (nth 2 values))))
  
  (defun svg-clock-replace (from to)




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

* Re: Emacs 24 Mac port
  2012-03-03  4:20 Emacs 24 Mac port YAMAMOTO Mitsuharu
@ 2012-03-03  8:26 ` Dave Abrahams
  2012-03-04  6:24 ` YAMAMOTO Mitsuharu
  2012-04-02  7:02 ` YAMAMOTO Mitsuharu
  2 siblings, 0 replies; 12+ messages in thread
From: Dave Abrahams @ 2012-03-03  8:26 UTC (permalink / raw)
  To: emacs-devel


on Fri Mar 02 2012, YAMAMOTO Mitsuharu <mituharu-AT-math.s.chiba-u.ac.jp> wrote:

> The Mac port based on Emacs 24.0.94 pretest is now available from
>
>     ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.0.94-mac-2.90.tar.gz
>

What a wonderful present!  And here is a first cut at a MacPorts
Portfile that builds and installs it:
https://github.com/dabrahams/Portfiles/commit/c2e86d3e82381ca6d0ddbe04668fb902cf42eec8

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




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

* Re: Emacs 24 Mac port
  2012-03-03  4:20 Emacs 24 Mac port YAMAMOTO Mitsuharu
  2012-03-03  8:26 ` Dave Abrahams
@ 2012-03-04  6:24 ` YAMAMOTO Mitsuharu
  2012-03-06  3:52   ` YAMAMOTO Mitsuharu
  2012-04-02  7:02 ` YAMAMOTO Mitsuharu
  2 siblings, 1 reply; 12+ messages in thread
From: YAMAMOTO Mitsuharu @ 2012-03-04  6:24 UTC (permalink / raw)
  To: emacs-devel

>>>>> On Sat, 03 Mar 2012 13:20:10 +0900, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> said:

> The Mac port based on Emacs 24.0.94 pretest is now available from
>
>     ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.0.94-mac-2.90.tar.gz

I've just noticed that HiDPI mode on Mac OS X 10.7.3 gives a blurry
look for the Mac port (both for Emacs 23 and 24).  I remember that it
used to work on Mac OS X 10.7.2, and Google Chrome seems to have a
similar problem.  I'll look into it.  For the moment, it can be worked
around by invoking the executable like:

   % .../Emacs.app/Contents/MacOS/Emacs -AppleMagnifiedMode NO &

Also, animation shown when entering to and exiting from full screen
seems to be wrong for HiDPI mode.  Unfortunately I don't remember if
it used to be correct on Mac OS X 10.7.2.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp



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

* Re: Emacs 24 Mac port
  2012-03-04  6:24 ` YAMAMOTO Mitsuharu
@ 2012-03-06  3:52   ` YAMAMOTO Mitsuharu
  2012-03-15  1:26     ` Dave Abrahams
  0 siblings, 1 reply; 12+ messages in thread
From: YAMAMOTO Mitsuharu @ 2012-03-06  3:52 UTC (permalink / raw)
  To: emacs-devel

>>>>> On Sun, 04 Mar 2012 15:24:39 +0900, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> said:

>> The Mac port based on Emacs 24.0.94 pretest is now available from
>> 
>> ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.0.94-mac-2.90.tar.gz

> I've just noticed that HiDPI mode on Mac OS X 10.7.3 gives a blurry
> look for the Mac port (both for Emacs 23 and 24).  I remember that
> it used to work on Mac OS X 10.7.2, and Google Chrome seems to have
> a similar problem.

> Also, animation shown when entering to and exiting from full screen
> seems to be wrong for HiDPI mode.  Unfortunately I don't remember if
> it used to be correct on Mac OS X 10.7.2.

The patch below seems to work.  It can be applied to Emacs 23.4 Mac
port 2.0 or Emacs 24.0.94 Mac port 2.90.

I also regenerated macuvs.h using IVD_Sequences.txt 2012-03-02 version
and put it to

  ftp://ftp.math.s.chiba-u.ac.jp/emacs/macuvs.h-2012-03-02.gz

You can replace the original src/macuvs.h (for Mac port 2.0 or 2.90)
with it if you want.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

=== modified file 'mac/Emacs.app/Contents/Info.plist'
*** mac/Emacs.app/Contents/Info.plist	2012-03-03 06:05:20 +0000
--- mac/Emacs.app/Contents/Info.plist	2012-03-06 03:31:31 +0000
***************
*** 71,76 ****
--- 71,78 ----
  	</array>
  	<key>NSAppleScriptEnabled</key>
  	<string>YES</string>
+ 	<key>NSPrincipalClass</key>
+ 	<string>EmacsApplication</string>
    	<key>NSServices</key>
  	<array>
  		<dict>

=== modified file 'src/macappkit.h'
*** src/macappkit.h	2012-03-03 06:05:20 +0000
--- src/macappkit.h	2012-03-05 03:44:55 +0000
***************
*** 774,779 ****
--- 774,780 ----
  - (NSWindowAnimationBehavior)animationBehavior;
  - (void)setAnimationBehavior:(NSWindowAnimationBehavior)newAnimationBehavior;
  - (void)toggleFullScreen:(id)sender;
+ - (CGFloat)backingScaleFactor;
  @end
  #endif
  
***************
*** 850,854 ****
--- 851,859 ----
  + (void)runAnimationGroup:(void (^)(NSAnimationContext *context))changes
          completionHandler:(void (^)(void))completionHandler;
  @end
+ 
+ @interface CALayer (AvailableOn1070AndLater)
+ @property CGFloat contentsScale;
+ @end
  #endif
  #endif

=== modified file 'src/macappkit.m'
*** src/macappkit.m	2012-03-03 06:05:20 +0000
--- src/macappkit.m	2012-03-05 03:44:55 +0000
***************
*** 2912,2917 ****
--- 2912,2918 ----
  #endif
    layer.bounds = CGRectMake (0, 0, [bitmap pixelsWide], [bitmap pixelsHigh]);
    layer.contents = (id) [bitmap CGImage];
+   layer.contentsScale = [transitionWindow backingScaleFactor];
    layer.contentsGravity = kCAGravityTopLeft;
    transitionContentView = [transitionWindow contentView];
    [transitionContentView setLayer:layer];




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

* Re: Emacs 24 Mac port
  2012-03-06  3:52   ` YAMAMOTO Mitsuharu
@ 2012-03-15  1:26     ` Dave Abrahams
  2012-03-15  8:22       ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 12+ messages in thread
From: Dave Abrahams @ 2012-03-15  1:26 UTC (permalink / raw)
  To: emacs-devel


on Mon Mar 05 2012, YAMAMOTO Mitsuharu <mituharu-AT-math.s.chiba-u.ac.jp> wrote:

>>>>>> On Sun, 04 Mar 2012 15:24:39 +0900, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> said:
>
>>> The Mac port based on Emacs 24.0.94 pretest is now available from
>>> 
>>> ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.0.94-mac-2.90.tar.gz
>
>> I've just noticed that HiDPI mode on Mac OS X 10.7.3 gives a blurry
>> look for the Mac port (both for Emacs 23 and 24).  I remember that
>> it used to work on Mac OS X 10.7.2, and Google Chrome seems to have
>> a similar problem.
>
>> Also, animation shown when entering to and exiting from full screen
>> seems to be wrong for HiDPI mode.  Unfortunately I don't remember if
>> it used to be correct on Mac OS X 10.7.2.
>
> The patch below seems to work.  It can be applied to Emacs 23.4 Mac
> port 2.0 or Emacs 24.0.94 Mac port 2.90.

I updated the Portfile at with that patch
https://github.com/dabrahams/Portfiles/tree/master/editors/emacs24-macport

> I also regenerated macuvs.h using IVD_Sequences.txt 2012-03-02 version
> and put it to
>
>   ftp://ftp.math.s.chiba-u.ac.jp/emacs/macuvs.h-2012-03-02.gz
>
> You can replace the original src/macuvs.h (for Mac port 2.0 or 2.90)
> with it if you want.

I didn't do anything about this in the Portfile, in part because I
didn't understand why I'd want to.  Could you explain the effect?

Thanks,
Dave

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




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

* Re: Emacs 24 Mac port
  2012-03-15  1:26     ` Dave Abrahams
@ 2012-03-15  8:22       ` YAMAMOTO Mitsuharu
  0 siblings, 0 replies; 12+ messages in thread
From: YAMAMOTO Mitsuharu @ 2012-03-15  8:22 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: emacs-devel

>>>>> On Wed, 14 Mar 2012 21:26:24 -0400, Dave Abrahams <dave@boostpro.com> said:

>> I also regenerated macuvs.h using IVD_Sequences.txt 2012-03-02
>> version and put it to
>> 
>> ftp://ftp.math.s.chiba-u.ac.jp/emacs/macuvs.h-2012-03-02.gz
>> 
>> You can replace the original src/macuvs.h (for Mac port 2.0 or
>> 2.90) with it if you want.

> I didn't do anything about this in the Portfile, in part because I
> didn't understand why I'd want to.  Could you explain the effect?

I guess most of the users don't need to update this file.

It contains a generated table mapping Unicode Variation Sequences to
Adobe-Japan1 CIDs.  The file src/macuvs.h in Mac port 2.0 and 2.90 is
generated from the Ideographic Variation Database (IVD,
http://unicode.org/ivd/) as of 2010-11-14, and the above one is
updated for the 2012-03-02 version.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp



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

* Re: Emacs 24 Mac port
@ 2012-03-22 11:04 Pavel Martynenko
  0 siblings, 0 replies; 12+ messages in thread
From: Pavel Martynenko @ 2012-03-22 11:04 UTC (permalink / raw)
  To: emacs-devel; +Cc: mituharu

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

Fix tooltip position

$ diff -u src/macfns.c~ src/macfns.c
--- src/macfns.c~	2012-03-22 12:37:16.000000000 +0200
+++ src/macfns.c	2012-03-22 12:36:15.000000000 +0200
@@ -3509,8 +3509,6 @@
 
   if (INTEGERP (top))
     *root_y = XINT (top);
-  else if (*root_y + XINT (dy) <= 0)
-    *root_y = 0; /* Can happen for negative dy */
   else if (*root_y + XINT (dy) + height
 	   <= x_display_pixel_height (FRAME_MAC_DISPLAY_INFO (f)))
     /* It fits below the pointer */
@@ -3524,8 +3522,6 @@
 
   if (INTEGERP (left))
     *root_x = XINT (left);
-  else if (*root_x + XINT (dx) <= 0)
-    *root_x = 0; /* Can happen for negative dx */
   else if (*root_x + XINT (dx) + width
 	   <= x_display_pixel_width (FRAME_MAC_DISPLAY_INFO (f)))
     /* It fits to the right of the pointer.  */

--------------------------------------------------------------------------------
It happens when second monitor attached on top or left.

+---------------------++----------------+
|		      ||----------------|
|		      ||     main       |
|       second        ||                |
|		      |+----------------+
|		      |
+---------------------+

or

+---------------------+
|		      |
|		      |
|	second        |
|		      |
|      	       	      |
+---------------------+
+----------------+
|----------------|
|      main      |
|                |
+----------------+



Cheers,
Pavlo Martynenko
pavelmart@gmail.com






[-- Attachment #2: Type: text/html, Size: 7122 bytes --]

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

* Re: Emacs 24 Mac port
  2012-03-03  4:20 Emacs 24 Mac port YAMAMOTO Mitsuharu
  2012-03-03  8:26 ` Dave Abrahams
  2012-03-04  6:24 ` YAMAMOTO Mitsuharu
@ 2012-04-02  7:02 ` YAMAMOTO Mitsuharu
  2012-04-02 15:08   ` Leo
  2012-04-28  2:07   ` YAMAMOTO Mitsuharu
  2 siblings, 2 replies; 12+ messages in thread
From: YAMAMOTO Mitsuharu @ 2012-04-02  7:02 UTC (permalink / raw)
  To: emacs-devel

The first update of Emacs 24 Mac port, which is
experimental/hackers-only, is now available from

    ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.0.95-mac-2.91.tar.gz

This version is based on Emacs 24.0.95 pretest.

** Fixed bugs

*** HiDPI mode gives a blurry magnified text look on Mac OS X 10.7.3.

*** HiDPI mode shows wrong animation on transition from/to full screen.

*** M-x electric-pair-mode RET gives the warning "Note, built-in
variable `imagemagick-render-type' not bound".
Reported by Leo.

*** Tooltip place adjustment does not take account of multiple
monitors.
Reported by Pavel Martynenko.

*** Drag-and-drop highlight is not displayed just after exiting from
full screen.

*** Momentum scroll events after horizontal flicking interfere with a
multi-key sequence.

*** "Emacs" (in the menu bar) -> "About Emacs" then typing "q" causes
an error.

** Improvements

*** Support right-to-left text shaping.

*** New variable `mac-system-move-file-to-trash-use-finder', which
enables us to use the Finder for trashing so we can `Put Back' the
trashed items from the context menu.

*** Buffer switching by horizontal swiping/flicking and exiting from
the splash screen are accompanied with an experimental simple
animation effect on Mac OS X 10.5 and later.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp



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

* Re: Emacs 24 Mac port
  2012-04-02  7:02 ` YAMAMOTO Mitsuharu
@ 2012-04-02 15:08   ` Leo
  2012-04-28  2:07   ` YAMAMOTO Mitsuharu
  1 sibling, 0 replies; 12+ messages in thread
From: Leo @ 2012-04-02 15:08 UTC (permalink / raw)
  To: emacs-devel

On 2012-04-02 15:02 +0800, YAMAMOTO Mitsuharu wrote:
> *** Buffer switching by horizontal swiping/flicking and exiting from
> the splash screen are accompanied with an experimental simple
> animation effect on Mac OS X 10.5 and later.

I like the animation. Thanks.

Leo




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

* Re: Emacs 24 Mac port
  2012-04-02  7:02 ` YAMAMOTO Mitsuharu
  2012-04-02 15:08   ` Leo
@ 2012-04-28  2:07   ` YAMAMOTO Mitsuharu
  2012-05-17  5:12     ` YAMAMOTO Mitsuharu
  1 sibling, 1 reply; 12+ messages in thread
From: YAMAMOTO Mitsuharu @ 2012-04-28  2:07 UTC (permalink / raw)
  To: emacs-devel

The second update of Emacs 24 Mac port, which is
experimental/hackers-only, is now available from

    ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.0.96-mac-2.92.tar.gz

This version is based on Emacs 24.0.96 pretest.

** Fixed bugs

*** Arabic Text U+0644 U+0627 is displayed wrong.
Reported by Joost Kremers.

*** "Options" (in the menu bar) -> "Set Default Font..." just after
launch fails to change the font on Mac OS X 10.5 and later.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp



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

* Re: Emacs 24 Mac port
  2012-04-28  2:07   ` YAMAMOTO Mitsuharu
@ 2012-05-17  5:12     ` YAMAMOTO Mitsuharu
  2012-06-01 11:43       ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 12+ messages in thread
From: YAMAMOTO Mitsuharu @ 2012-05-17  5:12 UTC (permalink / raw)
  To: emacs-devel

The third update of Emacs 24 Mac port, which is
experimental/hackers-only, is now available from

    ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.0.97-mac-2.93.tar.gz

This version is based on Emacs 24.0.97 pretest.

** Fixed bugs

*** Wrong Command-Control-D pop-up position in right-to-left
paragraphs.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp



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

* Re: Emacs 24 Mac port
  2012-05-17  5:12     ` YAMAMOTO Mitsuharu
@ 2012-06-01 11:43       ` YAMAMOTO Mitsuharu
  0 siblings, 0 replies; 12+ messages in thread
From: YAMAMOTO Mitsuharu @ 2012-06-01 11:43 UTC (permalink / raw)
  To: emacs-devel

The fourth update of Emacs 24 Mac port, which is
experimental/hackers-only, is now available from

    ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.1-rc-mac-2.94.tar.gz

This version is based on Emacs 24.1 release candidate.

** Improvements

*** Animation now supports the built-in Core Image transition filters
via Core Animation.  The "About Emacs" and "Preferences..." menu items
in the application menu (labeled "Emacs") in the menu bar are
accompanied with a transition animation effect on Mac OS X 10.5 and
later.  Animation is suppressed if the frame is not completely opaque,
because it does not give an intended effect on such frames.

Known issues: The `page-curl' transition does not look right on Mac OS
X 10.5.  Also, the `page-curl-with-shadow' transition does not look
right for some angles on Mac OS X 10.7.4.  Both transitions look
blurry on Mac OS X 10.7.4 with HiDPI mode.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp



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

end of thread, other threads:[~2012-06-01 11:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-03  4:20 Emacs 24 Mac port YAMAMOTO Mitsuharu
2012-03-03  8:26 ` Dave Abrahams
2012-03-04  6:24 ` YAMAMOTO Mitsuharu
2012-03-06  3:52   ` YAMAMOTO Mitsuharu
2012-03-15  1:26     ` Dave Abrahams
2012-03-15  8:22       ` YAMAMOTO Mitsuharu
2012-04-02  7:02 ` YAMAMOTO Mitsuharu
2012-04-02 15:08   ` Leo
2012-04-28  2:07   ` YAMAMOTO Mitsuharu
2012-05-17  5:12     ` YAMAMOTO Mitsuharu
2012-06-01 11:43       ` YAMAMOTO Mitsuharu
  -- strict thread matches above, loose matches on Subject: below --
2012-03-22 11:04 Pavel Martynenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).