anchor.diff:        extensions are distributed with GNU Emacs; others are available
         separately.
   
  -      This is the "Mac port" addition to GNU Emacs 26. This provides a native
  +      This is the "Mac port" addition to GNU Emacs. This provides a native
         GUI support for Mac OS X 10.6 - 10.12. Note that Emacs 23 and later
         already contain the official GUI support via the NS (Cocoa) port for
         Mac OS X 10.4 and later. So if it is good enough for you, then you
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "emacs";
    version = "27.2";
  
    emacsName = "emacs-${version}";
    macportVersion = "8.3";
    name = "emacs-mac-${version}-${macportVersion}";
  
    src = fetchurl {
      url = "mirror://gnu/emacs/${emacsName}.tar.xz";
      sha256 = "1ff182gjw9wqsbx1kj5gl2r5pbqhp4ar54g04j33fgz6g17cr9xl";
    };
  
    macportSrc = fetchurl {
      url = "ftp://ftp.math.s.chiba-u.ac.jp/emacs/${emacsName}-mac-${macportVersion}.tar.gz";
      sha256 = "0q4lbk3nb8rz1ibmf23plgsh8sx2wvhry5bf5mivgz4m4b6s2yij";
      name = "${emacsName}-mac-${macportVersion}.tar.xz"; # It's actually compressed with xz, not gz
    };
  
  
negative.code:     # Fix sandbox impurities.
      substituteInPlace Makefile.in --replace '/bin/pwd' 'pwd'
      substituteInPlace lib-src/Makefile.in --replace '/bin/pwd' 'pwd'
  
      # Reduce closure size by cleaning the environment of the emacs dumper
      substituteInPlace src/Makefile.in \
  