# \#emacs

**URL:** https://swi-prolog.discourse.group/tag/emacs/51.md

[Latest](https://swi-prolog.discourse.group/latest.md) · [Categories](https://swi-prolog.discourse.group/categories.md) · [Tags](https://swi-prolog.discourse.group/tags.md)

---

## [Huge discance between characters in Emacs](https://swi-prolog.discourse.group/t/huge-discance-between-characters-in-emacs/5705)

<div class="topic-metadata">

**Author:** [@pegesund](https://swi-prolog.discourse.group/u/pegesund)\
**Replies:** 10\
**Last updated:** [November 13, 2023, 10:26am UTC](https://swi-prolog.discourse.group/t/huge-discance-between-characters-in-emacs/5705 "2023-11-13T10:26:00Z")

</div>

Hi, I have a bug which is kind of sweet, but it make the built in Emacs unusable :slight\_smile: The gaps between the characters in the editor is so huge that text becomes fuzzy. See picture below. I thought is might be…

---

## [Extracting part of a clause body into a new predicate](https://swi-prolog.discourse.group/t/extracting-part-of-a-clause-body-into-a-new-predicate/6830)

<div class="topic-metadata">

**Author:** [@oskardrums](https://swi-prolog.discourse.group/u/oskardrums)\
**Replies:** 2\
**Last updated:** [September 9, 2023, 2:38pm UTC](https://swi-prolog.discourse.group/t/extracting-part-of-a-clause-body-into-a-new-predicate/6830 "2023-09-09T14:38:31Z")

</div>

Hi all, Following a recent discussion on the emacs-devel mailing list, I’ve added a way in Sweep to extract a goal from the body of a clause into a separate predicate. That can be useful when you want to reuse a comple…

---

## [PceEmacs says predicate is unreferenced](https://swi-prolog.discourse.group/t/pceemacs-says-predicate-is-unreferenced/6722)

<div class="topic-metadata">

**Author:** [@z5h](https://swi-prolog.discourse.group/u/z5h)\
**Replies:** 1\
**Last updated:** [July 20, 2023, 3:43pm UTC](https://swi-prolog.discourse.group/t/pceemacs-says-predicate-is-unreferenced/6722 "2023-07-20T15:43:09Z")

</div>

In short: Is there a way of convincing PceEmacs that a predicate is used, when PceEmacs has decided otherwise? More detail: PceEmacs flags unused predicates, and is pretty good at detecting partial application of pred…

---

## [Changes in Sweep's emulation of PceEmacs highlighting](https://swi-prolog.discourse.group/t/changes-in-sweeps-emulation-of-pceemacs-highlighting/6655)

<div class="topic-metadata">

**Author:** [@oskardrums](https://swi-prolog.discourse.group/u/oskardrums)\
**Replies:** 0\
**Last updated:** [June 23, 2023, 11:26am UTC](https://swi-prolog.discourse.group/t/changes-in-sweeps-emulation-of-pceemacs-highlighting/6655 "2023-06-23T11:26:58Z")

</div>

This is a deprecation notice for users of Sweep (the GNU Emacs package for SWI-Prolog) that rely on the sweeprolog-faces-style option to have Sweep mimic the highlighting provided by PceEmacs: Currently, Sweep provides …

---

## [Extending xpce/emacs](https://swi-prolog.discourse.group/t/extending-xpce-emacs/6648)

<div class="topic-metadata">

**Author:** [@z5h](https://swi-prolog.discourse.group/u/z5h)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 9:06am UTC](https://swi-prolog.discourse.group/t/extending-xpce-emacs/6648 "2023-06-20T09:06:00Z")

</div>

Given that no other editor seems to have SWI-Prolog language integration as complete as PceEmacs, I’d like to better understand how to customize it (to add features I miss from other editors). In the documentation, this…

---

## [Searching for Prolog terms in Emacs with Sweep](https://swi-prolog.discourse.group/t/searching-for-prolog-terms-in-emacs-with-sweep/6079)

<div class="topic-metadata">

**Author:** [@oskardrums](https://swi-prolog.discourse.group/u/oskardrums)\
**Replies:** 0\
**Last updated:** [January 8, 2023, 7:09am UTC](https://swi-prolog.discourse.group/t/searching-for-prolog-terms-in-emacs-with-sweep/6079 "2023-01-08T07:09:54Z")

</div>

Hey all, Last week the Emacs package Sweep got a new “term search” feature that lets you interactively search through Prolog buffers by giving a search term and finding matching terms that are subsumed by it. I’ve made…

---

## [Ann: sweep (Emacs interface) version 0.8.0](https://swi-prolog.discourse.group/t/ann-sweep-emacs-interface-version-0-8-0/5888)

<div class="topic-metadata">

**Author:** [@oskardrums](https://swi-prolog.discourse.group/u/oskardrums)\
**Replies:** 0\
**Last updated:** [October 24, 2022, 6:11am UTC](https://swi-prolog.discourse.group/t/ann-sweep-emacs-interface-version-0-8-0/5888 "2022-10-24T06:11:28Z")

</div>

Hey all, Version 0.8.0 of sweep, the SWI-Prolog Emacs integration package, is out and available for installation with M-x package-install sweeprolog (or M-x package-update sweeprolog) inside Emacs. The most important c…

---

## [Ann: Sweep (new Emacs interface) version 0.6.0](https://swi-prolog.discourse.group/t/ann-sweep-new-emacs-interface-version-0-6-0/5849)

<div class="topic-metadata">

**Author:** [@oskardrums](https://swi-prolog.discourse.group/u/oskardrums)\
**Replies:** 0\
**Last updated:** [October 12, 2022, 3:43pm UTC](https://swi-prolog.discourse.group/t/ann-sweep-new-emacs-interface-version-0-6-0/5849 "2022-10-12T15:43:58Z")

</div>

Hi all, Some updates regarding sweep: As a reminder, sweep is a new GNU Emacs interface for working with SWI-Prolog code. See the initial Discourse thread introducing sweep and the sweep manual for more background. Fi…

---

## [Own predicate like \`--\>/2\` or \`:-/2\` in he built-in prolog editor](https://swi-prolog.discourse.group/t/own-predicate-like-2-or-2-in-he-built-in-prolog-editor/5818)

<div class="topic-metadata">

**Author:** [@la\_samlai](https://swi-prolog.discourse.group/u/la_samlai)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 7:09pm UTC](https://swi-prolog.discourse.group/t/own-predicate-like-2-or-2-in-he-built-in-prolog-editor/5818 "2022-10-03T19:09:58Z")

</div>

I want to add a new predicate (\<--)/2 similar to (--\>)/2 or (:-)/2. I use it in this library with the term\_expansion/2. Unfortunately, the built-in prolog editor does not treat this predicate as a built-in (--\>)/2. Th…

---

## [Sweep: SWI-Prolog Embedded in Emacs](https://swi-prolog.discourse.group/t/sweep-swi-prolog-embedded-in-emacs/5713)

<div class="topic-metadata">

**Author:** [@oskardrums](https://swi-prolog.discourse.group/u/oskardrums)\
**Replies:** 52\
**Last updated:** [October 3, 2022, 6:34am UTC](https://swi-prolog.discourse.group/t/sweep-swi-prolog-embedded-in-emacs/5713 "2022-10-03T06:34:00Z")

</div>

Hi all, I’ve been working for the past couple of weeks on a little project for improving the integration of SWI-Prolog with GNU Emacs. The idea was to create a setup where Emacs can call Prolog predicates and examine th…

---

## [Emacs not handling ctrl-d correctly for closing \[user\]](https://swi-prolog.discourse.group/t/emacs-not-handling-ctrl-d-correctly-for-closing-user/3669)

<div class="topic-metadata">

**Author:** [@dstrohmaier](https://swi-prolog.discourse.group/u/dstrohmaier)\
**Replies:** 2\
**Last updated:** [March 4, 2021, 10:46pm UTC](https://swi-prolog.discourse.group/t/emacs-not-handling-ctrl-d-correctly-for-closing-user/3669 "2021-03-04T22:46:49Z")

</div>

I’m using: GUI Emacs version 27.1 (SWI-Prolog version 8.2.1) on Windows. I want to use the \[user\] pseudo-file but have a problem exiting it without killing the whole Prolog process. Pressing ctrl-d kills the whole Prolo…

---

## [Two issues with Emacs and PLDoc](https://swi-prolog.discourse.group/t/two-issues-with-emacs-and-pldoc/2298)

<div class="topic-metadata">

**Author:** [@marcoxa](https://swi-prolog.discourse.group/u/marcoxa)\
**Replies:** 0\
**Last updated:** [May 9, 2020, 7:49am UTC](https://swi-prolog.discourse.group/t/two-issues-with-emacs-and-pldoc/2298 "2020-05-09T07:49:57Z")

</div>

Hi, I go back and forth from SWI to Emacs (either Aquamacs, or Emacs on Windows and Linux) to do editing and interacting with the listener. I have two unrelated issues to raise. The Prolog inferior process in Emacs …

---

## [Use of semicolon during querying inside emacs no longer working](https://swi-prolog.discourse.group/t/use-of-semicolon-during-querying-inside-emacs-no-longer-working/1918)

<div class="topic-metadata">

**Author:** [@emacstheviking](https://swi-prolog.discourse.group/u/emacstheviking)\
**Replies:** 11\
**Last updated:** [February 27, 2020, 2:49pm UTC](https://swi-prolog.discourse.group/t/use-of-semicolon-during-querying-inside-emacs-no-longer-working/1918 "2020-02-27T14:49:24Z")

</div>

Today I noticed that pressing “;” when running a query no longer seemed to work in emacs and I am sure it used to. It runs fine from the terminal but not after compiling the buffer and being placed into the comint buffer…
