Skip to content

Instantly share code, notes, and snippets.

View aaronjensen's full-sized avatar

Aaron Jensen aaronjensen

View GitHub Profile
;;; -*- lexical-binding: t; -*-
(defun doom--resolve-hooks (hooks)
(cl-loop with quoted-p = (eq (car-safe hooks) 'quote)
for hook in (doom-enlist (doom-unquote hooks))
if (eq (car-safe hook) 'quote)
collect (cadr hook)
else if quoted-p
collect hook
else collect (intern (format "%s-hook" (symbol-name hook)))))
@aaronjensen
aaronjensen / company-dabbrev.el
Last active February 6, 2018 08:17
Emacs threading crash
;;; company-dabbrev.el --- dabbrev-like company-mode completion backend -*- lexical-binding: t -*-
;; Copyright (C) 2009, 2011, 2014, 2015, 2016 Free Software Foundation, Inc.
;; Author: Nikolaj Schumacher
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by

Commit Message Guidelines

#<IssueId> Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
diff --git a/src/nsterm.m b/src/nsterm.m
index a41d6be204..b433092d24 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -7207,9 +7207,9 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f
win = [[EmacsWindow alloc]
initWithContentRect: r
- styleMask: (FRAME_UNDECORATED (f)
+ styleMask: ((FRAME_UNDECORATED (f)
diff --git a/src/nsterm.m b/src/nsterm.m
index a41d6be204..efd18ce24b 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -437,7 +437,8 @@ - (NSColor *)colorUsingDefaultColorSpace
| NSWindowStyleMaskMiniaturizable \
| NSWindowStyleMaskClosable)
#endif
-#define FRAME_UNDECORATED_FLAGS NSWindowStyleMaskBorderless
+#define FRAME_UNDECORATED_FLAGS (NSWindowStyleMaskBorderless \
From 1f3cc768922a81453b18c4e88fb0156079233cbe Mon Sep 17 00:00:00 2001
From: Aaron Jensen <[email protected]>
Date: Tue, 5 Sep 2017 08:04:41 -0700
Subject: Revert perf regression
---
src/nsterm.m | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/src/nsterm.m b/src/nsterm.m
From 4edade12422f7dc147e7de540f447e2f779508c3 Mon Sep 17 00:00:00 2001
From: Alan Third <[email protected]>
Date: Thu, 25 May 2017 20:13:21 +0100
Subject: [PATCH] Fix NS tooltip's showing in the wrong place (bug#27053)
* src/nsfns.m (compute_tip_xy): Get current mouse position instead of
last recorded position.
---
src/nsfns.m | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
---
lisp/cus-start.el | 1 +
src/nsterm.m | 19 +++++++++++++++++--
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 51a92324f2..e9fb28cb17 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -446,6 +446,7 @@ minibuffer-prompt-properties--setter
From 0ade1fe11600b0550db26e4be8d46784f1202075 Mon Sep 17 00:00:00 2001
From: Alan Third <[email protected]>
Date: Sun, 9 Apr 2017 20:10:33 +0100
Subject: [PATCH] Use vfork if possible on Darwin (bug#26397)
Co-authored-by: YAMAMOTO Mitsuharu <[email protected]>
* src/conf_post.h (HAVE_WORKING_VFORK): Don't undef.
(vfork): Don't define.
* src/process.c (create_process) [DARWIN_OS]: Use fork if pty_flag is
From 4a9221e2332d85d64978719a43f884b92bf6cb7b Mon Sep 17 00:00:00 2001
From: Aaron Jensen <[email protected]>
Date: Sat, 8 Apr 2017 08:32:57 -0700
Subject: [PATCH 1/2] Enable vfork on macOS
---
src/conf_post.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/conf_post.h b/src/conf_post.h