Skip to content

Instantly share code, notes, and snippets.

View aaronjensen's full-sized avatar

Aaron Jensen aaronjensen

View GitHub Profile
From 323740bf0d554fbfc6afc90ed81c68879cd46ece Mon Sep 17 00:00:00 2001
From: Aaron Jensen <aaronjensen@gmail.com>
Date: Wed, 21 Mar 2018 22:30:08 -0700
Subject: [PATCH] Fix crash after frame is freed on macOS (bug#30800)
* src/nsterm.m (x_free_frame_resources): Clear represented_frame.
(bug#30800)
---
src/nsterm.m | 4 ++++
1 file changed, 4 insertions(+)
From 823298202face05009808d2f00e2faa711c3882f Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Sat, 10 Mar 2018 00:09:09 +0000
Subject: [PATCH v2] Fix frame resize flicker on macOS (bug#30699)
* src/nsterm.h (ns_enable_screen_updates): New function.
* src/nsterm.m (ns_enable_screen_updates):
(ns_disable_screen_updates): New functions.
(disable_screen_updates_count): Count of number of times we've called
NSDisableScreenUpdates.
From c382338d44c3ff833e965e1d92106a90b75edec5 Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Sat, 10 Mar 2018 00:09:09 +0000
Subject: [PATCH] Fix frame resize flicker on macOS (bug#30699)
* src/nsterm.h (ns_enable_screen_updates): New function.
* src/nsterm.m (ns_enable_screen_updates):
(ns_disable_screen_updates): New functions.
(disable_screen_updates_count): Count of number of times we've called
NSDisableScreenUpdates.
@aaronjensen
aaronjensen / init.el
Last active May 7, 2019 21:54
doom modeline for spacemacs
# Add to spacemacs-configuration-layers:
# theming
# doom-modeline
# Add to dotspacemacs-excluded-packages
# spaceline
# Set:
# dotspacemacs-mode-line-theme 'vanilla
---
src/nsterm.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nsterm.m b/src/nsterm.m
index 3d58cd5ec6..e21efada2b 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6910,7 +6910,6 @@ - (void) updateFrameSize: (BOOL) delay
FRAME_PIXEL_TO_TEXT_WIDTH (emacsframe, neww),
(lldb) bt all
thread #1, queue = 'com.apple.main-thread'
frame #0: 0x00007fff58584d1e libsystem_kernel.dylib`__psynch_mutexwait + 10
frame #1: 0x00007fff586c0bfe libsystem_pthread.dylib`_pthread_mutex_lock_wait + 83
frame #2: 0x00007fff586be551 libsystem_pthread.dylib`_pthread_mutex_lock_slow + 253
frame #3: 0x0000000100383895 emacs`sys_mutex_lock + 21
frame #4: 0x0000000100381eab emacs`acquire_global_lock + 27
frame #5: 0x0000000100382739 emacs`really_call_select + 169
frame #6: 0x0000000100238e94 emacs`flush_stack_call_func + 68
frame #7: 0x0000000100382676 emacs`thread_select + 118
@aaronjensen
aaronjensen / bt all
Last active February 18, 2018 17:12
emacs thread crash tarce
(lldb) bt all
thread #1, queue = 'com.apple.main-thread'
frame #0: 0x00007fff58584d1e libsystem_kernel.dylib`__psynch_mutexwait + 10
frame #1: 0x00007fff586c0bfe libsystem_pthread.dylib`_pthread_mutex_lock_wait + 83
frame #2: 0x00007fff586be551 libsystem_pthread.dylib`_pthread_mutex_lock_slow + 253
frame #3: 0x0000000100383895 emacs`sys_mutex_lock + 21
frame #4: 0x0000000100381eab emacs`acquire_global_lock + 27
frame #5: 0x0000000100382739 emacs`really_call_select + 169
frame #6: 0x0000000100238e94 emacs`flush_stack_call_func + 68
frame #7: 0x0000000100382676 emacs`thread_select + 118
;;; -*- 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