LINUX.ORG.RU

Сообщения deterok

 

При сборке пакета неправильно определяется версия CMake

korganizer-4.14.10

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.4)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/kde-base/korganizer-4.14.10/work/korganizer-4.14.10_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/kde-base/korganizer-4.14.10/work/korganizer-4.14.10_build/CMakeFiles/CMakeError.log".
 * ERROR: kde-base/korganizer-4.14.10::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_configure
cmake --version
cmake version 3.4.1

В чем может быть причина данной проблемы?

 , ,

deterok
()

Отладить загрузку рабочего стола KDE

В частности меня интересует просмотр того, что делается от KDM до полностью загруженного десктопа.

init_6 Pinkbyte

 , , ,

deterok
()

pulseaudio не переключается на bluetooth гарнитуру

В общем ситуация такая, pulseaudio стартует сам для пользователя - Ок (client autospwan = yes). Но при подключение гарнитуры по buletooth он не переключает на нее и продолжает играть. И вот что я заметил, если я делаю pulseaudio --kill, то у меня отстреливает гарнитуру (хуки видать какие-то с bluetooth.service), PA перезапускается сам и дальше если подключить гарнитуру то он отлично на нее перейдет сам.

Помогите разобраться в чем дело.

 , ,

deterok
()

Немогу добиться работы bluetooth от AR9462

Всем привет, есть Acer c720p с чудо железкой «Qualcomm Atheros AR9462 Wireless Network Adapter» на которой уживается и wifi и bluetooth (вот жеж жесть).

Не могу завести на ней bluetooth.
Собирал модулем и загнал в /etc/modprobe.d/ath9k.conf

options ath9k btcoex_enable=1 bt_ant_diversity=1 ps_enable=0
И даже пытался делать modprobe -r ath9k; modprobe ath9k btcoex_enable=1 - по нулям... Вот что после этих манипуляций в lsusb
lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0489:e056 Foxconn / Hon Hai
Bus 001 Device 002: ID 1bcf:2c67 Sunplus Innovation Technology Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
В lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:15.0 DMA controller: Intel Corporation 8 Series Low Power Sub-System DMA (rev 04)
00:15.1 Serial bus controller [0c80]: Intel Corporation 8 Series I2C Controller #0 (rev 04)
00:15.2 Serial bus controller [0c80]: Intel Corporation 8 Series I2C Controller #1 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
00:1f.6 Signal processing controller: Intel Corporation 8 Series Thermal (rev 04)
01:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
И в hciconfig -a пусто.

Настройки ядра:

 │                     --- Bluetooth subsystem support                                     │
 │                     [*]   Bluetooth Classic (BR/EDR) features                           │
 │                     <*>     RFCOMM protocol support                                     │
 │                     [*]       RFCOMM TTY support                                        │
 │                     < >     BNEP protocol support                                       │
 │                     <*>     HIDP protocol support                                       │
 │                     [*]     Bluetooth High Speed (HS) features                          │
 │                     [*]   Bluetooth Low Energy (LE) features                            │
 │                     < >     Bluetooth 6LoWPAN support                                   │
 │                     [ ]   Export Bluetooth internals in debugfs                         │
 │                           Bluetooth device drivers  --->                                │
 ┌── Bluetooth device drivers ─────────────────────────────────────────────────────────────┐
 │                                                                                         │
 │                     <*> HCI USB driver                                                  │
 │                     [ ]   Broadcom protocol support                                     │
 │                     [ ]   Realtek protocol support                                      │
 │                     <*> HCI SDIO driver                                                 │
 │                     <*> HCI UART driver                                                 │
 │                     -*-   UART (H4) protocol support                                    │
 │                     [*]   BCSP protocol support                                         │
 │                     [*]   Atheros AR300x serial support                                 │
 │                     [*]   HCILL protocol support                                        │
 │                     [*]   Three-wire UART (H5) protocol support                         │
 │                     [*]   Intel protocol support                                        │
 │                     [*]   Broadcom protocol support                                     │
 │                     [*]   Qualcomm Atheros protocol support                             │
 │                     <*> HCI BCM203x USB driver                                          │
 │                     <*> HCI BPA10x USB driver                                           │
 │                     <*> HCI BlueFRITZ! USB driver                                       │
 │                     <*> HCI VHCI (Virtual HCI device) driver                            │
 │                     < > Marvell Bluetooth driver support                                │
 │                     <*> Atheros firmware download driver                                │
 │        --- Atheros Wireless Cards                                                       │
 │        [ ]   Atheros wireless debugging                                                 │
 │        < >   Atheros 5xxx wireless cards support                                        │
 │        [ ]   Atheros 5xxx PCI bus support                                               │
 │        [*]   Atheros bluetooth coexistence support                                      │
 │        <M>   Atheros 802.11n wireless cards support                                     │
 │        [*]     Atheros ath9k PCI/PCIe bus support                                       │
 │        [*]     Atheros ath9k AHB bus support                                            │
 │        [ ]     Atheros ath9k debugging                                                  │
 │        [ ]     Atheros ath9k ACK timeout estimation algorithm (EXPERIMENTAL)            │
 │        [*]   Wake on Wireless LAN support (EXPERIMENTAL)                                │

Pinkbyte

 , , btcoex,

deterok
()

Именованные параметры в ELisp

Есть функция (directory-files-and-attributes DIRECTORY &optional FULL MATCH NOSORT ID-FORMAT).
Как мне указать только параметр «ID-FORMAT» после «DIRECTORY»?

 ,

deterok
()

Как правильно форматировать описание параметров для интерактивного вызова функций Emacs

У меня это выглядит так: (interactive "sName of a new buffer: "). Но на мой взгляд нет какого-то визуального отделения от 's' строки-описания. Может есть какой-нибудь другой способ задать эти параметры, более читабельный?

 ,

deterok
()

Автоматически определить major mode по названию буфера

В общем допустим я делаю (create-scratch-buffer "test.py"), что мне сделать потом, что бы до сохранения буфера были задействованы соответствующие моды из auto-mode-alist?

 

deterok
()

Помогите допилить regexp

Написал вот такой regexp ^\\*scratch<[[:digit:]]+>\\*$
Теперь хочу сделать так, что бы <[[:digit:]]+> мог и не присутствовать (т.е. выражение *scaratch* нормально проходило).
Как это правильно сделать?

 ,

deterok
()

Назначить F12 на power button

У меня acer c720p и на клаве у него после F11 идет сразу power button. Можно ли как-то и в X и в tty сделать из нее F12?

 , ,

deterok
()

Посоветуйте способ интерактивно отрисовыать svg на convas

В общем есть svg'шка с большим кол-вом (тысячи) различных форм (есть даже неправильные), в общем карта, хочу добавить интерактивности на нее, т.е. мне нужно ее очень плавно зумить, уметь выделять элементы и добавлять информацию текстовую информацию.
Думаю для этого заюзать canvas (DOM мне кажется слишком медленным), но он растровый...
Посоветуйте библиотеку которая позволит без сильной потери качества добавить интерактивности.

PS. С JS почти не работал, вот хочу поиграться немного

Спасибо!

 , interaction, , ,

deterok
()

Разбить один исходник на несколько в rust

В одной из тем был накидан такой исходник. Решил его разбить на несколько файлов.
Получилось два файла: semver.rs и main.rs. Тупо вынес всю логику semver в отдельный файл, ничего не меняя.
Добавил в начало main.rs mod semver;. Запускаю:

   Compiling vers v0.1.0 (file:///home/deterok/data/projects/vers)
semver.rs:63:6: 63:23 error: failed to resolve. Use of undeclared type or module `std::fmt`
semver.rs:63 impl std::fmt::Display for Version {
                  ^~~~~~~~~~~~~~~~~
semver.rs:63:6: 63:23 error: use of undeclared trait name `std::fmt::Display`
semver.rs:63 impl std::fmt::Display for Version {
                  ^~~~~~~~~~~~~~~~~
semver.rs:103:6: 103:23 error: failed to resolve. Use of undeclared type or module `std::str`
semver.rs:103 impl std::str::FromStr for Version {
                   ^~~~~~~~~~~~~~~~~
semver.rs:103:6: 103:23 error: use of undeclared trait name `std::str::FromStr`
semver.rs:103 impl std::str::FromStr for Version {
                   ^~~~~~~~~~~~~~~~~
semver.rs:131:6: 131:23 error: failed to resolve. Use of undeclared type or module `std::fmt`
semver.rs:131 impl std::fmt::Display for ParseVersionError {
                   ^~~~~~~~~~~~~~~~~
semver.rs:131:6: 131:23 error: use of undeclared trait name `std::fmt::Display`
semver.rs:131 impl std::fmt::Display for ParseVersionError {
                   ^~~~~~~~~~~~~~~~~
main.rs:8:23: 8:30 error: use of undeclared type name `Version`
main.rs:8 fn check_version(v1: &Version, v2: &Version) {
                                ^~~~~~~
main.rs:8:37: 8:44 error: use of undeclared type name `Version`
main.rs:8 fn check_version(v1: &Version, v2: &Version) {
                                              ^~~~~~~
main.rs:17:18: 17:37 error: failed to resolve. Use of undeclared type or module `VersionBuilder`
main.rs:17     let mut v1 = VersionBuilder::new();
                            ^~~~~~~~~~~~~~~~~~~
main.rs:17:18: 17:37 error: unresolved name `VersionBuilder::new`
main.rs:17     let mut v1 = VersionBuilder::new();
                            ^~~~~~~~~~~~~~~~~~~
main.rs:22:14: 22:21 error: `Version` does not name a structure
main.rs:22     let v2 = Version{major: 1, minor: 2, patch:5}.inc_minor();
                        ^~~~~~~
main.rs:27:30: 27:37 error: use of undeclared type name `Version`
main.rs:27     match v2.value().parse::<Version>() {
                                        ^~~~~~~
error: aborting due to 12 previous errors
Could not compile `vers`.

Ага! Надо добавить use semver::*; в main.rs. Собираю:

cargo run
   Compiling vers v0.1.0 (file:///home/deterok/data/projects/vers)
semver.rs:63:6: 63:23 error: failed to resolve. Use of undeclared type or module `std::fmt`
semver.rs:63 impl std::fmt::Display for Version {
                  ^~~~~~~~~~~~~~~~~
semver.rs:63:6: 63:23 error: use of undeclared trait name `std::fmt::Display`
semver.rs:63 impl std::fmt::Display for Version {
                  ^~~~~~~~~~~~~~~~~
semver.rs:103:6: 103:23 error: failed to resolve. Use of undeclared type or module `std::str`
semver.rs:103 impl std::str::FromStr for Version {
                   ^~~~~~~~~~~~~~~~~
semver.rs:103:6: 103:23 error: use of undeclared trait name `std::str::FromStr`
semver.rs:103 impl std::str::FromStr for Version {
                   ^~~~~~~~~~~~~~~~~
semver.rs:131:6: 131:23 error: failed to resolve. Use of undeclared type or module `std::fmt`
semver.rs:131 impl std::fmt::Display for ParseVersionError {
                   ^~~~~~~~~~~~~~~~~
semver.rs:131:6: 131:23 error: use of undeclared trait name `std::fmt::Display`
semver.rs:131 impl std::fmt::Display for ParseVersionError {
                   ^~~~~~~~~~~~~~~~~
main.rs:9:23: 9:30 error: use of undeclared type name `Version`
main.rs:9 fn check_version(v1: &Version, v2: &Version) {
                                ^~~~~~~
main.rs:9:37: 9:44 error: use of undeclared type name `Version`
main.rs:9 fn check_version(v1: &Version, v2: &Version) {
                                              ^~~~~~~
main.rs:18:18: 18:37 error: failed to resolve. Use of undeclared type or module `VersionBuilder`
main.rs:18     let mut v1 = VersionBuilder::new();
                            ^~~~~~~~~~~~~~~~~~~
main.rs:18:18: 18:37 error: unresolved name `VersionBuilder::new`
main.rs:18     let mut v1 = VersionBuilder::new();
                            ^~~~~~~~~~~~~~~~~~~
main.rs:23:14: 23:21 error: `Version` does not name a structure
main.rs:23     let v2 = Version{major: 1, minor: 2, patch:5}.inc_minor();
                        ^~~~~~~
main.rs:28:30: 28:37 error: use of undeclared type name `Version`
main.rs:28     match v2.value().parse::<Version>() {
                                        ^~~~~~~
error: aborting due to 12 previous errors
Could not compile `vers`.

Как правильно это сделать?

 ,

deterok
()

Помогите настроить suspend

В общем есть чудо ноут acer aspire c720p. Все вроде настроено. Но странное поведение при вызове pm-suspend. А именно он вроде засыпает на 2 секунды, мигает лед другого цвета а затем ведет себя так, как буд-то его по кнопки перегрузили. Т.е. начинает загрузку с самого начала. При этом pm-hibirnate отрабатывает отлично и все остальные функции тоже. Вот лог с pm-suspend:

Initial commandline parameters: 
Blacklisting 01grub.
Blacklisting 90clock.
Вс ноя 15 06:52:26 MSK 2015: Running hooks for suspend.
Running hook /usr/lib64/pm-utils/sleep.d/00logging suspend suspend:
Linux fort_sun 4.3.0-gentoo #5 SMP Sun Nov 15 06:46:49 MSK 2015 x86_64 Intel(R) Celeron(R) 2955U @ 1.40GHz GenuineIntel GNU/Linux
Module                  Size  Used by
x86_pkg_temp_thermal     4599  0
              total        used        free      shared  buff/cache   available
Mem:        1917776       32980     1792060        1448       92736     1856108
Swap:       4194300           0     4194300
/usr/lib64/pm-utils/sleep.d/00logging suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/00powersave suspend suspend:
Blacklisting 01grub.
Blacklisting 90clock.
/usr/lib64/pm-utils/sleep.d/00powersave suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/01grub suspend suspend:
/usr/lib64/pm-utils/sleep.d/01grub suspend suspend: disabled.

Running hook /etc/pm/sleep.d/05sound suspend suspend:
tee: /sys/bus/pci/drivers/ehci-pci/unbind: No such file or directory
0000:00:1d.00000:00:1b.00000:00:03.0/etc/pm/sleep.d/05sound suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/50unload_alx suspend suspend:
/usr/lib64/pm-utils/sleep.d/50unload_alx suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/75modules suspend suspend:
/usr/lib64/pm-utils/sleep.d/75modules suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/90clock suspend suspend:
/usr/lib64/pm-utils/sleep.d/90clock suspend suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend:
/usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/95led suspend suspend:
/usr/lib64/pm-utils/sleep.d/95led suspend suspend: not applicable.

Running hook /usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler: line 101: /sys/class/dmi/id/board_name: No such file or directory
/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler: line 101: /sys/class/dmi/id/board_version: No such file or directory
/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler: line 101: /sys/class/dmi/id/board_vendor: No such file or directory
Kernel modesetting video driver detected, not using quirks.
/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0
/usr/lib64/pm-utils/sleep.d/99video suspend suspend: success.

Вс ноя 15 06:52:27 MSK 2015: performing suspend

И последние логи:

fort_sun kernel: ehci-pci 0000:00:1d.0: remove, state 4
fort_sun kernel: usb usb3: USB disconnect, device number 1
fort_sun kernel: usb 3-1: USB disconnect, device number 2
fort_sun kernel: ehci-pci 0000:00:1d.0: USB bus 3 deregistered
fort_sun systemd[1]: sound.target: Unit not needed anymore. Stopping.
fort_sun systemd[1]: Stopped target Sound Card.

Помогите кто может.

 , acer c720p, ,

deterok
()

Boot на btrfs subvolume

Собственно кто-нибудь настраивал, что бы dracut'овский initramfs подтягивался из подраздела btrfs?

 , ,

deterok
()

repos.conf не подгружает профили

Создал локальный репозиторий, как в вике по примеру.

eix видит репозиторий, emerge устанавливает пакеты, а вот профиля не видит до тех пор пока не прописал вот это: PORTDIR_OVERLAY="/usr/local/portage ${PORTDIR_OVERLAY}" в make.conf.

Так и должно быть?

init_6

 

deterok
()

Помогите разобраться с владением в Rust

В общем для интереса решил описать структурку с огикой управления Semantic Version. Вот код:

use std::fmt;
use std::cmp;
use std::result::Result::{self, Ok, Err};


struct Version {
    major: i64,
    minor: i64,
    patch: i64
}

impl Version {
    fn new() -> Version {
        Version{major: 0, minor: 0, patch: 0}
    }

    fn value(&self) -> String {
        format!("{}.{}.{}", self.major, self.minor, self.patch)
    }

    fn inc_major(&self) -> Version {
        Version{major: self.major + 1, minor: 0, patch: 0}
    }

    fn inc_minor(&self) -> Version {
        Version{major: self.major, minor: self.minor + 1, patch: 0}
    }

    fn inc_patch(&self) -> Version {
        Version{major: self.major, minor: self.minor, patch: self.patch + 1}
    }
}

struct VersionBuilder(Version);

impl VersionBuilder {
    fn new() -> VersionBuilder {
        VersionBuilder(Version::new())
    }

    fn major(mut self, value: i64) -> VersionBuilder {
        self.0.major = value;
        self
    }

    fn minor(mut self, value: i64) -> VersionBuilder {
        self.0.minor = value;
        self
    }

    fn patch(mut self, value: i64) -> VersionBuilder {
        self.0.patch = value;
        self
    }

    fn finalize(self) -> Version {
        self.0
    }
}

impl std::fmt::Display for Version {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "Version({})", self.value())
    }
}

impl cmp::PartialEq for Version {
    fn eq(&self, other: &Self) -> bool{
        if (self.major == other.major) &&
            (self.minor == other.minor) &&
            (self.patch == other.patch) {
                return true
            }

        false
    }
}

impl cmp::Eq for Version {}


impl cmp::PartialOrd for Version {
    fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
        match self.major.cmp(&other.major) {
            cmp::Ordering::Greater => return Some(cmp::Ordering::Greater),
            cmp::Ordering::Less    => return Some(cmp::Ordering::Less),
            cmp::Ordering::Equal   =>
                match self.minor.cmp(&other.minor) {
                    cmp::Ordering::Greater => return Some(cmp::Ordering::Greater),
                    cmp::Ordering::Less    => return Some(cmp::Ordering::Less),
                    cmp::Ordering::Equal   => return Some(self.patch.cmp(&other.patch))
            }
        }
    }
}

impl cmp::Ord for Version {
    fn cmp(&self, other: &Self) -> cmp::Ordering{
        self.partial_cmp(other).unwrap()
    }
}


pub struct ParseVersionError { _priv: () }

impl fmt::Display for ParseVersionError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        "предоставленная строка должна содержать три подверсии разделенные \
         точкой: `{major}.{minor}.{patch}`".fmt(f)
    }
}

fn check_version(v1: &Version, v2: &Version) {
    match v1.cmp(&v2) {
        cmp::Ordering::Greater => println!("{} больше {}", v1, v2),
        cmp::Ordering::Less    => println!("{} меньше {}", v1, v2),
        cmp::Ordering::Equal   => println!("Версии равны: {}", v1)
    }
}

fn main() {
    let v1 = &VersionBuilder::new()
        .major(2)
        .patch(3);

    v1.minor(11);

    v1.minor(2);

    v1.major(1);

    let v2 = &Version{major: 1, minor: 2, patch:5}.inc_minor();

    check_version(v1.finalize(), v2);
}

Сейчас при сборке он обсыпается на последней строчке, т.к. ожидает получить ссылку, а получает объект:

main.rs:161:19: 161:32 error: mismatched types:
 expected `&Version`,
    found `Version`
(expected &-ptr,
    found struct `Version`) [E0308]
main.rs:161     check_version(v1.finalize(), v2);

Если же я ставлю перед v1 «&» v1.finalize(), то получаю:

main.rs:153:5: 153:7 error: cannot move out of borrowed content
main.rs:153     v1.minor(11);
                ^~
main.rs:155:5: 155:7 error: cannot move out of borrowed content
main.rs:155     v1.minor(2);
                ^~
main.rs:157:5: 157:7 error: cannot move out of borrowed content
main.rs:157     v1.major(1);
                ^~
main.rs:161:20: 161:22 error: cannot move out of borrowed content
main.rs:161     check_version(&v1.finalize(), v2);

Я что-то запутался...

Как мне правильно разрулить здесь с ссылками и владением?

Может будут еще акие замечания?

Решение

 ,

deterok
()

Сделать C-backspace и C-delete менее жадными

Собственно хочется сделать так, что бы они удаляли по таким правилам:

  • Если курсор на символе отличенном от какого-либо пробела, то должен вести примерно как сейчас (возможно не стоит стопать курсор на разделительных символах (_ . ,))
  • Если курсор на на проблельном символе, то надо удалять до первого значимого символа - буквы/не разделителя. Т.е. остановиться до слова и снести только пробельные символы.

Кто-нибудь себе такое настраивал, что за это отвечает?

P.S. И этого же хотелось бы сделать с селектом

 , hunger

deterok
()

Заменить хоткеи у magit

Добавил для reset'а popup.

(defcustom magit-reset-arguments nil
  "The arguments used when resetting."
  :group 'magit-commands
  :type '(repeat (string :tag "Argument")))


(defun magit-reset-popup (&optional arg)
  "Popup console for reset commands."
  (interactive "P")
  (--if-let (magit-commit-message-buffer)
      (switch-to-buffer it)
    (magit-invoke-popup 'magit-reset-popup nil arg)))

(defvar magit-reset-popup
  '(:varible magit-reset-arguments
    :man-page "git-reset"
    :actions ((?x "Reset"       magit-reset-index)
              (?m "Mixed reset" magit-reset)
              (?s "Soft reset"  magit-reset-soft)
              (?H "Hard reset"  magit-reset-hard))
    :max-action-columns 4
    :default-action magit-reset))

(magit-define-popup-action 'magit-dispatch-popup
    ?x "Reset" 'magit-reset-popup ?!)

В popup'е все работает, однако в различных окнах magit (например magit-status и magit-log) используется старое значение.

Т.е. если в popup «x» вызывает sub-popup reset'а, то в magit-status он сразу переходит к диалогу reset'а.

Может есть какой-то простой способ или настройка, которая для всех окон magit хранит хоткеи связанные с popup'ом?

 , , ,

deterok
()

Подскажите что-нибудь по управлению окнами emacs

Интересует такой функционал как:

  • Быстрое изменение рамок текущего окна с клавиатуры
  • Изменение расположения текущего окна (поменять местами с другим?)
  • Группировка окон (Например окна с prog-mode открываются только в левой половине фрейма)

Можете посоветовать пакеты и настройки?

 , ,

deterok
()

Почему git status | echo ничего не выводит?

 ,

deterok
()

Magit в log'е не отображает подпись если выставлен параметр --show-signature

Никаких настроек не производил, просто выкачал пакет с помощью el-get.

Что можете посоветовать для решения проблемы с отображением.

 ,

deterok
()

RSS подписка на новые темы