Re: [homebrew] Calling all emacs hackers...
- From:
- Drew Hess
- Date:
- 2011-04-07 @ 07:45
On Sun, Apr 3, 2011 at 12:32 PM, Adam Vandenberg <flangy@gmail.com> wrote:
> If you install emacs via Homebrew, please help out on these issues:
> https://github.com/mxcl/homebrew/issues/labels/emacs
>
> I don't use emacs personally, and don't have Xcode 4 installed, so I
> can't honestly judge most of these.
> At the very least, we need help weeding out the duplicate issues.
Yamamoto Mitsuharu maintains a set of experimental patches to Emacs
23.3 that combines the best features of the old "Carbon Emacs" port
with modern AppKit goodness, plus a bunch of other random Mac-specific
features that are found only in Yamamoto-san's patches (and perhaps in
Aquamacs). He calls this set of patches the "experimental Mac port" of
Emacs.
The complete list of improvements in the Mac port vs. stock
NS-configured Emacs are too numerous to enumerate here, but some of
the best are support for AppleScript (via OSA), support for trackpad
gestures, and the ability to make Emacs your default mail
application. It also includes a fix for compiling Emacs 23.3 with
Xcode 4.
Yamamoto-san announces new versions of his patches on emacs-devel. The
latest version of the patches is meant to be applied to the release
version of Emacs 23.3, and can be found here:
ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-23.3-mac-1.9992.tar.gz
I've been using Yamamoto-san's Mac port patches with my Homebrew-built
Emacs for many months with no issues. It works at least as well as
stock NS Emacs, and much better than Aquamacs, in my experience. (At
the very least, it's a lot more like stock Emacs than Aquamacs is.)
I maintain an emacs-mac-port topic branch of Homebrew here:
https://github.com/dhess/homebrew/tree/emacs-mac-port
I haven't tried compiling stock Emacs 23.3 with Xcode 4 because I only
ever use Yamamoto-san's Mac port, but with his patches applied, Emacs
23.3 compiles and works great with Xcode 4, so applying the Mac port
to Homebrew Emacs is one way to fix the Xcode 4 issues. There are two
catches, however:
* The patch set is extensive, and I don't know how to extract the
Xcode 4 fixes from the rest of the changes.
* Yamamoto-san says the following in the patch set's README:
This version should be regarded as experimental/hackers-only.
Documentations [sic] are completely missing, no extra files such as
the package creation convenience script `make-package', 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 2.0.
Strictly speaking, my emacs.rb Homebrew formula doesn't distribute the
patch set in a "different form"; it only downloads the tarball and
automates the application of the patches, which is a multi-step
process that's a PITA to do by hand. But it's possible that
Yamamoto-san would object to the Mac port's official inclusion in
Homebrew at this stage in the port's development.
Anyway, it's an option for solving the Xcode 4 problems, and it adds a
bunch of nice Mac features to Emacs, to boot. If someone wants to pull
my emacs-mac-port branch, be my guest.
d
Re: [homebrew] Calling all emacs hackers...
- From:
- Mike McQuaid
- Date:
- 2011-04-05 @ 07:16
On 3 April 2011 20:32, Adam Vandenberg <flangy@gmail.com> wrote:
> If you install emacs via Homebrew, please help out on these issues:
> https://github.com/mxcl/homebrew/issues/labels/emacs
>
> I don't use emacs personally, and don't have Xcode 4 installed, so I
> can't honestly judge most of these.
> At the very least, we need help weeding out the duplicate issues.
To be stronger on this, considering emacs is a system duplicate,
chances of it being removed it we can't maintain it properly is
probably fairly high.
--
Mike McQuaid
http://mikemcquaid.com
Re: [homebrew] Calling all emacs hackers...
- From:
- George Kulakowski
- Date:
- 2011-04-05 @ 12:40
I would close 4657 with a message to break up into smaller logical
commits. It seems to be trying to do several things at once.
4914 is trying to do two things also; it changes a lot of messages,
and changes the HEAD build to build Emacs 24 rather than 23. I don't
know why.
5012 duplicates 4879, which is most likely a dupe of 4650.
In general I do net have any idea about how to solve the Emacs with
Xcode 4 issues. I currently build Emacs 24 manually with Xcode 4 with
no issues (except for having to install new versions of autotools as
per 4852). I've found doing it manually to be easier than trying to
keep Homebrew doing what I want, so my interest in keeping on top of
issues like these has dwindled.
As far as system duplicates go, why not also zsh? The difference in
functionality between the system zsh and Homebrew's is minuscule
compared to the difference between Emacs head and 22.1. Also, using
Homebrew's zsh as a login shell requires manually altering a file as
root, which doesn't exactly fit with the ethos of Homebrew.
On Tue, Apr 5, 2011 at 3:16 AM, Mike McQuaid <mike@mikemcquaid.com> wrote:
> On 3 April 2011 20:32, Adam Vandenberg <flangy@gmail.com> wrote:
>> If you install emacs via Homebrew, please help out on these issues:
>> https://github.com/mxcl/homebrew/issues/labels/emacs
>>
>> I don't use emacs personally, and don't have Xcode 4 installed, so I
>> can't honestly judge most of these.
>> At the very least, we need help weeding out the duplicate issues.
>
> To be stronger on this, considering emacs is a system duplicate,
> chances of it being removed it we can't maintain it properly is
> probably fairly high.
>
> --
> Mike McQuaid
> http://mikemcquaid.com
>
Re: [homebrew] Calling all emacs hackers...
- From:
- Peter Aronoff
- Date:
- 2011-04-05 @ 14:26
On Tue Apr 06 2011 @ 8:40, George Kulakowski wrote:
> As far as system duplicates go, why not also zsh? The difference in
> functionality between the system zsh and Homebrew's is minuscule
> compared to the difference between Emacs head and 22.1. Also, using
> Homebrew's zsh as a login shell requires manually altering a file as
> root, which doesn't exactly fit with the ethos of Homebrew.
And then we are back to Bash again for the same reasons (see for example
the discussion here - https://github.com/mxcl/homebrew/pull/2438).
More than once I've seen Max say that Homebrew doesn't try to be all things
to all people and also that it was originally meant to simply add only "a
few packages" to a basic system. On the other hand, it now has a huge
userbase among people who develop on Macs, and (from what I can tell) many
of those people use Homebrew as their primary (only?) package manager for
more than a few packages at a time.
Here are some pros and cons of duplication as I see them:
Pros:
* Some things exist in very different versions from the version Apple
ships with (Vim, for example - or how about Git?).
* In some cases a newer version of package B is required to build
package A. I think that curl and couchdb is a case of this.
* A lot of users want them.
* There is nothing inherently evil or bad about editing a system file
with root permissions. The permissions are a perfectly normal part
of *nix systems.
* The formulas in homebrew-alt are now very much second-class citizens.
You can't straightforwardly track or update things you install from
there using `brew` itself.
Cons:
* There is the no-duplicate rule.
* Someone might conceivably edit /etc/shells in such a way that he is
later locked out of his system. He might then blame Homebrew. (I
think this is a bad argument, but it came up in the Bash thread, so
I'm mentioning it here.)
* Maintaining duplicates is more work for the maintainers, especially
in a case like Emacs which is apparently buggy with Lion.
If I ran the world, I would rather see Homebrew open up to *more*
duplicates, because I think the pros outweigh the cons. Either way though,
I think something should be done/adjusted/set in stone. The current policy
is all over the place, and that leads to confusion and frustration for
users.
Anyhow, that's my rant. Back to work for me.
Thanks, Peter
--
If you're early, you're on time. If you're on time, you're late.
Re: [homebrew] Calling all emacs hackers...
- From:
- Mike McQuaid
- Date:
- 2011-04-05 @ 18:30
On Tuesday, 5 April 2011 at 15:26, Peter Aronoff wrote:
> If I ran the world, I would rather see Homebrew open up to *more*
> duplicates, because I think the pros outweigh the cons. Either way though,
> I think something should be done/adjusted/set in stone. The current policy
> is all over the place, and that leads to confusion and frustration for
> users.
No. The current policy is flexible because it's more important to be
useful than consistent. Programmers care far more about consistency than
most normal people (I include myself here in not being normal). We can't
just remove heavily-used duplicates until we have a migration path for the
users using them.
It leads to some aggravation in the minority who insist on consistency. No
matter what we do we will aggravate some people and I don't believe in
changing Max's good design simply because some people don't like it.
--
Mike McQuaid
http://mikemcquaid.comSent with Sparrow