Commit Graph

65 Commits

Author SHA1 Message Date
Matthew Bauer
962756e818 emacs-mac: use generic builder
this builder leads to confusion, especially since it is no longer used
in the normal emacs derivation.
2018-10-14 22:41:42 -05:00
Matthew Bauer
2240445067 emacsMacport: 7.1 → 7.2
Fixes a critical issue with macOS

[NEWS](https://bitbucket.org/mituharu/emacs-mac/raw/master/NEWS-mac)

* emacs-26.1-mac-7.2 (2018-09-09)

** Fixed bugs

*** Buffer contents are not displayed on macOS 10.14.
This is mainly because now NSViews are backed by Core Animation Layer
(layer-backed) by default and non-deferred drawing into views no
longer works.  Instead of switching to deferred drawing (i.e., draw
only inside -[NSView drawRect:]), we draw into our own backing bitmap
in a non-deferred way as before, and update the view contents with the
resulting image via -[NSView updateLayer].  This "application-side
double buffering" is also available on OS X 10.8 - macOS 10.13 if you
set the frame parameter `inhibit-double-buffering' to nil when
creating a frame.  Just like on macOS 10.14, such a frame does not do
LCD smoothing.

*** Screenshot grabbed via Services is displayed in wrong size when we
have display mirroring between Retina and non-Retina displays.

*** Cursor movement just after frame resize sometimes leaves garbage.

*** Crash by the Fall_threads call from the GUI thread at the select
emulation when there are multiple Lisp threads.

*** Info title has ASCII underline unlike other window systems.

*** Vertical scroll bar is created as horizontal if frame font height
is short.

** Improvements

*** macOS 10.14 adds property :appearance to (mac-application-state).
The value may be "NSAppearanceNameAqua" or "NSAppearanceNameDarkAqua".

*** Add new color format "mac:COLOR-LIST-NAME:COLOR-NAME" and
"mac:COLOR-NAME" (shorthand for "mac:System:COLOR-NAME").  The actual
color may be different depending on the global appearance setting on
macOS 10.14.  For example, "mac:textColor" is black on the Light Mode
but is white on the Dark Mode.

*** Default frame colors respect appearance setting on macOS 10.14.
Now the default frame foreground/background color is
"mac:textColor"/"mac:textBackgroundColor", respectively.  Changes of
the system setting of the global appearance are dynamically reflected.

*** New function `mac-color-list-alist' to get the available
combinations of COLOR-LIST-NAMEs and COLOR-NAMEs.  Note that this
value is dependent on user environment and OS version.  Also, some
combinations may represent image patterns rather than colors.  For the
former cases, `(color-values "mac:COLOR-LIST-NAME:COLOR-NAME")'
returns nil.
2018-09-24 21:39:11 -05:00
Andrew Childs
bbf37b8c45 emacs: allow X and cli-only builds on Darwin 2018-09-10 12:20:23 +09:00
Herwig Hochleitner
ea5bcb78c2 emacs: update dependencies
new config options, xwidgets support updated in emacs 26

cc @chaoflow @lovek323 @peti @the-kenny @jwiegley
2018-08-16 09:38:55 +02:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Matthew Justin Bauer
ec3957591f
emacs-mac: fix meta
- add myself as a maintainer
- fix name and description for emacs 26
2018-06-20 16:28:25 -04:00
John Wiegley
4821a07370
emacsMacport: 26.1-7.0 -> 26.1-7.1 2018-06-14 15:35:05 -07:00
Matthew Bauer
bc490a4b3f emacs-mac: don’t propagate frameworks
This makes the closure really big & is not needed for a running emacs.
2018-06-09 12:58:58 -04:00
Matthew Bauer
697ae2a073 emacsMacport: apply clean-env.patch 2018-06-09 12:33:18 -04:00
Matthew Bauer
ee1d6114a8 emacsMacport: 25.3 -> 26.1 2018-05-31 12:34:16 -04:00
Matthew Bauer
aa2160e1b6 emacs26: add some tweaks from jwiegley’s overlay
original src:
f85c560bf8/overlays/10-emacs.nix
2018-05-28 13:35:10 -04:00
Matthew Bauer
a87b50bc63 emacs: readd version 25 2018-05-28 13:35:05 -04:00
Matthew Bauer
ac23a7c459 emacs: 25.3 → 26.1 2018-05-28 11:35:20 -04:00
Jan Tojnar
a31d98f312
tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
Moritz Ulrich
7cfdb2b1b5
emacs: Search subdirectories of site-lisp in NIX_PROFILES
This adds subdirectories of `share/emacs/site-lisp/` in every path in
`NIX_PROFILES` to `load-path` to allow loading of more complex
libraries like `mu4e`.

Fixes #33412
2018-01-05 10:50:18 +01:00
Moritz Ulrich
1543c8cc01
emacs: Add more documentation to site-start.el
`site-start.el` is the file loaded on startup, containing nix-specific
customizations like adding paths in `NIX_PROFILES` to the
emacs-specific search-path (`load-path`) or making man-pages in these
directories discoverable.
2018-01-05 10:50:13 +01:00
Moritz Drexl
3d52d43dd9 emacs: enable vfork on darwin
Issue described here:
https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-04/msg00201.html

In particular fixes lagging magit, as described here:
https://magit.vc/manual/magit/MacOS-Performance.html

The .patch file is taken from the reference there.

The fix is in Emacs master, so this patch should be removed when switching to
Emacs 26.1.
2017-12-16 22:25:42 +00:00
Anthony Cowley
a4203d0ffc emacsMacport: 25.3-6.7 -> 25.3-6.8 2017-10-16 15:16:01 -04:00
Eelco Dolstra
cf599d3f99
emacs: Clear the environment while dumping
This reduces the closure size of Emacs from 575 to 279 MiB. Dumping
Emacs had a chance of leaking parts of the environment (such as $PATH)
into the dumped executable. This hopefully fixes it. (It's a bit hard
to tell since the effect is not deterministic.)
2017-09-25 19:38:44 +02:00
Anthony Cowley
50a33089c6 emacsMacport: emacs-25.2 => 25.3, macport-6.3 => 6.7 2017-09-14 16:22:19 -04:00
Mikael Brockman
78f457c76c emacs: 25.2 -> 25.3
https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00211.html

> This is an emergency release to fix a security vulnerability in Emacs.
>
> Enriched Text mode has its support for decoding 'x-display' disabled.
> This feature allows saving 'display' properties as part of text.
> Emacs 'display' properties support evaluation of arbitrary Lisp forms
> as part of instantiating the property, so decoding 'x-display' is
> vulnerable to executing arbitrary malicious Lisp code included in the
> text (e.g., sent as part of an email message).
2017-09-12 09:45:02 +03:00
Volth
b7ccf27229 rename webkitgtk24x -> webkitgtk24x-gtk3; webkitgtk2 -> webkitgtk24x-gtk2 2017-05-26 13:43:25 +00:00
Yann Hodique
7e273df818 emacs-macport: align buildInputs and configureFlags on emacs 2017-04-22 11:44:03 -07:00
Yann Hodique
d884024d42 emacs: 25.1 -> 25.2 2017-04-22 11:44:03 -07:00
Leon Isenberg
f20a10b451 emacsMacport: change naming scheme
Changed name from emacs-25.1-mac-6.1 to emacs-mac-25.1-6.1.
The former scheme confused compareVersions from nix and consequently
nix-env -u.
2017-03-27 10:34:41 +02:00
Leon Isenberg
acb3135613 emacsMacport: correct description 2017-03-24 22:58:32 +01:00
Drew Hess
b800655639
emacs25Macport: fix for new macOS 10.10 frameworks.
See https://github.com/NixOS/nixpkgs/pull/23907#issuecomment-286627100.
2017-03-19 18:11:21 +01:00
Daiderd Jordan
a48df6fba6 Merge pull request #22508 from matthewbauer/remove-emacs24macport
emacs24macport: remove
2017-03-18 22:19:20 +01:00
Nikolay Amiantov
a8785daf0e emacs: fix runtime GTK3 dependencies
Fixes #23845.
2017-03-18 01:32:42 +03:00
Aycan iRiCAN
2ce7dd7fbb emacs: fix sha256 hashes of savannah patches 2017-02-15 18:33:01 +03:00
Thomas Tuegel
8bddf6d6ab Merge pull request #22514 from peterhoeg/f/emacs
emacs: make gtk3 default
2017-02-10 11:48:50 -06:00
Matthew Bauer
3a9a707fd4
emacs24macport: remove 2017-02-06 16:46:05 -06:00
Peter Hoeg
bc6b917100 emacs: make gtk3 default 2017-02-06 14:32:36 +08:00
Matthew Bauer
516300624e
emacs25Macport: use newer icons 2017-01-23 17:49:39 -06:00
Daiderd Jordan
3bd81a0620 Merge pull request #20536 from TikhonJelvis/master
emacs-24.5-mac-5.15: fixed package by adding build tools
2016-12-13 23:28:37 +01:00
Matthew Bauer
558551399d
emacs-macport: 6.0 -> 6.1 2016-11-25 00:29:55 -06:00
Matthew Bauer
25cfafdf5b
emacs-macport: fix "Carbon.h" present but cannot be compiled
Previously, emacs-macport was giving the error:

- AppKit/AppKit.h: present but cannot be compiled
- Carbon/Carbon.h: present but cannot be compiled

This add "MAC_OS_X_VERSION_MIN_REQUIRED=1090" to CFLAGS to allow them
to compile with the new 10.10 headers.

Fixes #20682.
2016-11-25 00:25:05 -06:00
Tikhon Jelvis
f4c96de8f9 Fixed the emacs24 macport package by adding automake and autoconf build tools. 2016-11-18 11:05:52 -08:00
John Wiegley
c4d2d56f22
emacs: Missed a pluralization... 2016-11-16 08:54:30 -08:00
John Wiegley
0bf515c973
emacs: Depend on libselinux only for Linux 2016-11-16 08:53:45 -08:00
Herwig Hochleitner
d1dba6e083 emacs: add selinux capability 2016-11-10 15:59:52 +01:00
Herwig Hochleitner
db402312a3 emacs: fix segfaults in 25.1 2016-11-10 15:59:47 +01:00
Nicolas Dudebout
7e7d588ca9 emacs: install the C source from postInstall
Reimplement the C source installation from the derivation instead of
relying on a Makefile patch.
2016-09-27 15:57:52 -04:00
Nicolas Dudebout
bb6708b858 emacs: add an option to install the C source
Install the source files, and the associated TAGS files. Use
.dir-locals.el to select the TAGS file automatically.

Turn the option on by default, to get a consistent behavior when using
xref-find-definitions (M-.), whether looking for an elisp (e.g. defun)
or a C (e.g. defalias) definition.
2016-09-26 17:09:06 -04:00
Periklis Tsirakidis
937b56f5db emacs-25-macport: init at 25.1-mac-6.0 (#18363) 2016-09-21 22:19:57 +02:00
Nicolas Dudebout
fafff78d3d Emacs cleanup (#18730)
emacs: Clean up derivation
2016-09-20 10:13:01 +02:00
Moritz Ulrich
01e44ac1f9 emacs: 24.5 -> 25.1
This commit removes all references to emacs24 with the exception of
emacs24-macports. The two folders in `pkgs/applications/editors` named
`emacs-24` and `emacs-24` are consolidated to a new `emacs` folder.

Various parts in nixpkgs also referenced `emacs24Packages` (pinned to
`emacs24`) explicitly where `emacsPackages` (non-pinned) is more
appropriate. These references get fixed by this commit too.
2016-09-18 13:38:21 +02:00
Eelco Dolstra
16c6da0129 * Emacs 22.1. This is the default now, but 21.4 is still around
(as is the 23.0.0.1 alpha).

svn path=/nixpkgs/trunk/; revision=9175
2007-08-20 13:48:56 +00:00
Eelco Dolstra
6c92badd87 * Added the Emacs Unicode branch (which supposedly will become Emacs
23.x), which GTK and Xft support.  Add something like

    (set-default-font "Bitstream Vera Sans Mono-8")

  to ~/.emacs to get a TTF font.

svn path=/nixpkgs/trunk/; revision=7841
2007-02-05 14:55:15 +00:00
Eelco Dolstra
42558043b3 * Emacs: use ncurses so that we don't need /etc/termcap in terminal
mode.

svn path=/nixpkgs/trunk/; revision=7287
2006-12-09 00:48:15 +00:00